270 const char *srs = NULL;
275 srs = GetSRSCacheBySRID(fcinfo, lwgeom->
srid, short_crs);
279 PG_FREE_IF_COPY(geom, 0);
280 PG_RETURN_TEXT_P(geojson);
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
lwvarlena_t * lwgeom_to_geojson(const LWGEOM *geo, const char *srs, int precision, int has_bbox)
Takes a GEOMETRY and returns a GeoJson representation.
#define LW_TRUE
Return types for functions with status returns.
#define SRID_UNKNOWN
Unknown SRID value.