We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbedfae commit fd50ac0Copy full SHA for fd50ac0
python/plugins/processing/gdal/scripts/proximity.py
@@ -48,8 +48,12 @@
48
49
gdal.AllRegister()
50
options.append( 'MAXDIST=' + str(maxdist))
51
-options.append( 'VALUES=' + values )
52
-options.append( 'DISTUNITS=' + str(distunits))
+if len(values) > 0:
+ options.append( 'VALUES=' + values )
53
+if distunits == 0:
54
+ options.append( 'DISTUNITS=GEO')
55
+else:
56
+ options.append( 'DISTUNITS=PIXEL')
57
options.append( 'NODATA=' + str(nodata))
58
options.append( 'FIXED_BUF_VAL=' +str(fixed_buf_val))
59
0 commit comments