locationtech / jts

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

OverlayNG produces obviously incorrect results in some situations #1000

Open dr-jts opened 1 year ago

dr-jts commented 1 year ago

This is an umbrella issue for various bug reports about failure cases in OverlayNG operations.

The cases always (?) involve nearly-coincident linework (either in a single input or between inputs). The result of overlay operations is obviously incorrect (i.e. it is drastically different from the expected result).

Previously an area-check heuristic was added in #812, but this does not handle all cases. Any fix should be tested to see if it handles the cases resolved by that fix (https://github.com/Toblerity/Shapely/issues/1216, GEOS-1144.

Options for fixing:

grimsa commented 11 months ago

There is one more issue with OverlayNG area heuristic check: https://github.com/locationtech/jts/issues/951 - mentioning it here for visibility just in case it is related.