Description
The ST_GeomFromGeoJSON
function returns a WritableGeometry instance from a
GeoJSON representation of a geometry.
Syntax
ST_GeomfromGeoJSON(String jsonGeometry)
Parameters
Parameter | Type | Description |
---|---|---|
jsonGeometry | String | The geometry in geoJSON format. |
Return Values
Return Type | Description |
---|---|
WritableGeometry | The geometry from geoJSON format. |
Examples
SELECT ST_FromGeoJSON('{ "type": "Point", "coordinates": [100.0, 0.0] }');
SELECT ST_FromGeoJSON(t.geometry) FROM table t;