Navigation Menu

Skip to content

Commit

Permalink
[processing] fixed gdal proximity
Browse files Browse the repository at this point in the history
Fixes #15895
  • Loading branch information
volaya committed Dec 2, 2016
1 parent b02c6a3 commit d849e43
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions python/plugins/processing/algs/gdal/proximity.py
Expand Up @@ -103,20 +103,20 @@ def getConsoleCommands(self):
arguments.append('-values')
arguments.append(values)

values = str(self.getParameterValue(self.MAX_DIST))
if values < 0:
dist = self.getParameterValue(self.MAX_DIST)
if dist > 0:
arguments.append('-maxdist')
arguments.append(values)
arguments.append(str(dist))

values = str(self.getParameterValue(self.NODATA))
if values < 0:
nodata = self.getParameterValue(self.NODATA)
if nodata > 0:
arguments.append('-nodata')
arguments.append(values)
arguments.append(str(nodata))

values = str(self.getParameterValue(self.BUF_VAL))
if values < 0:
buf = self.getParameterValue(self.BUF_VAL)
if buf > 0:
arguments.append('-fixed-buf-val')
arguments.append(values)
arguments.append(str(buf))

commands = []
if isWindows():
Expand Down

0 comments on commit d849e43

Please sign in to comment.