Skip to content

Commit ac011f4

Browse files
author
brushtyler
committedDec 20, 2010
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
1 parent 649daa4 commit ac011f4

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
 

‎python/plugins/GdalTools/tools/doBuildVRT.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def __init__(self, iface):
2323
(self.inputFilesEdit, SIGNAL("textChanged(const QString &)")),
2424
(self.outputFileEdit, SIGNAL("textChanged(const QString &)")),
2525
(self.resolutionComboBox, SIGNAL("currentIndexChanged(int)"), self.resolutionCheck),
26-
(self.srcNoDataSpin, SIGNAL("valueChanged(int)"), self.srcNoDataCheck, "1.7.0")
26+
(self.srcNoDataSpin, SIGNAL("valueChanged(int)"), self.srcNoDataCheck, "1.7.0"),
27+
(self.separateCheck, SIGNAL("stateChanged(int)"), None, "1.7.0")
2728
]
2829
)
2930

@@ -51,6 +52,8 @@ def getArguments(self):
5152
if self.resolutionCheck.isChecked() and self.resolutionComboBox.currentIndex() >= 0:
5253
arguments << "-resolution"
5354
arguments << self.resolutions[self.resolutionComboBox.currentIndex()]
55+
if self.separateCheck.isChecked():
56+
arguments << "-separate"
5457
if self.srcNoDataCheck.isChecked():
5558
arguments << "-srcnodata"
5659
arguments << str(self.srcNoDataSpin.value())

‎python/plugins/GdalTools/tools/widgetBuildVRT.ui

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>352</width>
10-
<height>153</height>
10+
<height>182</height>
1111
</rect>
1212
</property>
1313
<property name="sizePolicy">
@@ -136,6 +136,13 @@
136136
</property>
137137
</widget>
138138
</item>
139+
<item row="4" column="0">
140+
<widget class="QCheckBox" name="separateCheck">
141+
<property name="text">
142+
<string>Se&amp;parate</string>
143+
</property>
144+
</widget>
145+
</item>
139146
</layout>
140147
</item>
141148
</layout>

0 commit comments

Comments
 (0)