#1048: WKB representation of POINT EMPTY has 3 dimensions ------------------------+--------------------------- Reporter: Mike Taves | Owner: geos-devel@… Type: defect | Status: new Priority: major | Milestone: Component: Default | Version: master Severity: Unassigned | Resolution: 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/1048#comment:4> GEOS <http://trac.osgeo.org/geos> GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
_______________________________________________ geos-devel mailing list geos-devel@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/geos-devel