mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix build, fix test on proj < 6
This commit is contained in:
parent
dc3846544e
commit
4fd9619ebc
@ -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
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user