Collection Geometry.
Definition at line 538 of file lwout_geojson.c.
References asgeojson_bbox_size(), asgeojson_geom_size(), asgeojson_srs_size(), LWCOLLECTION::flags, FLAGS_GET_Z, LWCOLLECTION::geoms, and LWCOLLECTION::ngeoms.
Referenced by asgeojson_collection().
544 size =
sizeof(
"{'type':'GeometryCollection',");
547 size +=
sizeof(
"'geometries':");
549 for (i=0; i<col->
ngeoms; i++)
551 subgeom = col->
geoms[i];
554 size +=
sizeof(
",") * i;
555 size +=
sizeof(
"]}");
static size_t asgeojson_bbox_size(int hasz, int precision)
Handle Bbox.
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
static size_t asgeojson_geom_size(const LWGEOM *geom, GBOX *bbox, int precision)
static size_t asgeojson_srs_size(char *srs)
Handle SRS.