Skip to content

Commit 2a066d8

Browse files
committedJun 30, 2015
geometry validator: fix touching lines check (followup b9b9bc3, fixes #12730)
(cherry picked from commit 3eef29a)
1 parent 4d1d2ff commit 2a066d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/core/qgsgeometryvalidator.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ void QgsGeometryValidator::checkRingIntersections(
6262
if ( d >= 0 && d <= v.length() )
6363
{
6464
d = -distLine2Point( ring1[j], w.perpVector(), s );
65-
if ( d > 0 && d < w.length() )
65+
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] )
6668
{
6769
QString msg = QObject::tr( "segment %1 of ring %2 of polygon %3 intersects segment %4 of ring %5 of polygon %6 at %7" )
6870
.arg( i0 ).arg( i ).arg( p0 )

0 commit comments

Comments
 (0)
Please sign in to comment.