locationtech / jts

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

Improve CoverageSimplifier #1060

Closed dr-jts closed 4 months ago

dr-jts commented 5 months ago

Improves CoverageSimplier:

nstrahl commented 5 months ago

I have a suggestion here.

Take the geometry from example testInnerHoleTouchingShell.

image

If the tolerances 0,500,500 are provided then the holes are not simplified. I think it should be possible to coarsen hole or island polygons since they do not have any significant overlap with the exterior ring of the geometry enclosing them. Therefore we should probably skip the tolerance comparisson in such a case. A flag could be passed (e.g. forceHoleTolerances) to make this optional.