Skip to content

Commit

Permalink
Merge pull request #6960 from luipir/gdalcalc_avoid_escape_formula
Browse files Browse the repository at this point in the history
[processing][gdal] Do not escape formula because it's not a path!
  • Loading branch information
alexbruy authored May 10, 2018
2 parents 5b20168 + 6150b7f commit 10aa92f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/plugins/processing/algs/gdal/gdalcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ def getConsoleCommands(self):
noData = unicode(noData)

arguments = []
arguments.append('--calc')
arguments.append('"' + formula + '"')
arguments.append('--calc "{}"'.format(formula))
arguments.append('--format')
arguments.append(GdalUtils.getFormatShortNameFromFilename(out))
arguments.append('--type')
Expand Down

0 comments on commit 10aa92f

Please sign in to comment.