We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d1d2ff commit 2a066d8Copy full SHA for 2a066d8
src/core/qgsgeometryvalidator.cpp
@@ -62,7 +62,9 @@ void QgsGeometryValidator::checkRingIntersections(
62
if ( d >= 0 && d <= v.length() )
63
{
64
d = -distLine2Point( ring1[j], w.perpVector(), s );
65
- if ( d > 0 && d < w.length() )
+ if ( d > 0 && d < w.length() &&
66
+ ring0[i+1] != ring1[j+1] && ring0[i+1] != ring1[j] &&
67
+ ring0[i+0] != ring1[j+1] && ring0[i+0] != ring1[j] )
68
69
QString msg = QObject::tr( "segment %1 of ring %2 of polygon %3 intersects segment %4 of ring %5 of polygon %6 at %7" )
70
.arg( i0 ).arg( i ).arg( p0 )
0 commit comments