Debian Codegraph @

display/d.grid/d.grid.html

raw symbols SCIP
1 <h2>DESCRIPTION</h2>
2
3 <em>d.grid</em> overlays a grid of user-defined size and
4 color in the active display frame on the graphics monitor.
5 The grid can be created as a standard rectangular grid or
6 a geographic grid.
7
8 <p>
9 If the user provides a <b>-g</b> flag a geographic (projected) grid
10 will be drawn. With the <b>-g</b> flag the <b>size</b>
11 argument accepts both decimal degrees and colon separated
12 ddd:mm:ss coordinates (eg. <code>00:30:00</code> for half of a degree).
13 A geographic grid cannot be drawn for a <em>latitude/longitude</em>
14 or <em>XY</em> projection.
15
16 <p>
17 Colors may be standard named GRASS colors (red, green, aqua, etc.) or
18 a numerical R:G:B triplet, where component values range from 0-255.
19 Grid color can be set with option <b>color</b>. Options <b>text_color</b> and
20 <b>bgcolor</b> set the color of the text and its background.
21
22 <p>
23 The grid drawing may be turned off by using the <b>-n</b> flag.<br>
24 The border drawing may be turned off by using the <b>-b</b> flag.<br>
25 The coordinate text may be turned off by using the <b>-t</b> flag.<br>
26
27 <p>
28 To draw grid lines at different intervals, e.g. at high latitudes, you
29 can run the module twice, once with <b>direction</b>=<i>east-west</i>
30 at one interval <b>size</b>, and again with
31 <b>direction</b>=<i>north-south</i> at another interval <b>size</b>.
32
33 <h2>EXAMPLES</h2>
34
35 To draw a red geographic grid with 30 minute grid spacing, run
36 one of the following commands:
37
38 <div class="code"><pre>
39 d.grid -g size=00:30:00 color=red
40 </pre></div>
41
42 or
43
44 <div class="code"><pre>
45 d.grid -g size=0.5 color=255:0:0
46 </pre></div>
47
48 <div style="margin: 10px" align="center">
49 <img src="d_grid_red_grid.png" alt="d.grid red grid example" border="0">
50 <br>
51 <i>Figure: Showing a geographic grid in red line color</i>
52 </div>
53
54 To draw a blue standard rectangular grid at a 500 (meter) spacing run the following:
55
56 <div class="code"><pre>
57 d.grid size=500 color=blue
58 </pre></div>
59
60 <div style="margin: 10px" align="center">
61 <img src="d_grid_blue_grid.png" alt="d.grid blue grid example" border="0">
62 <br>
63 <i>Figure: Showing a rectangular grid in blue line color</i>
64 </div>
65
66 <h2>SEE ALSO</h2>
67
68 <em>
69 <a href="d.barscale.html">d.barscale</a>,
70 <a href="d.legend.html">d.legend</a>,
71 <a href="d.geodesic.html">d.geodesic</a>,
72 <a href="d.rhumbline.html">d.rhumbline</a>,
73 <a href="d.erase.html">d.erase</a>,
74 <a href="d.frame.html">d.frame</a>,
75 <a href="d.rast.html">d.rast</a>,
76 <a href="v.mkgrid.html">v.mkgrid</a>
77 </em>
78
79 <h2>AUTHORS</h2>
80
81 James Westervelt, U.S. Army Construction Engineering Research Laboratory<br>
82 Geogrid support: Bob Covill<br>
83 Border support: Markus Neteler<br>
84 Text and RGB support: Hamish Bowman<br>
85 Background color implemented as part of GSoC 2016 by Adam Laza, CTU in Prague