|
PostGIS
3.1.6dev-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 409 of file lwin_geojson.c.
References findMemberByName(), json_tokener_error_desc, LW_FALSE, lwalloc(), lwerror(), lwgeom_add_bbox(), lwgeom_force_2d(), lwgeom_free(), and parse_geojson().
Referenced by do_geojson_test(), geom_from_geojson(), and LWGEOM_in().

