Multipoint Geometry.
Definition at line 329 of file lwout_geojson.c.
References asgeojson_bbox_size(), asgeojson_srs_size(), LWMPOINT::flags, FLAGS_GET_Z, LWMPOINT::geoms, LWMPOINT::ngeoms, LWPOINT::point, and pointArray_geojson_size().
Referenced by asgeojson_geom_size(), and asgeojson_multipoint().
335 size =
sizeof(
"{'type':'MultiPoint',");
338 size +=
sizeof(
"'coordinates':[]}");
340 for (i=0; i<mpoint->
ngeoms; i++)
342 point = mpoint->
geoms[i];
345 size +=
sizeof(
",") * i;
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_srs_size(char *srs)
Handle SRS.
static size_t pointArray_geojson_size(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.