1d.grid(1) Grass User's Manual d.grid(1)
2
3
4
6 d.grid - Overlays a user-specified grid in the active display frame on
7 the graphics monitor.
8
10 display
11
13 d.grid
14 d.grid help
15 d.grid [-gwnbt] size=value [color=string] [origin=easting,northing]
16 [bordercolor=string]
17
18 Flags:
19 -g Draw geographic grid (referenced to current ellipsoid)
20
21 -w Draw geographic grid (referenced to WGS84 ellipsoid)
22
23 -n Disable grid drawing
24
25 -b Disable border drawing
26
27 -t Disable text drawing
28
29 Parameters:
30 size=value
31 Size of grid to be drawn
32
33 color=string
34 Sets the grid color, either a standard GRASS color or R:G:B triplet
35 (separated by colons) Default: gray
36
37 origin=easting,northing
38 Lines of the grid pass through this coordinate Default: 0,0
39
40 bordercolor=string
41 Sets the border color, either a standard GRASS color or R:G:B
42 triplet Default: brown
43
45 d.grid overlays a grid of user-defined size and color in the active
46 display frame on the graphics monitor. The grid can be created as a
47 standard rectangular grid or a geographic grid. The grid will overlay,
48 not overwrite, the contents of the active display frame.
49
50 d.grid can be run non-interactively or interactively. If the user
51 specifies the grid size and (optionally) the grid color on the command
52 line the program will run non-interactively; if no grid color is given
53 the default will be used. Alternately, the user may simply type d.grid
54 on the command line; in this case, the program will prompt the user for
55 parameter values using the standard GRASS graphical user interface.
56
58 d.grid will not erase grids already displayed in the active graphics
59 display frame by previous invocations of d.grid; multiple invocations
60 of d.grid will therefore result in the drawing of multiple grids inside
61 the active graphics frame. (A command like d.erase, which erases the
62 entire contents of the active display frame, must be run to erase pre‐
63 viously drawn grids from the display frame.)
64
65 If the user provides a -g flag a geographic (projected) grid will be
66 drawn. With the -g flag the size argument accepts both decimal degrees
67 and colon separated ddd:mm:ss coordinates (eg. 00:30:00 for half of a
68 degree).
69
70 A geographic grid cannot be drawn for a latitude/longitude or XY pro‐
71 jection.
72
73 Colors may be standard named GRASS colors (red, green, aqua, etc.) or a
74 numerical R:G:B triplet, where component values range from 0-255.
75
76 The grid drawing may be turned off by using the -n flag.
77 The border drawing may be turned off by using the -b flag.
78 The coordinate text may be turned off by using the -t flag.
79
81 To draw a red geographic grid with 30 minute grid spacing run either of
82 the following:
83 d.grid -g size=00:30:00 color=red
84 or
85 d.grid -g size=0.5 color=255:0:0
86 To draw a blue standard rectangular grid at a 500 (meter) spacing run
87 the following:
88 d.grid size=500 color=blue
89
90
92 d.barscale
93 d.legend
94 d.geodesic
95 d.rhumbline
96 d.erase
97 d.frame
98 d.rast
99
101 James Westervelt, U.S. Army Construction Engineering Research Labora‐
102 tory
103 Geogrid support: Bob Covill
104 Border support: Markus Neteler
105 Text and RGB support: Hamish Bowman
106
107 Last changed: $Date: 2005/10/25 12:51:45 $
108
109 Full index
110
111
112
113GRASS 6.2.2 d.grid(1)