[geos-devel] [GEOS] #1092: Fixed-precision overlay methods fail if inputs are mixed dimensions

GEOS geos-trac at osgeo.org
Thu Jan 14 09:11:56 PST 2021


#1092: Fixed-precision overlay methods fail if inputs are mixed dimensions
--------------------------+--------------------------
 Reporter:  Brendan Ward  |      Owner:  geos-devel@…
     Type:  defect        |     Status:  new
 Priority:  major         |  Milestone:  3.9.1
Component:  Default       |    Version:  master
 Severity:  Unassigned    |   Keywords:
--------------------------+--------------------------
 Using the fixed-precision overlay methods (GEOSIntersectionPrec,
 GEOSDifferencePrec, etc) via the C API results in an error:
 "IllegalArgumentException: Overlay input is mixed-dimension"

 Example WKT (just overlayed against itself):
 "GEOMETRYCOLLECTION (POINT (51 -1), LINESTRING (52 -1, 49 2))"



 This does not raise errors on the non fixed-precision overlay methods.

 Detected via tests in pygeos (https://github.com/pygeos/pygeos/pull/276).


 I think this was mentioned in a related issue on the mailing list: http
 ://osgeo-org.1560.x6.nabble.com/3-9-0beta1-GEOSwift-td5451132.html

 I think this is the related JTS issue:
 https://github.com/locationtech/jts/pull/648

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/1092>
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