Skip to content

Commit eea63a4

Browse files
committedJun 7, 2013
[sextante] fixed issue with multiple raster input in gdal merge
1 parent da0b468 commit eea63a4

File tree

3 files changed

+8
-37
lines changed

3 files changed

+8
-37
lines changed
 

‎python/plugins/sextante/gdal/GdalUtils.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ def getFormatShortNameFromFilename(filename):
112112

113113
@staticmethod
114114
def escapeAndJoin(strList):
115-
joined = QString()
115+
joined = ""
116116
for s in strList:
117-
if " " in s:
118-
escaped = '"' + s.replace('\\', '\\\\').replace('"', '\\"') + '"'
119-
else:
120-
escaped = s
121-
joined += escaped + " "
122-
return joined.trimmed()
117+
if " " in s:
118+
escaped = '"' + s.replace('\\', '\\\\').replace('"', '\\"') + '"'
119+
else:
120+
escaped = s
121+
joined += escaped + " "
122+
return joined.strip()

‎python/plugins/sextante/gdal/merge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def processAlgorithm(self, progress):
6666
arguments.append(out)
6767
arguments.append("-of")
6868
arguments.append(GdalUtils.getFormatShortNameFromFilename(out))
69-
arguments.append(self.getParameterValue(merge.INPUT).replace(";", " "))
69+
arguments.extend(self.getParameterValue(merge.INPUT).split(";"))
7070

7171
commands = []
7272
if SextanteUtils.isWindows():

‎python/plugins/sextante/grass/ext/r_quantile.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.