mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
gdaltools: fix Translate/FillNodata batch mode (follo df4fc99e83)
This commit is contained in:
parent
d1474956f2
commit
c8d3fa7d0a
@ -206,8 +206,8 @@ class GdalToolsDialog( QWidget, Ui_Widget, BaseBatchWidget ):
|
||||
|
||||
def batchRun(self):
|
||||
exts = re.sub('\).*$', '', re.sub('^.*\(', '', self.formatCombo.currentText())).split(" ")
|
||||
if exts and exts != "*" and exts != "*.*":
|
||||
outExt = exts[ 0 ].remove( "*" )
|
||||
if len(exts) > 0 and exts[0] != "*" and exts[0] != "*.*":
|
||||
outExt = exts[0].replace( "*", "" )
|
||||
else:
|
||||
outExt = ".tif"
|
||||
|
||||
|
@ -277,8 +277,8 @@ class GdalToolsDialog(QWidget, Ui_Widget, BaseBatchWidget):
|
||||
|
||||
def batchRun(self):
|
||||
exts = re.sub('\).*$', '', re.sub('^.*\(', '', self.formatCombo.currentText())).split(" ")
|
||||
if exts and exts != "*" and exts != "*.*":
|
||||
outExt = exts[ 0 ].remove( "*" )
|
||||
if len(exts) > 0 and exts[0] != "*" and exts[0] != "*.*":
|
||||
outExt = exts[0].replace( "*", "" )
|
||||
else:
|
||||
outExt = ".tif"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user