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

Definition at line 506 of file lwout_geojson.c.

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

Referenced by lwgeom_to_geojson().

507 {
508  char *output;
509  int size;
511  size = asgeojson_multipolygon_size(mpoly, srs, bbox, precision);
512  output = lwalloc(size);
513  asgeojson_multipolygon_buf(mpoly, srs, output, bbox, precision);
515  return output;
516 }
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:175

Here is the call graph for this function:

Here is the caller graph for this function: