Fix build, fix test on proj < 6

This commit is contained in:
Nyall Dawson 2019-12-19 13:49:09 +10:00
parent dc3846544e
commit 4fd9619ebc
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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 );