From 4ab9f17ee7b2b906300043c0ef9c3e1975bc4748 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 20 Feb 2020 12:25:29 +1000 Subject: [PATCH] Disable a test which relies on proj 4 behavior --- tests/src/analysis/testqgsalignraster.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/src/analysis/testqgsalignraster.cpp b/tests/src/analysis/testqgsalignraster.cpp index a0aed2dd9879..7f7579dccc38 100644 --- a/tests/src/analysis/testqgsalignraster.cpp +++ b/tests/src/analysis/testqgsalignraster.cpp @@ -237,6 +237,7 @@ class TestAlignRaster : public QObject void testInvalidReprojection() { +#if PROJ_VERSION_MAJOR<6 // the projection works on proj 6 builds QString tmpFile( _tempFile( QStringLiteral( "reproject-invalid" ) ) ); // reprojection to British National Grid with raster in Jakarta area clearly cannot work @@ -250,6 +251,7 @@ class TestAlignRaster : public QObject align.setParametersFromRaster( SRC_FILE, destCRS.toWkt( QgsCoordinateReferenceSystem::WKT2_2018 ) ); bool res = align.run(); QVERIFY( !res ); +#endif } void testSuggestedReferenceLayer()