12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <h2>DESCRIPTION</h2>
- <em>d.grid</em> overlays a grid of user-defined size and
- color in the active display frame on the graphics monitor.
- The grid can be created as a standard rectangular grid or
- a geographic grid.
- <p>
- If the user provides a <b>-g</b> flag a geographic (projected) grid
- will be drawn. With the <b>-g</b> flag the <b>size</b>
- argument accepts both decimal degrees and colon separated
- ddd:mm:ss coordinates (eg. <tt>00:30:00</tt> for half of a degree).
- A geographic grid cannot be drawn for a <em>latitude/longitude</em>
- or <em>XY</em> projection.
- <p>
- Colors may be standard named GRASS colors (red, green, aqua, etc.) or
- a numerical R:G:B triplet, where component values range from 0-255.
- Grid color can be set with option <b>color</b>. Options <b>text_color</b> and
- <b>bgcolor</b> set the color of the text and its background.
- <p>
- The grid drawing may be turned off by using the <b>-n</b> flag.<br>
- The border drawing may be turned off by using the <b>-b</b> flag.<br>
- The coordinate text may be turned off by using the <b>-t</b> flag.<br>
- <p>
- To draw grid lines at different intervals, e.g. at high latitudes, you
- can run the module twice, once with <b>direction</b>=<i>east-west</i>
- at one interval <b>size</b>, and again with
- <b>direction</b>=<i>north-south</i> at another interval <b>size</b>.
- <h2>EXAMPLES</h2>
- To draw a red geographic grid with 30 minute grid spacing, run
- either of the following:
- <div class="code"><pre>
- d.grid -g size=00:30:00 color=red
- </pre></div>
- or
- <div class="code"><pre>
- d.grid -g size=0.5 color=255:0:0
- </pre></div>
- To draw a blue standard rectangular grid at a 500 (meter) spacing run the following:
- <div class="code"><pre>
- d.grid size=500 color=blue
- </pre></div>
- <h2>SEE ALSO</h2>
- <em>
- <a href="d.barscale.html">d.barscale</a>,
- <a href="d.legend.html">d.legend</a>,
- <a href="d.geodesic.html">d.geodesic</a>,
- <a href="d.rhumbline.html">d.rhumbline</a>,
- <a href="d.erase.html">d.erase</a>,
- <a href="d.frame.html">d.frame</a>,
- <a href="d.rast.html">d.rast</a>,
- <a href="v.mkgrid.html">v.mkgrid</a>
- </em>
- <h2>AUTHORS</h2>
- James Westervelt, U.S. Army Construction Engineering Research Laboratory<br>
- Geogrid support: Bob Covill<br>
- Border support: Markus Neteler<br>
- Text and RGB support: Hamish Bowman<br>
- Background color implemented as part of GSoC 2016 by Adam Laza, CTU in Prague
- <p>
- <i>Last changed: $Date$</i>
|