[QGIS Commit] r14939 - trunk/qgis/python/plugins/GdalTools/tools

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Dec 19 22:58:14 EST 2010


Author: brushtyler
Date: 2010-12-19 19:58:14 -0800 (Sun, 19 Dec 2010)
New Revision: 14939

Modified:
   trunk/qgis/python/plugins/GdalTools/tools/doBuildVRT.py
   trunk/qgis/python/plugins/GdalTools/tools/widgetBuildVRT.ui
Log:
Added separate option to BuildVRT tool, to fix #3180


Modified: trunk/qgis/python/plugins/GdalTools/tools/doBuildVRT.py
===================================================================
--- trunk/qgis/python/plugins/GdalTools/tools/doBuildVRT.py	2010-12-20 03:34:51 UTC (rev 14938)
+++ trunk/qgis/python/plugins/GdalTools/tools/doBuildVRT.py	2010-12-20 03:58:14 UTC (rev 14939)
@@ -23,7 +23,8 @@
           (self.inputFilesEdit, SIGNAL("textChanged(const QString &)")), 
           (self.outputFileEdit, SIGNAL("textChanged(const QString &)")), 
           (self.resolutionComboBox, SIGNAL("currentIndexChanged(int)"), self.resolutionCheck),
-          (self.srcNoDataSpin, SIGNAL("valueChanged(int)"), self.srcNoDataCheck, "1.7.0")
+          (self.srcNoDataSpin, SIGNAL("valueChanged(int)"), self.srcNoDataCheck, "1.7.0"),
+          (self.separateCheck, SIGNAL("stateChanged(int)"), None, "1.7.0")
         ]
       )
 
@@ -51,6 +52,8 @@
       if self.resolutionCheck.isChecked() and self.resolutionComboBox.currentIndex() >= 0:
         arguments << "-resolution"
         arguments << self.resolutions[self.resolutionComboBox.currentIndex()]
+      if self.separateCheck.isChecked():
+        arguments << "-separate"
       if self.srcNoDataCheck.isChecked():
         arguments << "-srcnodata"
         arguments << str(self.srcNoDataSpin.value())

Modified: trunk/qgis/python/plugins/GdalTools/tools/widgetBuildVRT.ui
===================================================================
--- trunk/qgis/python/plugins/GdalTools/tools/widgetBuildVRT.ui	2010-12-20 03:34:51 UTC (rev 14938)
+++ trunk/qgis/python/plugins/GdalTools/tools/widgetBuildVRT.ui	2010-12-20 03:58:14 UTC (rev 14939)
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>352</width>
-    <height>153</height>
+    <height>182</height>
    </rect>
   </property>
   <property name="sizePolicy">
@@ -136,6 +136,13 @@
        </property>
       </widget>
      </item>
+     <item row="4" column="0">
+      <widget class="QCheckBox" name="separateCheck">
+       <property name="text">
+        <string>Se&amp;parate</string>
+       </property>
+      </widget>
+     </item>
     </layout>
    </item>
   </layout>



More information about the QGIS-commit mailing list