Skip to content
Permalink
Browse files

[processing] fixed gdal proximity

Fixes #15895
  • Loading branch information
volaya committed Dec 2, 2016
1 parent b02c6a3 commit d849e43278c24125d5c5b60fb30bc15edf5c5aa9
Showing with 9 additions and 9 deletions.
  1. +9 −9 python/plugins/processing/algs/gdal/proximity.py
@@ -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():

0 comments on commit d849e43

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