#4164 closed defect (fixed)
ST_GeomFromGeoJSON gives unexpected result
Reported by: | dbaston | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.5.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
As reported [on Stack Exchange](https://gis.stackexchange.com/q/294250/18189):
Calling ST_GeomFromGeoJSON
on a GeoJSON polygon that's missing one level of brackets:
SELECT ST_AsText(ST_GeomFromGeoJSON('{"type": "Polygon", "coordinates": [[0,0], [0,5], [5, 5], [5,0], [0,0]]}'));
Returns an empty 3D polygon:
POLYGON Z EMPTY
Note:
See TracTickets
for help on using tickets.
In 16724: