mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
gdal merge tool: make sure -a_nodata is only added with gdal>=1.9
This commit is contained in:
parent
8c7bfdbdb5
commit
fdc3ba79f5
@ -147,6 +147,7 @@ class GdalToolsDialog(QWidget, Ui_Widget, BasePluginWidget):
|
||||
if self.noDataCheck.isChecked():
|
||||
arguments.append("-n")
|
||||
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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user