1d.grid(1) GRASS GIS 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, cartography, graticule, grid
11
13 d.grid
14 d.grid --help
15 d.grid [-agwcdfnbt] size=value [origin=east,north] [direc‐
16 tion=string] [width=float] [color=name] [border_color=name]
17 [text_color=name] [bgcolor=name] [fontsize=integer] [--help]
18 [--verbose] [--quiet] [--ui]
19
20 Flags:
21 -a
22 Align the origin to the east-north corner of the current region
23
24 -g
25 Draw geographic grid (referenced to current ellipsoid)
26
27 -w
28 Draw geographic grid (referenced to WGS84 ellipsoid)
29
30 -c
31 Draw ’+’ marks instead of grid lines
32
33 -d
34 Draw ’.’ marks instead of grid lines
35
36 -f
37 Draw fiducial marks instead of grid lines
38
39 -n
40 Disable grid drawing
41
42 -b
43 Disable border drawing
44
45 -t
46 Disable text drawing
47
48 --help
49 Print usage summary
50
51 --verbose
52 Verbose module output
53
54 --quiet
55 Quiet module output
56
57 --ui
58 Force launching GUI dialog
59
60 Parameters:
61 size=value [required]
62 Size of grid to be drawn (in map units)
63 0 for north-south resolution of the current region. In map units or
64 DDD:MM:SS format. Example: "1000" or "0:10"
65
66 origin=east,north
67 Lines of the grid pass through this coordinate
68 Default: 0,0
69
70 direction=string
71 Draw only east-west lines, north-south lines, or both
72 Options: both, east-west, north-south
73 Default: both
74
75 width=float
76 Grid line width
77
78 color=name
79 Grid color
80 Either a standard color name or R:G:B triplet
81 Default: gray
82
83 border_color=name
84 Border color
85 Either a standard color name or R:G:B triplet
86 Default: black
87
88 text_color=name
89 Text color
90 Either a standard color name or R:G:B triplet
91 Default: gray
92
93 bgcolor=name
94 Background color
95 Either a standard color name, R:G:B triplet, or "none"
96 Default: none
97
98 fontsize=integer
99 Font size for gridline coordinate labels
100 Options: 1-72
101 Default: 9
102
104 d.grid overlays a grid of user-defined size and color in the active
105 display frame on the graphics monitor. The grid can be created as a
106 standard rectangular grid or a geographic grid.
107
108 If the user provides a -g flag a geographic (projected) grid will be
109 drawn. With the -g flag the size argument accepts both decimal degrees
110 and colon separated ddd:mm:ss coordinates (eg. 00:30:00 for half of a
111 degree). A geographic grid cannot be drawn for a latitude/longitude or
112 XY projection.
113
114 Colors may be standard named GRASS colors (red, green, aqua, etc.) or a
115 numerical R:G:B triplet, where component values range from 0-255. Grid
116 color can be set with option color. Options text_color and bgcolor set
117 the color of the text and its background.
118
119 The grid drawing may be turned off by using the -n flag.
120 The border drawing may be turned off by using the -b flag.
121 The coordinate text may be turned off by using the -t flag.
122
123 To draw grid lines at different intervals, e.g. at high latitudes, you
124 can run the module twice, once with direction=east-west at one interval
125 size, and again with direction=north-south at another interval size.
126
128 To draw a red geographic grid with 30 minute grid spacing, run one of
129 the following commands:
130 d.grid -g size=00:30:00 color=red
131 or
132 d.grid -g size=0.5 color=255:0:0
133 Figure: Showing a geographic grid in red line color To draw a blue
134 standard rectangular grid at a 500 (meter) spacing run the following:
135 d.grid size=500 color=blue
136 Figure: Showing a rectangular grid in blue line color
137
139 d.barscale, d.legend, d.geodesic, d.rhumbline, d.erase, d.frame,
140 d.rast, v.mkgrid
141
143 James Westervelt, U.S. Army Construction Engineering Research Labora‐
144 tory
145 Geogrid support: Bob Covill
146 Border support: Markus Neteler
147 Text and RGB support: Hamish Bowman
148 Background color implemented as part of GSoC 2016 by Adam Laza, CTU in
149 Prague
150
152 Available at: d.grid source code (history)
153
154 Accessed: Saturday Jan 21 21:14:08 2023
155
156 Main index | Display index | Topics index | Keywords index | Graphical
157 index | Full index
158
159 © 2003-2023 GRASS Development Team, GRASS GIS 8.2.1 Reference Manual
160
161
162
163GRASS 8.2.1 d.grid(1)