Skip to content
Permalink
Browse files

gdaltools: fix Translate/FillNodata batch mode (follo df4fc99)

  • Loading branch information
brushtyler committed Jun 27, 2013
1 parent d147495 commit c8d3fa7d0a547e829b55bbb5b3b2adf8c9d00bf6
Showing with 4 additions and 4 deletions.
  1. +2 −2 python/plugins/GdalTools/tools/doFillNodata.py
  2. +2 −2 python/plugins/GdalTools/tools/doTranslate.py
@@ -206,8 +206,8 @@ def updateProgress(self, index, total):

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 @@ def updateProgress(self, index, total):

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"

0 comments on commit c8d3fa7

Please sign in to comment.
You can’t perform that action at this time.