[GRASS-SVN] r52396 - grass/trunk/scripts/d.rast.leg
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 17 08:41:44 PDT 2012
Author: neteler
Date: 2012-07-17 08:41:43 -0700 (Tue, 17 Jul 2012)
New Revision: 52396
Modified:
grass/trunk/scripts/d.rast.leg/d.rast.leg.py
Log:
propagate -s flag from d.legend
Modified: grass/trunk/scripts/d.rast.leg/d.rast.leg.py
===================================================================
--- grass/trunk/scripts/d.rast.leg/d.rast.leg.py 2012-07-17 14:48:35 UTC (rev 52395)
+++ grass/trunk/scripts/d.rast.leg/d.rast.leg.py 2012-07-17 15:41:43 UTC (rev 52396)
@@ -51,6 +51,10 @@
#%option G_OPT_R_MAP
#% description: Name of raster map to display
#%end
+#%flag
+#% key: s
+#% description: Draw smooth gradient
+#%end
#%option
#% key: lines
#% type: integer
@@ -88,6 +92,7 @@
rast = options['raster']
omit = flags['n']
flip = flags['f']
+ smooth = flags['s']
#for -n flag of d.legend
if not grass.find_file(map)['file']:
@@ -146,6 +151,8 @@
lflags += 'f'
if omit:
lflags += 'n'
+ if smooth:
+ lflags += 's'
# if has_hist or omit:
# lflags += 'n'
More information about the grass-commit
mailing list