Skip to content

Commit

Permalink
Add comment describing the invalid polygon
Browse files Browse the repository at this point in the history
Follow up to
#3246 (comment)
  • Loading branch information
strk committed Jun 28, 2016
1 parent 002ace2 commit ba1d38c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/app/testqgsmaptoolidentifyaction.cpp
Expand Up @@ -360,6 +360,8 @@ void TestQgsMapToolIdentifyAction::identifyInvalidPolygons()
QVERIFY( memoryLayer->isValid() );
QgsFeature f1( memoryLayer->dataProvider()->fields(), 1 );
f1.setAttribute( "pk", 1 );
// This geometry is an invalid polygon (3 distinct vertices).
// GEOS reported invalidity: Points of LinearRing do not form a closed linestring
f1.setGeometry( geomFromHexWKB(
"010300000001000000030000000000000000000000000000000000000000000000000024400000000000000000000000000000244000000000000024400000000000000000"
) );
Expand Down
2 changes: 2 additions & 0 deletions tests/src/app/testqgsmaptoolselect.cpp
Expand Up @@ -134,6 +134,8 @@ void TestQgsMapToolSelect::selectInvalidPolygons()
QVERIFY( memoryLayer->isValid() );
QgsFeature f1( memoryLayer->dataProvider()->fields(), 1 );
f1.setAttribute( "pk", 1 );
// This geometry is an invalid polygon (3 distinct vertices).
// GEOS reported invalidity: Points of LinearRing do not form a closed linestring
f1.setGeometry( geomFromHexWKB(
"010300000001000000030000000000000000000000000000000000000000000000000024400000000000000000000000000000244000000000000024400000000000000000"
) );
Expand Down

0 comments on commit ba1d38c

Please sign in to comment.