[postgis-tickets] [PostGIS] #4895: Problem of GeoJSON support with empty geometries

PostGIS trac at osgeo.org
Fri Jul 30 12:43:01 PDT 2021


#4895: Problem of GeoJSON support with empty geometries
-----------------------+---------------------------
  Reporter:  ezimanyi  |      Owner:  pramsey
      Type:  defect    |     Status:  closed
  Priority:  medium    |  Milestone:  PostGIS 3.1.4
 Component:  postgis   |    Version:  2.5.x
Resolution:  fixed     |   Keywords:
-----------------------+---------------------------
Changes (by pramsey):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 OK, with a little more rigour on JSON emitted and a little more
 flexibility on JSON consumed, we can now round-trip EMPTY geometry. They
 are not round-tripping in full fidelity, in particular collections of
 empty are flattened to just a single empty.
 {{{
 MULTIPOINT(EMPTY, EMPTY) => MULTIPOINT EMPTY
 }}}
 But on the general principle that "empty is empty", which our other empty
 handling tries to largely follow, this will do.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4895#comment:5>
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