Skip to content
Permalink
Browse files
Added separate option to BuildVRT tool, to fix #3180
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14939 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Dec 20, 2010
1 parent 649daa4 commit ac011f43a0effff52a1afb53948d74d16ccbe9d4
Showing with 12 additions and 2 deletions.
  1. +4 −1 python/plugins/GdalTools/tools/doBuildVRT.py
  2. +8 −1 python/plugins/GdalTools/tools/widgetBuildVRT.ui
@@ -23,7 +23,8 @@ def __init__(self, iface):
(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 @@ def getArguments(self):
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())
@@ -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>

0 comments on commit ac011f4

Please sign in to comment.