PostGIS
3.4.0dev-r@@SVN_REVISION@@
|
lwvarlena_t* lwgeom_to_geojson | ( | const LWGEOM * | geo, |
const char * | srs, | ||
int | precision, | ||
int | has_bbox | ||
) |
Takes a GEOMETRY and returns a GeoJson representation.
Definition at line 378 of file lwout_geojson.c.
References asgeojson_geometry(), LWGEOM::flags, FLAGS_GET_Z, lwgeom_calculate_gbox_cartesian(), ovdump::opts, precision, stringbuffer_getvarlena(), and stringbuffer_init_varlena().
Referenced by do_geojson_test(), do_geojson_unsupported(), geography_as_geojson(), geometry_to_json(), geometry_to_jsonb(), and LWGEOM_asGeoJson().