mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Remove line segmentation test checking for control point containement
There are more tests in dedicated file (testqgscurve.cpp)
This commit is contained in:
parent
5186c385c4
commit
650cf6a3fd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user