You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A is a very narrow triangle (shown below in Reveal Topology mode):
The cause of the problem is that after noding the long side of the triangle has a vertex introduced, which causes the lower section to shift left enough so that middle vertex ends up on the opposite side of the noded line segment:
this situation is not detected by the internal noding validation, since the noding is valid in the sense that it does not contain any intersecting segments
Snapping noding works on this case (so if the incorrect result can be detected, it can be handled by the same logic that handles other robustness failures)
Originally reported as Shapely-1216 and GEOS-1144. This issue presents a simplified geometry.
The text was updated successfully, but these errors were encountered:
Ideas for ways to detect this invalid topology (and thus throw a TopologyException to trigger using snapping, which does work):
check the result envelope is consistent with the inputs and the operation (e.g. the envelope of an intersection should be covered by the input envelopes)
check that the topology of the noded edges is consistent with the inputs (i.e. in this case the input polygon A produces an edge ring which is a hole and no containing shell)
use the robust IntersectionArea algorithm to verify the result is reasonable, and if not throw so snapping is used
The following case produces incorrect results for all overlay operations using OverayNG (in particular, intersection):
Incorrect result of

intersection:Analysis
A is a very narrow triangle (shown below in Reveal Topology mode):

The cause of the problem is that after noding the long side of the triangle has a vertex introduced, which causes the lower section to shift left enough so that middle vertex ends up on the opposite side of the noded line segment:

Case 2
Case 3
Notes
Originally reported as Shapely-1216 and GEOS-1144. This issue presents a simplified geometry.
The text was updated successfully, but these errors were encountered: