Skip to content

Commit

Permalink
Update test for proj 6
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 20, 2020
1 parent fe84b45 commit 6a0266c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/core/testqgslayoutmap.cpp
Expand Up @@ -652,7 +652,11 @@ void TestQgsLayoutMap::expressionContext()

QgsExpression e9( QStringLiteral( "@map_crs_ellipsoid" ) );
r = e9.evaluate( &c );
#if PROJ_VERSION_MAJOR>=6
QCOMPARE( r.toString(), QString( "EPSG:7030" ) );
#else
QCOMPARE( r.toString(), QString( "WGS84" ) );
#endif

QgsVectorLayer *layer = new QgsVectorLayer( QStringLiteral( "Point?field=id_a:integer" ), QStringLiteral( "A" ), QStringLiteral( "memory" ) );
QgsVectorLayer *layer2 = new QgsVectorLayer( QStringLiteral( "Point?field=id_a:integer" ), QStringLiteral( "B" ), QStringLiteral( "memory" ) );
Expand Down

0 comments on commit 6a0266c

Please sign in to comment.