Skip to content

Commit 619356e

Browse files
committedMar 25, 2016
[processing] add OPTIMIZE_SIZE option to gdalwarp (fix #5651)
1 parent 660bb27 commit 619356e

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed
 

‎python/plugins/processing/algs/gdal/ClipByExtent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ def getConsoleCommands(self):
151151
if len(bigtiff) > 0:
152152
arguments.append("-co BIGTIFF=" + bigtiff)
153153

154+
arguments.append("-wo OPTIMIZE_SIZE=TRUE")
155+
154156
arguments.append(self.getParameterValue(self.INPUT))
155157
arguments.append(out)
156158

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ def getConsoleCommands(self):
186186
if len(bigtiff) > 0:
187187
arguments.append("-co BIGTIFF=" + bigtiff)
188188

189+
arguments.append("-wo OPTIMIZE_SIZE=TRUE")
190+
189191
arguments.append(self.getParameterValue(self.INPUT))
190192
arguments.append(out)
191193

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ def getConsoleCommands(self):
182182
if len(bigtiff) > 0:
183183
arguments.append("-co BIGTIFF=" + bigtiff)
184184

185+
arguments.append("-wo OPTIMIZE_SIZE=TRUE")
186+
185187
arguments.append(self.getParameterValue(self.INPUT))
186188
arguments.append(out)
187189

0 commit comments

Comments
 (0)
Please sign in to comment.