#941 closed defect (fixed)
Incorrect values returned on error in CAPI
Reported by: | dbaston | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Default | Version: | 3.6.2 |
Severity: | Unassigned | Keywords: | |
Cc: |
Description
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."
Note:
See TracTickets
for help on using tickets.
PR at https://github.com/libgeos/geos/pull/131