locationtech / jts

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

Fix buffer Inverted Ring Removal check #1038

Closed dr-jts closed 4 months ago

dr-jts commented 4 months ago

This fixes the isRingCurveInverted check to avoid removing a class of raw offset curves which are in fact valid buffer curves. The check was introduced in #706 and improved in #878. But the issues reported in https://github.com/libgeos/geos/issues/984 revealed that there were still valid cases being removed incorrectly.