File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ class TestQgsInvertedPolygon : public QObject
50
50
void graduatedSubRenderer ();
51
51
void preprocess ();
52
52
void projectionTest ();
53
+ #if defined(GDAL_VERSION_NUM) && GDAL_VERSION_MAJOR >= 2
53
54
void curvedPolygons ();
55
+ #endif
54
56
55
57
private:
56
58
bool mTestHasError ;
@@ -147,7 +149,8 @@ void TestQgsInvertedPolygon::projectionTest()
147
149
mMapSettings .setCrsTransformEnabled ( false );
148
150
}
149
151
150
- // This test relies on GDAL support of curved polygons i.e. GDAL >= 2
152
+ #if defined(GDAL_VERSION_NUM) && GDAL_VERSION_MAJOR >= 2
153
+ // This test relies on GDAL support of curved polygons
151
154
void TestQgsInvertedPolygon::curvedPolygons ()
152
155
{
153
156
QString myCurvedPolysFileName = mTestDataDir + " curved_polys.gpkg" ;
@@ -163,6 +166,7 @@ void TestQgsInvertedPolygon::curvedPolygons()
163
166
QVERIFY ( imageCheck ( " inverted_polys_curved" ) );
164
167
mMapSettings .setLayers ( QStringList () << curvedLayer->id () );
165
168
}
169
+ #endif
166
170
167
171
//
168
172
// Private helper functions not called directly by CTest
You can’t perform that action at this time.
0 commit comments