Definition at line 561 of file lwout_geojson.c.
References asgeojson_bbox_buf(), asgeojson_geom_buf(), asgeojson_srs_buf(), LWCOLLECTION::flags, FLAGS_GET_Z, LWCOLLECTION::geoms, and LWCOLLECTION::ngeoms.
Referenced by asgeojson_collection().
567 ptr += sprintf(ptr,
"{\"type\":\"GeometryCollection\",");
570 ptr += sprintf(ptr,
"\"geometries\":[");
572 for (i=0; i<col->
ngeoms; i++)
574 if (i) ptr += sprintf(ptr,
",");
575 subgeom = col->
geoms[i];
579 ptr += sprintf(ptr,
"]}");
581 return (ptr - output);
static size_t asgeojson_srs_buf(char *output, char *srs)
static size_t asgeojson_bbox_buf(char *output, GBOX *bbox, int hasz, int precision)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
static size_t asgeojson_geom_buf(const LWGEOM *geom, char *output, GBOX *bbox, int precision)