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

GeometryFixer does not propagate keepCollapsed in FixCollection #789

Closed
FObermaier opened this issue Oct 26, 2021 · 0 comments · Fixed by #790
Closed

GeometryFixer does not propagate keepCollapsed in FixCollection #789

FObermaier opened this issue Oct 26, 2021 · 0 comments · Fixed by #790

Comments

@FObermaier
Copy link
Contributor

GeometryFixer.fixCollection internally uses the public static Geometry fix(Geometry) function.
If the calling instance's isKeepCollapsed variable is set to true, this setting is not propagated when fixing the child geometries:

private Geometry fixCollection(GeometryCollection geom) {
Geometry[] geomRep = new Geometry[geom.getNumGeometries()];
for (int i = 0; i < geom.getNumGeometries(); i++) {
geomRep[i] = fix(geom.getGeometryN(i));
}
return factory.createGeometryCollection(geomRep);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants