Skip to content

Commit

Permalink
[processing] add OPTIMIZE_SIZE option to gdalwarp (fix #5651)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 25, 2016
1 parent 660bb27 commit 619356e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/gdal/ClipByExtent.py
Expand Up @@ -151,6 +151,8 @@ def getConsoleCommands(self):
if len(bigtiff) > 0:
arguments.append("-co BIGTIFF=" + bigtiff)

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

arguments.append(self.getParameterValue(self.INPUT))
arguments.append(out)

Expand Down
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/gdal/ClipByMask.py
Expand Up @@ -186,6 +186,8 @@ def getConsoleCommands(self):
if len(bigtiff) > 0:
arguments.append("-co BIGTIFF=" + bigtiff)

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

arguments.append(self.getParameterValue(self.INPUT))
arguments.append(out)

Expand Down
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/gdal/warp.py
Expand Up @@ -182,6 +182,8 @@ def getConsoleCommands(self):
if len(bigtiff) > 0:
arguments.append("-co BIGTIFF=" + bigtiff)

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

arguments.append(self.getParameterValue(self.INPUT))
arguments.append(out)

Expand Down

0 comments on commit 619356e

Please sign in to comment.