Skip to content

Commit

Permalink
Fix build, fix test on proj < 6
Browse files Browse the repository at this point in the history
(cherry picked from commit 4fd9619)
  • Loading branch information
nyalldawson committed Dec 20, 2019
1 parent ffe0923 commit 394cbb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/src/core/testqgscoordinatereferencesystem.cpp
Expand Up @@ -23,7 +23,9 @@ Email : sherman at mrcc dot com
#include "qgis.h"
#include "qgsvectorlayer.h"
#include "qgsproject.h"
#if PROJ_VERSION_MAJOR>=6
#include "qgsprojutils.h"
#endif
#if PROJ_VERSION_MAJOR > 4
#include <proj.h>
#else
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgsdistancearea.cpp
Expand Up @@ -341,7 +341,7 @@ void TestQgsDistanceArea::measureAreaAndUnits()
poly << ring;
polygon = QgsGeometry::fromPolygonXY( poly );

da.setSourceCrs( QgsCoordinateReferenceSystem( QStringLiteral( "ESRI:102635" ) ), QgsProject::instance()->transformContext() );
da.setSourceCrs( QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:102635" ) ), QgsProject::instance()->transformContext() );
da.setEllipsoid( QStringLiteral( "NONE" ) );
// measurement should be in square feet
area = da.measureArea( polygon );
Expand Down

0 comments on commit 394cbb3

Please sign in to comment.