MultiPolygon Geometry.
Definition at line 461 of file lwout_geojson.c.
467 size =
sizeof(
"{'type':'MultiPolygon',");
470 size +=
sizeof(
"'coordinates':[]}");
472 for (i=0; i < mpoly->
ngeoms; i++)
474 poly = mpoly->
geoms[i];
475 for (j=0 ; j <poly->
nrings ; j++)
478 size +=
sizeof(
"[]");
480 size +=
sizeof(
"[]");
482 size +=
sizeof(
",") * i;
483 size +=
sizeof(
"]}");
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
static size_t pointArray_geojson_size(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.
static size_t asgeojson_srs_size(char *srs)
Handle SRS.
static size_t asgeojson_bbox_size(int hasz, int precision)
Handle Bbox.
References asgeojson_bbox_size(), asgeojson_srs_size(), LWMPOLY::flags, FLAGS_GET_Z, LWMPOLY::geoms, LWMPOLY::ngeoms, LWPOLY::nrings, pointArray_geojson_size(), precision, and LWPOLY::rings.
Referenced by asgeojson_geom_size(), and asgeojson_multipolygon().