PostGIS  2.2.7dev-r@@SVN_REVISION@@
static char * asgeojson_multipolygon ( const LWMPOLY mpoly,
char *  srs,
GBOX bbox,
int  precision 

Definition at line 505 of file lwout_geojson.c.

References asgeojson_multipolygon_buf(), asgeojson_multipolygon_size(), and lwalloc().

Referenced by lwgeom_to_geojson().

506 {
507  char *output;
508  int size;
510  size = asgeojson_multipolygon_size(mpoly, srs, bbox, precision);
511  output = lwalloc(size);
512  asgeojson_multipolygon_buf(mpoly, srs, output, bbox, precision);
514  return output;
515 }
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t asgeojson_multipolygon_size(const LWMPOLY *mpoly, char *srs, GBOX *bbox, int precision)
MultiPolygon Geometry.
static size_t asgeojson_multipolygon_buf(const LWMPOLY *mpoly, char *srs, char *output, GBOX *bbox, int precision)
void * lwalloc(size_t size)
Definition: lwutil.c:199

Here is the call graph for this function:

Here is the caller graph for this function: