NetTopologySuite / NetTopologySuite

A .NET GIS solution that is fast and reliable for the .NET platform.
Other
1.44k stars 317 forks source link

Request to port H2GIS MakeValidOp method to NTS for cleaning geometry #254

Closed donnyv closed 3 years ago

donnyv commented 6 years ago

I ran across this method while researching something else. It's completely built with JTS and would be a handy method to have for cleaning up data. https://github.com/orbisgis/h2gis/blob/22c16ce4844ee1b4b59301128f90fd57f1300fc7/h2gis-functions/src/main/java/org/h2gis/functions/spatial/clean/MakeValidOp.java

FObermaier commented 6 years ago

Please see/join discussion on https://gitter.im/locationtech/jts

FObermaier commented 3 years ago

This functionality is now (v2.4.2) available via

var fixedGeom = NetTopologySuite.Geometries.Utilities.GeometryFixer.Fix(invalidGeometry);