ST_AsGeoJSON
This section contains reference documentation for the ST_AsGeoJSON function.
Last updated
Was this helpful?
This section contains reference documentation for the ST_AsGeoJSON function.
Last updated
Was this helpful?
Returns the representation of the given geometry or geography.
ST_AsGeoJSON(geometryObject)
geometryObject
A geometry or geography object.
{"type":"Point","coordinates":[-122,37],"crs":{"type":"name","properties":{"name":"EPSG:0"}}}
{"type":"LineString","coordinates":[[30,10],[10,30],[40,40]],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}}