PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
LWGEOM* lwgeom_from_geojson | ( | const char * | geojson, |
char ** | srs | ||
) |
Create an LWGEOM object from a GeoJSON representation.
geojson | the GeoJSON input |
srs | output parameter. Will be set to a newly allocated string holding the spatial reference string, or NULL if no such parameter is found in input. If not null, the pointer must be freed with lwfree. |
Definition at line 539 of file lwin_geojson.c.
References findMemberByName(), geojson_lwerror(), json_tokener_error_desc, LW_TRUE, lwalloc(), LWDEBUG, lwerror(), lwgeom_add_bbox(), lwgeom_force_2d(), lwgeom_free(), and parse_geojson().
Referenced by do_geojson_test(), and geom_from_geojson().