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 unexpected Error while calculating Union #54

Merged
merged 3 commits into from
May 29, 2024
Merged

Conversation

patrickackermann
Copy link
Collaborator

fixes #49

This test reproduces
#49
Geometry.union() fails to calculate the union in some edge cases
@@ -65,7 +65,7 @@ private IomObject union(UnionSurfaceKey key) {
.toArray(MultiPolygon[]::new);

Geometry geometryCollection = new GeometryFactory().createGeometryCollection(polygons);
Geometry unionGeometry = geometryCollection.union();
Geometry unionGeometry = geometryCollection.buffer(0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REQ: Kommentar weshalb nicht .union verwendet wird. Ev. gleich ein Link auf ein Issue in welcher Version von JTS dies korrigiert wird.

@patrickackermann patrickackermann merged commit 99dc528 into master May 29, 2024
1 check passed
@patrickackermann patrickackermann deleted the fix-union branch May 29, 2024 12:51
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.

Support von GeometryCollections bei IsInside()
2 participants