[postgis-tickets] [PostGIS] #3690: ST_AsGeoJSON can produce invalid geometry collections
PostGIS
trac at osgeo.org
Thu Jan 19 12:24:49 PST 2017
#3690: ST_AsGeoJSON can produce invalid geometry collections
----------------------+---------------------------
Reporter: jyutzler | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.3.2
Component: postgis | Version: 2.3.x
Keywords: |
----------------------+---------------------------
After a slew of geometric operations, I ended up with an empty geometry
collection. This was output as
{{{
"geometry":{
"type":"GeometryCollection",
"geometries":null
}
}}}
which is invalid. The "geometries" member must be the empty array [], not
null.
https://tools.ietf.org/html/rfc7946#section-3.1.8
If you need I can try to reproduce this, but the scenario was complicated
and it might not be easy to do.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3690>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list