Skip to content
Permalink
Browse files

Update test result for proj 6

  • Loading branch information
nyalldawson committed Dec 15, 2019
1 parent 24d773c commit a0280f7cb52142866ad42fb574ddd111b8be2cf2
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 a0280f7

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