Skip to content

Commit

Permalink
[processing] fix passing distunits parameter for GDAL proximity (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Sep 14, 2013
1 parent fbedfae commit fd50ac0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/plugins/processing/gdal/scripts/proximity.py
Expand Up @@ -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))

Expand Down

0 comments on commit fd50ac0

Please sign in to comment.