Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5265 from alexbruy/fix-rasterize
[processing] fix Python error in rasterize algorithms
  • Loading branch information
alexbruy committed Sep 28, 2017
2 parents 7de9078 + 2116a60 commit 7afddf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/gdal/rasterize.py
Expand Up @@ -202,4 +202,7 @@ def getConsoleCommands(self):
arguments.append(ogrLayer)

arguments.append(unicode(self.getOutputValue(self.OUTPUT)))
if None in arguments:
return ['gdal_rasterize']

return ['gdal_rasterize', GdalUtils.escapeAndJoin(arguments)]
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/gdal/rasterize_over.py
Expand Up @@ -77,4 +77,6 @@ def getConsoleCommands(self):
arguments.append(ogrLayer)
arguments.append(ogrRasterLayer)

if None in arguments:
return ['gdal_rasterize']
return ['gdal_rasterize', GdalUtils.escapeAndJoin(arguments)]

0 comments on commit 7afddf2

Please sign in to comment.