Skip to content
Permalink
Browse files

Fix proj4 build

  • Loading branch information
nyalldawson committed Apr 5, 2019
1 parent 353060d commit 905ccc091727e2c191b365fcb0ad30d65f4a1530
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/core/testqgsprojutils.cpp
@@ -70,11 +70,13 @@ void TestQgsProjUtils::threadSafeContext()

void TestQgsProjUtils::usesAngularUnits()
{
#if PROJ_VERSION_MAJOR>=6
QVERIFY( !QgsProjUtils::usesAngularUnit( QString() ) );
QVERIFY( !QgsProjUtils::usesAngularUnit( QString( "" ) ) );
QVERIFY( !QgsProjUtils::usesAngularUnit( QStringLiteral( "x" ) ) );
QVERIFY( QgsProjUtils::usesAngularUnit( QStringLiteral( "+proj=longlat +ellps=WGS60 +no_defs" ) ) );
QVERIFY( !QgsProjUtils::usesAngularUnit( QStringLiteral( "+proj=tmerc +lat_0=0 +lon_0=147 +k_0=0.9996 +x_0=500000 +y_0=10000000 +ellps=GRS80 +units=m +no_defs" ) ) );
#endif
}

QGSTEST_MAIN( TestQgsProjUtils )

0 comments on commit 905ccc0

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