locationtech / jts

The JTS Topology Suite is a Java library for creating and manipulating vector geometry.
Other
1.98k stars 443 forks source link

Use GeometryFixer in DouglasPeuckerSimplifier #888

Open FObermaier opened 2 years ago

FObermaier commented 2 years ago

In the following piece of code the old buffer(0)-trick is still used:

https://github.com/locationtech/jts/blob/30280d0c00fc388672579eaa2e2616a6d0cb48bb/modules/core/src/main/java/org/locationtech/jts/simplify/DouglasPeuckerSimplifier.java#L204-L211

This came up in NTS #612

FObermaier commented 2 years ago

And here: https://github.com/locationtech/jts/blob/5ca5e487167465651f952319507079d8822af8e3/modules/core/src/main/java/org/locationtech/jts/densify/Densifier.java#L196-L200