Skip to content
Permalink
Browse files

Merge pull request #1021 from etiennesky/gdal_merge

fix gdal merge nodata value and UI improvements
  • Loading branch information
brushtyler committed Dec 9, 2013
2 parents 221263d + fdc3ba7 commit fc247672b059e04496986cb9a63429b3679e2c38
Showing with 17 additions and 2 deletions.
  1. +3 −0 python/plugins/GdalTools/tools/doMerge.py
  2. +14 −2 python/plugins/GdalTools/tools/widgetMerge.ui
@@ -147,6 +147,9 @@ def getArguments(self):
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():
arguments.append("-separate")
if self.pctCheck.isChecked():
@@ -106,7 +106,7 @@
</widget>
</item>
<item>
<widget class="QGroupBox" name="creationOptionsGroupBox">
<widget class="QgsCollapsibleGroupBox" name="creationOptionsGroupBox">
<property name="title">
<string>&amp;Creation Options</string>
</property>
@@ -116,9 +116,15 @@
<property name="checked">
<bool>false</bool>
</property>
<property name="collapsed" stdset="0">
<bool>false</bool>
</property>
<property name="saveCollapsedState" stdset="0">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="margin">
<number>0</number>
<number>9</number>
</property>
<item>
<widget class="QgsRasterFormatSaveOptionsWidget" name="creationOptionsWidget" native="true"/>
@@ -141,6 +147,12 @@
<header>qgis.gui</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsCollapsibleGroupBox</class>
<extends>QGroupBox</extends>
<header>qgis.gui</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>

0 comments on commit fc24767

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