Skip to content

Commit

Permalink
Update another test for proj 7
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 20, 2020
1 parent 97486ee commit efeadcf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/src/core/testqgsproject.cpp
Expand Up @@ -576,7 +576,11 @@ void TestQgsProject::testSetGetCrs()
QCOMPARE( ellipsoidChangedSpy.count(), 1 );

QCOMPARE( p.crs(), QgsCoordinateReferenceSystem::fromEpsgId( 21781 ) );
#if PROJ_VERSION_MAJOR>=6
QCOMPARE( p.ellipsoid(), QStringLiteral( "EPSG:7004" ) );
#else
QCOMPARE( p.ellipsoid(), QStringLiteral( "bessel" ) );
#endif

crsChangedSpy.clear();
ellipsoidChangedSpy.clear();
Expand All @@ -591,7 +595,11 @@ void TestQgsProject::testSetGetCrs()
QCOMPARE( ellipsoidChangedSpy.count(), 0 );

QCOMPARE( p.crs(), QgsCoordinateReferenceSystem::fromEpsgId( 2056 ) );
#if PROJ_VERSION_MAJOR>=6
QCOMPARE( p.ellipsoid(), QStringLiteral( "EPSG:7004" ) );
#else
QCOMPARE( p.ellipsoid(), QStringLiteral( "bessel" ) );
#endif

crsChangedSpy.clear();
ellipsoidChangedSpy.clear();
Expand Down

0 comments on commit efeadcf

Please sign in to comment.