gdal:fillnodata Skip testing NO_MASK parameter if GDAL >= 3.4.0

This commit is contained in:
Andrea Giudiceandrea 2024-02-07 11:29:16 +01:00 committed by Nyall Dawson
parent 3945c73b84
commit dbdf35be77

View File

@ -2305,16 +2305,17 @@ class TestGdalRasterAlgorithms(QgisTestCase, AlgorithmsTestBase.AlgorithmsTest):
['gdal_fillnodata.py',
f'{source} {outsource} -md 10 -b 1 -of GTiff'])
# nomask true
self.assertEqual(
alg.getConsoleCommands({'INPUT': source,
'BAND': 1,
'DISTANCE': 10,
'ITERATIONS': 0,
'NO_MASK': True,
'OUTPUT': outsource}, context, feedback),
['gdal_fillnodata.py',
f'{source} {outsource} -md 10 -b 1 -nomask -of GTiff'])
if not GdalUtils.version() >= 3040000:
# nomask true
self.assertEqual(
alg.getConsoleCommands({'INPUT': source,
'BAND': 1,
'DISTANCE': 10,
'ITERATIONS': 0,
'NO_MASK': True,
'OUTPUT': outsource}, context, feedback),
['gdal_fillnodata.py',
f'{source} {outsource} -md 10 -b 1 -nomask -of GTiff'])
# creation options
self.assertEqual(