Skip to content

Commit db4fdee

Browse files
committedMay 26, 2011
Merge pull request #25 from brushtyler/master
GdalTools clipper, crop to mask layer extent. will cherry-pick to release branch too.
2 parents c2757d3 + 0e5baf4 commit db4fdee

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.