[GRASS-SVN] r42958 - grass-addons/display/d.shortcuts
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 31 23:16:39 EDT 2010
Author: hamish
Date: 2010-08-01 03:16:39 +0000 (Sun, 01 Aug 2010)
New Revision: 42958
Modified:
grass-addons/display/d.shortcuts/d.mark
Log:
support symbol rotation
Modified: grass-addons/display/d.shortcuts/d.mark
===================================================================
--- grass-addons/display/d.shortcuts/d.mark 2010-07-31 23:49:54 UTC (rev 42957)
+++ grass-addons/display/d.shortcuts/d.mark 2010-08-01 03:16:39 UTC (rev 42958)
@@ -51,6 +51,13 @@
#% answer: 12
#% required : no
#%end
+#%option
+#% key: rotation
+#% type: double
+#% description: Rotation angle in degrees (counter-clockwise)
+#% answer: 0
+#% required : no
+#%end
#%flag
#% key: m
#% description: Coordinates are given in map units
@@ -73,5 +80,15 @@
COORD=`echo "$GIS_OPT_AT" | tr ',' ' '`
-echo "symbol basic/$GIS_OPT_SYMBOL $GIS_OPT_SIZE $COORD $GIS_OPT_COLOR $GIS_OPT_FCOLOR" \
- | d.graph $MAPUN
+if [ "$GIS_OPT_ROTATION" != "0" ] ; then
+ DOROT="rotation $GIS_OPT_ROTATION"
+else
+ DOROT=""
+fi
+
+(
+cat << EOF
+$DOROT
+symbol basic/$GIS_OPT_SYMBOL $GIS_OPT_SIZE $COORD $GIS_OPT_COLOR $GIS_OPT_FCOLOR
+EOF
+) | d.graph $MAPUN
More information about the grass-commit
mailing list