Skip to content
Permalink
Browse files
Remove line segmentation test checking for control point containement
There are more tests in dedicated file (testqgscurve.cpp)
  • Loading branch information
strk committed Aug 25, 2017
1 parent 5186c38 commit 650cf6a
Showing 1 changed file with 0 additions and 18 deletions.
@@ -118,7 +118,6 @@ class TestQgsGeometry : public QObject

void wkbInOut();

void segmentizeCircularString();
void directionNeutralSegmentation();
void poleOfInaccessibility();

@@ -5290,23 +5289,6 @@ void TestQgsGeometry::wkbInOut()
QCOMPARE( badHeader.wkbType(), QgsWkbTypes::Unknown );
}

void TestQgsGeometry::segmentizeCircularString()
{
QString wkt( QStringLiteral( "CIRCULARSTRING( 0 0, 0.5 0.5, 2 0 )" ) );
QgsCircularString *circularString = dynamic_cast<QgsCircularString *>( QgsGeometryFactory::geomFromWkt( wkt ).release() );
QVERIFY( circularString );
QgsLineString *lineString = circularString->curveToLine();
QVERIFY( lineString );
QgsPointSequence points;
lineString->points( points );

delete circularString;
delete lineString;

//make sure the curve point is part of the segmentized result
QVERIFY( points.contains( QgsPoint( 0.5, 0.5 ) ) );
}

void TestQgsGeometry::directionNeutralSegmentation()
{
//Tests, if segmentation of a circularstring is the same in both directions

0 comments on commit 650cf6a

Please sign in to comment.