PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ asgeojson_poly()

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

Definition at line 363 of file lwout_geojson.c.

364{
365 char *output;
366 int size;
367
368 size = asgeojson_poly_size(poly, srs, bbox, precision);
369 output = lwalloc(size);
370 asgeojson_poly_buf(poly, srs, output, bbox, precision);
371
372 return output;
373}
static uint8_t precision
Definition cu_in_twkb.c:25
void * lwalloc(size_t size)
Definition lwutil.c:227
static size_t asgeojson_poly_buf(const LWPOLY *poly, char *srs, char *output, GBOX *bbox, int precision)
static size_t asgeojson_poly_size(const LWPOLY *poly, char *srs, GBOX *bbox, int precision)
Polygon Geometry.

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

Referenced by lwgeom_to_geojson().

Here is the call graph for this function:
Here is the caller graph for this function: