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

Repairing invalid geometries #10

Open
missinglink opened this issue Jul 11, 2019 · 0 comments
Open

Repairing invalid geometries #10

missinglink opened this issue Jul 11, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@missinglink
Copy link
Member

missinglink commented Jul 11, 2019

It's fairly common to find geometries with topology errors.
A GEOS TopologyException is thrown due to the polygon rings overlapping and various other common errors.

It's possible to leverage GEOS or RTTOPO to attempt to repair these geometries.
The challenge will be ensuring that the correct libraries are available and that spatialite is compiled correctly to enable them.

The functionality is exposed in SQL via commands such as SanitizeGeometry() and MakeValid().

I'm not 100% confident that this will be easy to achieve on MacOS, although I've got it working on Linux before, so it might end up being a docker-only thing.

This would be super-useful for some sources (such as OSM) where the internal data-model is not handled by a spatial database which enforces topological validity, or for datasets which are format-shifted and incur errors during that conversion.

related: #9

@missinglink missinglink added the enhancement New feature or request label Jul 11, 2019
missinglink added a commit that referenced this issue Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant