We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4762be0 commit 124ab99Copy full SHA for 124ab99
python/plugins/GdalTools/tools/doTranslate.py
@@ -15,6 +15,7 @@ def __init__(self, iface):
15
QWidget.__init__(self)
16
self.iface = iface
17
self.canvas = self.iface.mapCanvas()
18
+ self.expand_method = ( 'gray', 'rgb', 'rgba' )
19
20
self.setupUi(self)
21
BaseBatchWidget.__init__(self, self.iface, "gdal_translate")
@@ -188,7 +189,7 @@ def getArguments(self):
188
189
arguments << self.outsizeSpin.text()
190
if self.expandCheck.isChecked():
191
arguments << "-expand"
- arguments << self.expandCombo.currentText().toLower()
192
+ arguments << self.expand_method[self.expandCombo.currentIndex()]
193
if self.nodataCheck.isChecked():
194
arguments << "-a_nodata"
195
arguments << str(self.nodataSpin.value())
0 commit comments