PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
char* lwgeom_to_geojson | ( | const LWGEOM * | geo, |
char * | srs, | ||
int | precision, | ||
int | has_bbox | ||
) |
Takes a GEOMETRY and returns a GeoJson representation.
Definition at line 48 of file lwout_geojson.c.
References asgeojson_collection(), asgeojson_line(), asgeojson_multiline(), asgeojson_multipoint(), asgeojson_multipolygon(), asgeojson_point(), asgeojson_poly(), COLLECTIONTYPE, LINETYPE, lwerror(), lwgeom_calculate_gbox_cartesian(), lwtype_name(), MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, OUT_MAX_DOUBLE_PRECISION, POINTTYPE, POLYGONTYPE, ovdump::type, and LWGEOM::type.
Referenced by do_geojson_test(), do_geojson_unsupported(), geography_as_geojson(), and LWGEOM_asGeoJson().