1d.grid(1)                     Grass User's Manual                    d.grid(1)
2
3
4

NAME

6       d.grid  - Overlays a user-specified grid in the active display frame on
7       the graphics monitor.
8

KEYWORDS

10       display, cartography
11

SYNOPSIS

13       d.grid
14       d.grid help
15       d.grid [-gwnbt]  size=value   [origin=easting,northing]    [color=name]
16       [bordercolor=name]    [textcolor=name]    [fontsize=integer]    [--ver‐
17       bose]  [--quiet]
18
19   Flags:
20       -g
21           Draw geographic grid (referenced to current ellipsoid)
22
23       -w
24           Draw geographic grid (referenced to WGS84 ellipsoid)
25
26       -n
27           Disable grid drawing
28
29       -b
30           Disable border drawing
31
32       -t
33           Disable text drawing
34
35       --verbose
36           Verbose module output
37
38       --quiet
39           Quiet module output
40
41   Parameters:
42       size=value
43           Size of grid to be drawn
44           In map units or DDD:MM:SS format. Example: "1000" or "0:10"
45
46       origin=easting,northing
47           Lines of the grid pass through this coordinate
48           Default: 0,0
49
50       color=name
51           Grid color
52           Either a standard color name or R:G:B triplet
53           Default: gray
54
55       bordercolor=name
56           Border color
57           Either a standard color name or R:G:B triplet
58           Default: black
59
60       textcolor=name
61           Text color
62           Either a standard color name or R:G:B triplet
63           Default: gray
64
65       fontsize=integer
66           Font size for gridline coordinate labels
67           Options: 1-72
68           Default: 9
69

DESCRIPTION

71       d.grid overlays a grid of user-defined size and  color  in  the  active
72       display  frame  on  the graphics monitor.  The grid can be created as a
73       standard rectangular grid or a geographic grid. The grid will  overlay,
74       not overwrite, the contents of the active display frame.
75
76       d.grid  can  be  run  non-interactively  or interactively.  If the user
77       specifies the grid size and (optionally) the grid color on the  command
78       line  the program will run non-interactively; if no grid color is given
79       the default will be used.  Alternately, the user may simply type d.grid
80       on the command line; in this case, the program will prompt the user for
81       parameter values using the standard GRASS graphical user interface.
82

NOTES

84       d.grid will not erase grids already displayed in  the  active  graphics
85       display  frame  by previous invocations of d.grid; multiple invocations
86       of d.grid will therefore result in the drawing of multiple grids inside
87       the  active  graphics frame.  (A command like d.erase, which erases the
88       entire contents of the active display frame, must be run to erase  pre‐
89       viously drawn grids from the display frame.)
90
91       If  the  user  provides a -g flag a geographic (projected) grid will be
92       drawn. With the -g flag the size argument accepts both decimal  degrees
93       and  colon  separated ddd:mm:ss coordinates (eg. 00:30:00 for half of a
94       degree).
95
96       A geographic grid cannot be drawn for a latitude/longitude or  XY  pro‐
97       jection.
98
99       Colors may be standard named GRASS colors (red, green, aqua, etc.) or a
100       numerical R:G:B triplet, where component values range from 0-255.
101
102       The grid drawing may be turned off by using the -n flag.
103       The border drawing may be turned off by using the -b flag.
104       The coordinate text may be turned off by using the -t flag.
105

EXAMPLES

107       To draw a red geographic grid with 30 minute grid spacing run either of
108       the following:
109         d.grid -g size=00:30:00 color=red
110        or
111         d.grid -g size=0.5 color=255:0:0
112         To draw a blue standard rectangular grid at a 500 (meter) spacing run
113       the following:
114         d.grid size=500 color=blue
115
116

SEE ALSO

118       d.barscale
119       d.legend
120       d.geodesic
121       d.rhumbline
122       d.erase
123       d.frame
124       d.rast
125

AUTHORS

127       James Westervelt, U.S. Army Construction Engineering  Research  Labora‐
128       tory
129       Geogrid support: Bob Covill
130       Border support: Markus Neteler
131       Text and RGB support: Hamish Bowman
132
133       Last changed: $Date: 2005-10-25 14:51:45 +0200 (Tue, 25 Oct 2005) $
134
135       Full index
136
137       © 2003-2008 GRASS Development Team
138
139
140
141GRASS 6.3.0                                                          d.grid(1)
Impressum