[geos-devel] [GEOS] #941: Incorrect values returned on error in CAPI

GEOS geos-trac at osgeo.org
Sat Oct 27 12:23:58 PDT 2018


#941: Incorrect values returned on error in CAPI
------------------------+--------------------------
 Reporter:  dbaston     |      Owner:  geos-devel@…
     Type:  defect      |     Status:  new
 Priority:  major       |  Milestone:
Component:  Default     |    Version:  3.6.2
 Severity:  Unassigned  |   Keywords:
------------------------+--------------------------
 In some cases, the CAPI function `GEOSLength_r` returns `2` on error, when
 it is documented to return `0`. The `2` is likely to be interpreted as
 "success" by a caller.

 In some cases, the CAPI function `GEOSIsValidDetail_r` returns `0` on
 error, when it is documented to return `2`. The `0` would be falsely
 interpreted as "geometry invalid."

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