Skip to content

Commit

Permalink
Fix proj4 build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 5, 2019
1 parent 353060d commit 905ccc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/core/testqgsprojutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 905ccc0

Please sign in to comment.