other versions
- jessie 6.4.4-1
d.mapgraph(1grass) | Grass User's Manual | d.mapgraph(1grass) |
NAME¶
d.mapgraph - Generates and displays simple graphics on map layers drawn in the active graphics monitor display frame.KEYWORDS¶
display, cartographySYNOPSIS¶
d.mapgraphParameters:¶
- input=string
-
- color=string
-
This module is superseded and scheduled for demolition.¶
Please use " d.graph -m" instead.DESCRIPTION¶
d.mapgraph draws graphics that are described in standard input (default) or the UNIX input file name. If commands are entered via standard input, a ctrl-d is used to signal the end of input to d.mapgraph. This program performs essentially the same function as d.graph; however, point locations are specified to d.mapgraph in the geographic coordinate system of the user's current mapset and location (i.e., in map coordinates), rather than in graphics display screen coordinates. The program can be run interactively or non-interactively. The user can run the program completely non-interactively by specifying the name of a file containing d.mapgraph graphics commands and the values of all needed parameters on the command line. The user can instead elect to run the program partially interactively, by specifying any/all of the parameters except the graphics input=name parameter on the command line. In this case, d.mapgraph will expect the user to input d.mapgraph graphics commands from standard input (i.e., the keyboard) and will (silently) prompt the user for these graphics commands. Alternately, the user can simply type d.mapgraph on the command line, and be prompted for the values of all parameters (the user can still input graphics commands from an input file using this form.) In this case, the user is presented with the standard GRASS g.parser interface. d.mapgraph is used for drawing simple graphics on top of map layers. The coordinate system used by d.mapgraph is the same as that of the map layer displayed in the active display frame on the graphics monitor (or that of the user's current region, if no map is displayed). The graphics language is simple and uses the following commands:- # comment
-
- move xpos ypos
-
- draw xpos ypos
-
- color color
-
- size xper yper
-
- text line-of-text
-
- icon type size x y
-
- polygon
-
NOTES¶
d.mapgraph is identical to the d.graph command, except for the difference in coordinate systems used. In the future functionality will be merged into d.graph and d.mapgraph will be removed. d.mapgraph will complain if the user enters something to standard input that it does not understand. Blank lines in the input file will result in this error message.EXAMPLE¶
Draw some text in the center of the display:EAST=`g.region -c | grep east | cut -f2 -d:`
NORTH=`g.region -c | grep north | cut -f2 -d:`
d.mapgraph << EOF
move $EAST $NORTH
text GRASS
EOF
SEE ALSO¶
d.frameAUTHOR¶
James Westervelt, U.S. Army Construction Engineering Research Laboratory Last changed: $Date: 2011-11-08 12:29:50 +0100 (Tue, 08 Nov 2011) $ Full index © 2003-2014 GRASS Development TeamGRASS 6.4.4 |