PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ asgeojson_multipolygon()

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

Definition at line 572 of file lwout_geojson.c.

573{
574 char *output;
575 int size;
576
577 size = asgeojson_multipolygon_size(mpoly, srs, bbox, precision);
578 output = lwalloc(size);
579 asgeojson_multipolygon_buf(mpoly, srs, output, bbox, precision);
580
581 return output;
582}
static uint8_t precision
Definition cu_in_twkb.c:25
void * lwalloc(size_t size)
Definition lwutil.c:227
static size_t asgeojson_multipolygon_buf(const LWMPOLY *mpoly, char *srs, char *output, GBOX *bbox, int precision)
static size_t asgeojson_multipolygon_size(const LWMPOLY *mpoly, char *srs, GBOX *bbox, int precision)
MultiPolygon Geometry.

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

Referenced by lwgeom_to_geojson().

Here is the call graph for this function:
Here is the caller graph for this function: