Skip to content
Permalink
Browse files

[processing] fix passing distunits parameter for GDAL proximity (fix #…

  • Loading branch information
alexbruy committed Sep 14, 2013
1 parent fbedfae commit fd50ac0533b48fe59a66ee83ba9c281814d60810
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/plugins/processing/gdal/scripts/proximity.py
@@ -48,8 +48,12 @@

gdal.AllRegister()
options.append( 'MAXDIST=' + str(maxdist))
options.append( 'VALUES=' + values )
options.append( 'DISTUNITS=' + str(distunits))
if len(values) > 0:
options.append( 'VALUES=' + values )
if distunits == 0:
options.append( 'DISTUNITS=GEO')
else:
options.append( 'DISTUNITS=PIXEL')
options.append( 'NODATA=' + str(nodata))
options.append( 'FIXED_BUF_VAL=' +str(fixed_buf_val))

0 comments on commit fd50ac0

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