PostGIS  2.1.10dev-r@@SVN_REVISION@@
static char * asgeojson_collection ( const LWCOLLECTION col,
char *  srs,
GBOX bbox,
int  precision 

Definition at line 572 of file lwout_geojson.c.

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

Referenced by lwgeom_to_geojson().

573 {
574  char *output;
575  int size;
577  size = asgeojson_collection_size(col, srs, bbox, precision);
578  output = lwalloc(size);
579  asgeojson_collection_buf(col, srs, output, bbox, precision);
581  return output;
582 }
static size_t asgeojson_collection_buf(const LWCOLLECTION *col, char *srs, char *output, GBOX *bbox, int precision)
void * lwalloc(size_t size)
Definition: lwutil.c:175
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: