Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update test result for Geographiclib area calculation switch
  • Loading branch information
nyalldawson committed Feb 27, 2021
1 parent 8261ddf commit 48c27ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsvectorlayer.py
Expand Up @@ -2062,13 +2062,13 @@ def test_ExpressionFieldEllipsoidAreaCalculation(self):

# check value
f = next(temp_layer.getFeatures())
expected = 1005721496.7800847
expected = 1005755617.8191342
self.assertAlmostEqual(f['area'], expected, delta=1.0)

# change project area unit, check calculation respects unit
QgsProject.instance().setAreaUnits(QgsUnitTypes.AreaSquareMiles)
f = next(temp_layer.getFeatures())
expected = 388.31124079933016
expected = 388.3244150061589
self.assertAlmostEqual(f['area'], expected, 3)

def test_ExpressionFilter(self):
Expand Down

0 comments on commit 48c27ba

Please sign in to comment.