Skip to content

Commit

Permalink
Merge pull request #25 from brushtyler/master
Browse files Browse the repository at this point in the history
GdalTools clipper, crop to mask layer extent. will cherry-pick to release branch too.
  • Loading branch information
timlinux committed May 26, 2011
2 parents c2757d3 + 0e5baf4 commit db4fdee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/GdalTools/tools/doClipper.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def getArgsModeMask(self):
arguments << "-q"
arguments << "-cutline"
arguments << mask
if Utils.GdalConfig.version() >= "1.8.0":
arguments << "-crop_to_cutline"
if self.alphaBandCheck.isChecked():
arguments << "-dstalpha"

Expand Down

0 comments on commit db4fdee

Please sign in to comment.