Skip to content
Permalink
Browse files

Add comment describing the invalid polygon

Follow up to
#3246 (comment)
  • Loading branch information
strk committed Jun 28, 2016
1 parent 002ace2 commit ba1d38c2edaee24ca5e01dd1d9652de37d32ca9d
Showing with 4 additions and 0 deletions.
  1. +2 −0 tests/src/app/testqgsmaptoolidentifyaction.cpp
  2. +2 −0 tests/src/app/testqgsmaptoolselect.cpp
@@ -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"
) );
@@ -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"
) );

0 comments on commit ba1d38c

Please sign in to comment.
You can’t perform that action at this time.