Skip to content
Permalink
Browse files

gdal merge tool: make sure -a_nodata is only added with gdal>=1.9

  • Loading branch information
etiennesky committed Dec 9, 2013
1 parent 8c7bfdb commit fdc3ba79f5bcc514ad6d6697309406b7ab272fa8
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/GdalTools/tools/doMerge.py
@@ -147,8 +147,9 @@ def getArguments(self):
if self.noDataCheck.isChecked():
arguments.append("-n")
arguments.append(str(self.noDataSpin.value()))
arguments.append("-a_nodata")
arguments.append(str(self.noDataSpin.value()))
if Utils.GdalConfig.versionNum() >= 1900:
arguments.append("-a_nodata")
arguments.append(str(self.noDataSpin.value()))
if self.separateCheck.isChecked():
arguments.append("-separate")
if self.pctCheck.isChecked():

0 comments on commit fdc3ba7

Please sign in to comment.
You can’t perform that action at this time.