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

Improve behaviour of GeometryFixer for holes outside shell #772

Merged

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Sep 2, 2021

A fairly common class of geometry validation error is to have polygons mis-classified as holes. This can occur in formats where there is no explicit distinction between shells and holes, only that of ring orientation and geometric location (e.g. the shapefile format).

This GeometryFixer improvement handles this situation by detecting holes lying wholly outside shells and converting them into Polygons.

Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
@dr-jts dr-jts merged commit c883b04 into locationtech:master Sep 2, 2021
@dr-jts dr-jts deleted the fix-geometryfixer-holes-outside-shell branch September 2, 2021 23:04
pramsey added a commit to pramsey/geos that referenced this pull request Sep 7, 2021
strk pushed a commit to libgeos/geos that referenced this pull request Sep 8, 2021
@jodygarnett jodygarnett added this to the 1.19.0 milestone Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants