Skip to content

Commit 323c658

Browse files
committed
[processing] add workaround for GDAL regression with cutlines (fix #15746)
1 parent d0da880 commit 323c658

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

python/plugins/processing/algs/gdal/ClipByMask.py

+3
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ def getConsoleCommands(self):
193193

194194
arguments.append("-wo OPTIMIZE_SIZE=TRUE")
195195

196+
if GdalUtils.version() in [2010000, 2010100]:
197+
arguments.append("--config GDALWARP_IGNORE_BAD_CUTLINE YES")
198+
196199
arguments.append(self.getParameterValue(self.INPUT))
197200
arguments.append(out)
198201

python/plugins/processing/algs/gdal/warp.py

+3
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ def getConsoleCommands(self):
198198

199199
arguments.append("-wo OPTIMIZE_SIZE=TRUE")
200200

201+
if GdalUtils.version() in [2010000, 2010100]:
202+
arguments.append("--config GDALWARP_IGNORE_BAD_CUTLINE YES")
203+
201204
arguments.append(self.getParameterValue(self.INPUT))
202205
arguments.append(out)
203206

0 commit comments

Comments
 (0)