Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect error return values in CAPI #131

Merged
merged 1 commit into from
Oct 29, 2018

Conversation

dbaston
Copy link
Member

@dbaston dbaston commented Oct 27, 2018

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."

Trac ticket https://trac.osgeo.org/geos/ticket/941#ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants