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 linestring splitting issues #62

Merged
merged 4 commits into from
May 24, 2024
Merged

Fix linestring splitting issues #62

merged 4 commits into from
May 24, 2024

Conversation

tomalrussell
Copy link
Member

Should close #53 and #61

The specific case added as a test was triggering the condition where
pE != pN but pE.length() == pN.length()
and falling through to the "Unexpected points..." error. If we consistently
check lengths through all of these cases, this is fixed.
Should be more robust to numerical edge cases (0/inf/nan) and
under/overflow.
Issue 53 was failing with an unreasonably precise comparison
of values (point, gridline) near zero. Fixed by including the grid
cell size as part of the calculation of a reasonably scaled epsilon,
in general the utility almost_equals now also takes an argument
for an indicative order-of-magnitude reference value.
@tomalrussell tomalrussell merged commit f941019 into main May 24, 2024
9 checks passed
@tomalrussell tomalrussell deleted the fix/linestring branch May 24, 2024 17:02
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.

split_polygons_experimental failing on polygons crossing x or y datum
1 participant