[processing] add workaround for GDAL regression with cutlines (fix #15746)

This commit is contained in:
Alexander Bruy 2016-10-25 17:46:52 +03:00
parent d0da880b8c
commit 323c6582c6
2 changed files with 6 additions and 0 deletions

View File

@ -193,6 +193,9 @@ class ClipByMask(GdalAlgorithm):
arguments.append("-wo OPTIMIZE_SIZE=TRUE")
if GdalUtils.version() in [2010000, 2010100]:
arguments.append("--config GDALWARP_IGNORE_BAD_CUTLINE YES")
arguments.append(self.getParameterValue(self.INPUT))
arguments.append(out)

View File

@ -198,6 +198,9 @@ class warp(GdalAlgorithm):
arguments.append("-wo OPTIMIZE_SIZE=TRUE")
if GdalUtils.version() in [2010000, 2010100]:
arguments.append("--config GDALWARP_IGNORE_BAD_CUTLINE YES")
arguments.append(self.getParameterValue(self.INPUT))
arguments.append(out)