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

GEOSProjectNormalized_r returns NaN when length of g is 0 #475

Closed
macdrevx opened this issue Aug 22, 2021 · 1 comment
Closed

GEOSProjectNormalized_r returns NaN when length of g is 0 #475

macdrevx opened this issue Aug 22, 2021 · 1 comment

Comments

@macdrevx
Copy link
Contributor

GEOSProjectNormalized_r returns NaN when length of parameter g is 0. I would expect it to fail with -1 and possible some error logged to the context instead.

strk pushed a commit that referenced this issue Aug 23, 2021
…do not return NaN as the projected length, but rather return 0.0 for the case where GEOSProject returns 0.0 and an error code otherwise to stop the divide-by-zero case. References #475
@pramsey
Copy link
Member

pramsey commented Aug 23, 2021

Fixed in main at 5f4af41

@pramsey pramsey closed this as completed Aug 23, 2021
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

No branches or pull requests

2 participants