PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ asgeojson_poly()

static char * asgeojson_poly ( const LWPOLY poly,
char *  srs,
GBOX bbox,
int  precision 
)
static

Definition at line 296 of file lwout_geojson.c.

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

Referenced by lwgeom_to_geojson().

297 {
298  char *output;
299  int size;
300 
301  size = asgeojson_poly_size(poly, srs, bbox, precision);
302  output = lwalloc(size);
303  asgeojson_poly_buf(poly, srs, output, bbox, precision);
304 
305  return output;
306 }
static size_t asgeojson_poly_buf(const LWPOLY *poly, 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_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: