PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ asgeojson_collection()

static char * asgeojson_collection ( const LWCOLLECTION col,
char *  srs,
GBOX bbox,
int  precision 

Definition at line 571 of file lwout_geojson.c.

References asgeojson_collection_buf(), asgeojson_collection_size(), and lwalloc().

Referenced by lwgeom_to_geojson().

572 {
573  char *output;
574  int size;
576  size = asgeojson_collection_size(col, srs, bbox, precision);
577  output = lwalloc(size);
578  asgeojson_collection_buf(col, srs, output, bbox, precision);
580  return output;
581 }
static size_t asgeojson_collection_buf(const LWCOLLECTION *col, char *srs, char *output, GBOX *bbox, int precision)
uint8_t precision
Definition: cu_in_twkb.c:25
void * lwalloc(size_t size)
Definition: lwutil.c:199
static size_t asgeojson_collection_size(const LWCOLLECTION *col, char *srs, GBOX *bbox, int precision)
Collection Geometry.
Here is the call graph for this function:
Here is the caller graph for this function: