[GRASS-SVN] r45450 - grass-addons/display/d.shortcuts

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 23 01:35:45 EST 2011


Author: hamish
Date: 2011-02-22 22:35:45 -0800 (Tue, 22 Feb 2011)
New Revision: 45450

Modified:
   grass-addons/display/d.shortcuts/d.mark
Log:
add width option

Modified: grass-addons/display/d.shortcuts/d.mark
===================================================================
--- grass-addons/display/d.shortcuts/d.mark	2011-02-22 07:49:31 UTC (rev 45449)
+++ grass-addons/display/d.shortcuts/d.mark	2011-02-23 06:35:45 UTC (rev 45450)
@@ -58,6 +58,13 @@
 #% answer: 0
 #% required : no
 #%end
+#%option
+#% key: width
+#% type: double
+#% description: Line width
+#% answer: 0
+#% required : no
+#%end
 #%flag
 #% key: m
 #% description: Coordinates are given in map units
@@ -80,6 +87,13 @@
 
 COORD=`echo "$GIS_OPT_AT" | tr ',' ' '`
 
+
+if [ "$GIS_OPT_WIDTH" != "0" ] ; then
+   DOWIDTH="width $GIS_OPT_WIDTH"
+else
+   DOWIDTH=""
+fi
+
 if [ "$GIS_OPT_ROTATION" != "0" ] ; then
    DOROT="rotation $GIS_OPT_ROTATION"
 else
@@ -88,6 +102,7 @@
 
 (
 cat << EOF
+$DOWIDTH
 $DOROT
 symbol basic/$GIS_OPT_SYMBOL $GIS_OPT_SIZE $COORD $GIS_OPT_COLOR $GIS_OPT_FCOLOR
 EOF



More information about the grass-commit mailing list