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

TST: Failing test case for GEOSDistance floating point overflows #485

Closed
wants to merge 1 commit into from

Conversation

brendan-ward
Copy link
Contributor

This adds a test case demonstrating that floating point overflow exceptions are raised by GEOSDistance when calculating the distance between boundable geometries but not points with the same distance.

This was detected in this pygeos issue. Over there, the floating point status is checked by numpy and bubbles up as a warning in Python.

@pramsey
Copy link
Member

pramsey commented Oct 5, 2021

Thanks, fixed in main, hopefully along with all other examples of this quirk.

@pramsey pramsey closed this Oct 5, 2021
@pramsey
Copy link
Member

pramsey commented Oct 5, 2021

Also back ported into 3.9 at c5437e9

@brendan-ward brendan-ward deleted the distance_fpes branch October 5, 2021 22:46
@brendan-ward
Copy link
Contributor Author

Thanks @pramsey ! Confirmed the fix is working for this specific case in pygeos.

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