Skip to content

Commit 0e5baf4

Browse files
committedMay 26, 2011
crop to mask layer extent
1 parent 2670283 commit 0e5baf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎python/plugins/GdalTools/tools/doClipper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ def getArgsModeMask(self):
139139
arguments << "-q"
140140
arguments << "-cutline"
141141
arguments << mask
142+
if Utils.GdalConfig.version() >= "1.8.0":
143+
arguments << "-crop_to_cutline"
142144
if self.alphaBandCheck.isChecked():
143145
arguments << "-dstalpha"
144146

0 commit comments

Comments
 (0)
Please sign in to comment.