Skip to content

Commit ba1d38c

Browse files
committedJun 28, 2016
Add comment describing the invalid polygon
Follow up to #3246 (comment)
1 parent 002ace2 commit ba1d38c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎tests/src/app/testqgsmaptoolidentifyaction.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ void TestQgsMapToolIdentifyAction::identifyInvalidPolygons()
360360
QVERIFY( memoryLayer->isValid() );
361361
QgsFeature f1( memoryLayer->dataProvider()->fields(), 1 );
362362
f1.setAttribute( "pk", 1 );
363+
// This geometry is an invalid polygon (3 distinct vertices).
364+
// GEOS reported invalidity: Points of LinearRing do not form a closed linestring
363365
f1.setGeometry( geomFromHexWKB(
364366
"010300000001000000030000000000000000000000000000000000000000000000000024400000000000000000000000000000244000000000000024400000000000000000"
365367
) );

‎tests/src/app/testqgsmaptoolselect.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ void TestQgsMapToolSelect::selectInvalidPolygons()
134134
QVERIFY( memoryLayer->isValid() );
135135
QgsFeature f1( memoryLayer->dataProvider()->fields(), 1 );
136136
f1.setAttribute( "pk", 1 );
137+
// This geometry is an invalid polygon (3 distinct vertices).
138+
// GEOS reported invalidity: Points of LinearRing do not form a closed linestring
137139
f1.setGeometry( geomFromHexWKB(
138140
"010300000001000000030000000000000000000000000000000000000000000000000024400000000000000000000000000000244000000000000024400000000000000000"
139141
) );

0 commit comments

Comments
 (0)
Please sign in to comment.