We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 302c228 commit e0ff3a5Copy full SHA for e0ff3a5
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