mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
update test
This commit is contained in:
parent
f774f0d0c3
commit
a7cfcac68e
@ -164,7 +164,7 @@ void TestQgsMapToolAddFeatureLine::initTestCase()
|
||||
|
||||
mLayerTopoZ->startEditing();
|
||||
QgsFeature topoFeat;
|
||||
topoFeat.setGeometry( QgsGeometry::fromWkt( "MultiLineStringZ ((7.25 6 0, 7.25 7 0, 7.5 7 0, 7.5 6 0, 7.25 6 0),(6 6 0, 6 7 0, 7 7 0, 7 6 0, 6 6 0),(6.25 6.25 0, 6.75 6.25 0, 6.75 6.75 0, 6.25 6.75 0, 6.25 6.25 0)));" ) );
|
||||
topoFeat.setGeometry( QgsGeometry::fromWkt( "MultiLineStringZ ((7.25 6 0, 7.25 7 0, 7.5 7 0, 7.5 6 0, 7.25 6 0),(6 6 0, 6 7 10, 7 7 0, 7 6 0, 6 6 0),(6.25 6.25 0, 6.75 6.25 0, 6.75 6.75 0, 6.25 6.75 0, 6.25 6.25 0)));" ) );
|
||||
|
||||
mLayerTopoZ->addFeature( topoFeat );
|
||||
QCOMPARE( mLayerTopoZ->featureCount(), ( long ) 1 );
|
||||
@ -438,9 +438,9 @@ void TestQgsMapToolAddFeatureLine::testTopologicalEditingZ()
|
||||
utils.mouseClick( 8, 6.5, Qt::RightButton );
|
||||
QgsFeatureId newFid = utils.newFeatureId( oldFids );
|
||||
|
||||
QString wkt = "LineStringZ (6 6.5 333, 6.25 6.5 333, 6.75 6.5 333, 7.25 6.5 333, 7.5 6.5 333)";
|
||||
QString wkt = "LineStringZ (6 6.5 5, 6.25 6.5 333, 6.75 6.5 333, 7.25 6.5 333, 7.5 6.5 333)";
|
||||
QCOMPARE( mLayerTopoZ->getFeature( newFid ).geometry(), QgsGeometry::fromWkt( wkt ) );
|
||||
wkt = "MultiLineStringZ ((7.25 6 0, 7.25 6.5 333, 7.25 7 0, 7.5 7 0, 7.5 6.5 333, 7.5 6 0, 7.25 6 0),(6 6 0, 6 6.5 333, 6 7 0, 7 7 0, 7 6 0, 6 6 0),(6.25 6.25 0, 6.75 6.25 0, 6.75 6.5 333, 6.75 6.75 0, 6.25 6.75 0, 6.25 6.5 333, 6.25 6.25 0))";
|
||||
wkt = "MultiLineStringZ ((7.25 6 0, 7.25 6.5 333, 7.25 7 0, 7.5 7 0, 7.5 6.5 333, 7.5 6 0, 7.25 6 0),(6 6 0, 6 6.5 5, 6 7 10, 7 7 0, 7 6 0, 6 6 0),(6.25 6.25 0, 6.75 6.25 0, 6.75 6.5 333, 6.75 6.75 0, 6.25 6.75 0, 6.25 6.5 333, 6.25 6.25 0))";
|
||||
QCOMPARE( mLayerTopoZ->getFeature( oldFids.toList().last() ).geometry(), QgsGeometry::fromWkt( wkt ) );
|
||||
|
||||
mLayerLine->undoStack()->undo();
|
||||
|
Loading…
x
Reference in New Issue
Block a user