[geos-devel] [GEOS] #1133: GEOSDistance raises floating point exceptions for boundable geometries

GEOS geos-trac at osgeo.org
Tue Oct 5 09:59:01 PDT 2021


#1133: GEOSDistance raises floating point exceptions for boundable geometries
--------------------------+--------------------------
 Reporter:  Brendan Ward  |      Owner:  geos-devel@…
     Type:  defect        |     Status:  new
 Priority:  major         |  Milestone:  3.10.0
Component:  Default       |    Version:  main
 Severity:  Unassigned    |   Keywords:
--------------------------+--------------------------
 GEOSDistance C API function (and likely underlying C++ implementation) is
 causing floating point overflow exceptions to be raised for certain
 distances for boundable geometries but not for points.

 Test case demonstrating this: https://github.com/libgeos/geos/pull/485


 This was encountered in pygeos:
 https://github.com/pygeos/pygeos/issues/404


 For example, calculating the distance between 2 points does not set
 floating point exceptions, whereas calculating the distance between 2
 lines or polygons that are the same distance apart does raise these
 exceptions.

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