PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ asgeojson_multipolygon()

static char * asgeojson_multipolygon ( const LWMPOLY mpoly,
char *  srs,
GBOX bbox,
int  precision 
)
static

Definition at line 519 of file lwout_geojson.c.

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

Referenced by lwgeom_to_geojson().

520 {
521  char *output;
522  int size;
523 
524  size = asgeojson_multipolygon_size(mpoly, srs, bbox, precision);
525  output = lwalloc(size);
526  asgeojson_multipolygon_buf(mpoly, srs, output, bbox, precision);
527 
528  return output;
529 }
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:229
Here is the call graph for this function:
Here is the caller graph for this function: