Skip to content
Permalink
Browse files

Spelling

  • Loading branch information
nyalldawson committed May 8, 2018
1 parent f9be605 commit 500af5e49dcf2356419339505d13c9ba81120568
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/app/testqgsmaptoolidentifyaction.cpp
@@ -268,7 +268,7 @@ void TestQgsMapToolIdentifyAction::lengthCalculation()
length = derivedLength.remove( ',' ).split( ' ' ).at( 0 ).toDouble();
QGSCOMPARENEAR( length, 16.734000, 0.001 );

// no conversion of cartesian lengths between unit types
// no conversion of Cartesian lengths between unit types
s.setValue( QStringLiteral( "/qgis/measure/keepbaseunit" ), true );
QgsProject::instance()->setDistanceUnits( QgsUnitTypes::DistanceDegrees );
result = action->identify( mapPoint.x(), mapPoint.y(), QList<QgsMapLayer *>() << tempLayer.get() );
@@ -342,7 +342,7 @@ void TestQgsMapToolIdentifyAction::perimeterCalculation()
perimeter = derivedPerimeter.remove( ',' ).split( ' ' ).at( 0 ).toDouble();
QCOMPARE( perimeter, 79.711 );

// no conversion of cartesian lengths between unit types
// no conversion of Cartesian lengths between unit types
s.setValue( QStringLiteral( "/qgis/measure/keepbaseunit" ), true );
QgsProject::instance()->setDistanceUnits( QgsUnitTypes::DistanceDegrees );
result = action->identify( mapPoint.x(), mapPoint.y(), QList<QgsMapLayer *>() << tempLayer.get() );
@@ -418,7 +418,7 @@ void TestQgsMapToolIdentifyAction::areaCalculation()
area = derivedArea.remove( ',' ).split( ' ' ).at( 0 ).toDouble();
QGSCOMPARENEAR( area, 388.280000, 0.001 );

// no conversion of cartesian lengths between unit types
// no conversion of Cartesian lengths between unit types
s.setValue( QStringLiteral( "/qgis/measure/keepbaseunit" ), true );
QgsProject::instance()->setAreaUnits( QgsUnitTypes::AreaSquareDegrees );
result = action->identify( mapPoint.x(), mapPoint.y(), QList<QgsMapLayer *>() << tempLayer.get() );

0 comments on commit 500af5e

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