PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ asgeojson_poly()

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

Definition at line 310 of file lwout_geojson.c.

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

Referenced by lwgeom_to_geojson().

311 {
312  char *output;
313  int size;
314 
315  size = asgeojson_poly_size(poly, srs, bbox, precision);
316  output = lwalloc(size);
317  asgeojson_poly_buf(poly, srs, output, bbox, precision);
318 
319  return output;
320 }
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:227
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: