PostGIS  2.5.7dev-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.

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 }
static uint8_t precision
Definition: cu_in_twkb.c:25
void * lwalloc(size_t size)
Definition: lwutil.c:229
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: