Skip to content
Permalink
Browse files

Fix failing distance area test on OSX

(cherry-picked from af9b4a7)
  • Loading branch information
nyalldawson committed Jul 27, 2016
1 parent 5b8a9f0 commit f70979a9a7e2b54825ad74b473a2c32243199a9b
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/src/core/testqgsdistancearea.cpp
@@ -365,7 +365,8 @@ void TestQgsDistanceArea::regression14675()
calc.setEllipsoid( "GRS80" );
calc.setSourceCrs( 145L );
QgsGeometry geom( QgsGeometryFactory::geomFromWkt( "Polygon ((917593.5791854317067191 6833700.00807378999888897, 917596.43389983859378844 6833700.67099479306489229, 917599.53056440979707986 6833700.78673478215932846, 917593.5791854317067191 6833700.00807378999888897))" ) );
QVERIFY( qgsDoubleNear( calc.measureArea( &geom ), 0.83301, 0.0001 ) );
//lots of tolerance here - the formulas get quite unstable with small areas due to division by very small floats
QVERIFY( qgsDoubleNear( calc.measureArea( &geom ), 0.83301, 0.02 ) );
}

QTEST_MAIN( TestQgsDistanceArea )

0 comments on commit f70979a

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