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 ConvexHull to avoid modifying input #1083

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Sep 26, 2024

In some cases ConvexHull was modifying the input coordinate array by sorting it. This could happen on large nearly-linear geometries.

This fixes the issue by ensuring the sort is always done on a newly-allocated array.

Reported in #1082.

@dr-jts dr-jts merged commit 7326345 into locationtech:master Sep 26, 2024
2 checks passed
@dr-jts dr-jts deleted the fix-convexhull-modified-input branch September 26, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant