PostGIS  2.1.10dev-r@@SVN_REVISION@@
static char * asgeojson_poly ( const LWPOLY poly,
char *  srs,
GBOX bbox,
int  precision 

Definition at line 297 of file lwout_geojson.c.

References asgeojson_poly_buf(), asgeojson_poly_size(), and lwalloc().

Referenced by lwgeom_to_geojson().

298 {
299  char *output;
300  int size;
302  size = asgeojson_poly_size(poly, srs, bbox, precision);
303  output = lwalloc(size);
304  asgeojson_poly_buf(poly, srs, output, bbox, precision);
306  return output;
307 }
static size_t asgeojson_poly_buf(const LWPOLY *poly, char *srs, char *output, GBOX *bbox, int precision)
void * lwalloc(size_t size)
Definition: lwutil.c:175
static size_t asgeojson_poly_size(const LWPOLY *poly, char *srs, GBOX *bbox, int precision)
Polygon Geometry.

Here is the call graph for this function:

Here is the caller graph for this function: