Skip to content

Commit 2ea4ee9

Browse files
committedSep 21, 2015
Remove fragile centroid of self-intersecting polygon test
1 parent 0a99a6c commit 2ea4ee9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎tests/src/core/testqgsexpression.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,8 +1291,6 @@ class TestQgsExpression: public QObject
12911291
geom = QgsGeometry::fromPolygon( polygon );
12921292
QTest::newRow( "centroid polygon" ) << "centroid( $geometry )" << ( void* ) geom << false << true << ( void* ) geom->centroid();
12931293
geom = QgsGeometry::fromPolygon( polygon );
1294-
QTest::newRow( "centroid self intersecting polygon" ) << "centroid( geomFromWKT('POLYGON((0 0, 0 2, 2 -0.1, 2 2.1, 0 0))') )" << ( void* ) geom << false << false << ( void* ) QgsGeometry::fromWkt( "POINT (8.0 1.0)" );
1295-
geom = QgsGeometry::fromPolygon( polygon );
12961294
QTest::newRow( "centroid multi polygon" ) << "centroid( geomFromWKT('MULTIPOLYGON(((0 0,0 1,1 1,1 0,0 0)),((2 0,2 1,3 1,3 0,2 0)))') )" << ( void* ) geom << false << false << ( void* ) QgsGeometry::fromWkt( "POINT (1.5 0.5)" );
12971295
geom = QgsGeometry::fromPolygon( polygon );
12981296
QTest::newRow( "convexHull simple" ) << "convexHull( $geometry )" << ( void* ) geom << false << true << ( void* ) geom->convexHull();

0 commit comments

Comments
 (0)
Please sign in to comment.