Skip to content
Permalink
Browse files

Update test result for proj 6

(cherry picked from commit a0280f7)
  • Loading branch information
nyalldawson committed Dec 15, 2019
1 parent 5177b7a commit f7da1d013f0bcd6ebb6773fd63ef4ab97bd181fa
Showing with 22 additions and 0 deletions.
  1. +22 −0 tests/src/app/testqgsprojectproperties.cpp
@@ -94,6 +94,26 @@ void TestQgsProjectProperties::testEllipsoidChange()
pp.reset();
QCOMPARE( QgsProject::instance()->ellipsoid(), QStringLiteral( "NONE" ) );

#if PROJ_VERSION_MAJOR>=6
QgsProject::instance()->setEllipsoid( QStringLiteral( "ESRI:107900" ) );
pp = qgis::make_unique< QgsProjectProperties >( mQgisApp->mapCanvas() );
pp->apply();
pp.reset();
QCOMPARE( QgsProject::instance()->ellipsoid(), QStringLiteral( "ESRI:107900" ) );

QgsProject::instance()->setEllipsoid( QStringLiteral( "EPSG:7002" ) );
pp = qgis::make_unique< QgsProjectProperties >( mQgisApp->mapCanvas() );
pp->apply();
pp.reset();
QCOMPARE( QgsProject::instance()->ellipsoid(), QStringLiteral( "EPSG:7002" ) );

QgsProject::instance()->setEllipsoid( QStringLiteral( "EPSG:7005" ) );
pp = qgis::make_unique< QgsProjectProperties >( mQgisApp->mapCanvas() );
pp->apply();
pp.reset();
QCOMPARE( QgsProject::instance()->ellipsoid(), QStringLiteral( "EPSG:7005" ) );

#else
QgsProject::instance()->setEllipsoid( QStringLiteral( "bessel" ) );
pp = qgis::make_unique< QgsProjectProperties >( mQgisApp->mapCanvas() );
pp->apply();
@@ -112,6 +132,8 @@ void TestQgsProjectProperties::testEllipsoidChange()
pp.reset();
QCOMPARE( QgsProject::instance()->ellipsoid(), QStringLiteral( "IGNF:ELG037" ) );

#endif

QgsProject::instance()->setEllipsoid( QStringLiteral( "NONE" ) );
pp = qgis::make_unique< QgsProjectProperties >( mQgisApp->mapCanvas() );
pp->apply();

0 comments on commit f7da1d0

Please sign in to comment.
You can’t perform that action at this time.