[geos-devel] [GEOS] #1005: Writing POINT EMPTY in WKB

GEOS geos-trac at osgeo.org
Thu Oct 29 18:01:14 PDT 2020


#1005: Writing POINT EMPTY in WKB
------------------------+---------------------------
 Reporter:  Mike Taves  |       Owner:  geos-devel@…
     Type:  defect      |      Status:  closed
 Priority:  major       |   Milestone:
Component:  Default     |     Version:  master
 Severity:  Annoyance   |  Resolution:  fixed
 Keywords:              |
------------------------+---------------------------

Comment (by pramsey):

 In general the WKT parser did not parse in "GEOMETRY Z EMPTY" forms and
 notice there was a Z there. Point was fiddly to fix, and that still left
 other types, so I figured I'd fix them all... turns out the core model of
 GEOS/JTS can't even represent a "GEOMETRYCOLLECTION Z EMPTY" of any type.
 There's nowhere for the dimensionality to live!

 Also! The question of what to instantiate for a "POINT EMPTY",
 dimensionally speaking. The default in the code was a 3D empty. That
 seemed wrong to me, so I've moved it down to a 2D empty. That should also
 cause other things to harmonize. There was also a bug hiding, in the
 clone() method, that incorrectly cloned 2D POINT EMPTY.

 Anyways, just waiting for a CI build before merging, but suffice to say
 this isn't a *comprehensive* fix, since that requires some larger
 restructuring to even be able to represent some of these concepts that are
 expressible in WKT and WKB.

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/1005#comment:9>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list