PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ asgeojson_collection()

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

Definition at line 585 of file lwout_geojson.c.

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

Referenced by lwgeom_to_geojson().

586 {
587  char *output;
588  int size;
589 
590  size = asgeojson_collection_size(col, srs, bbox, precision);
591  output = lwalloc(size);
592  asgeojson_collection_buf(col, srs, output, bbox, precision);
593 
594  return output;
595 }
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:229
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: