d.grid.html 2.3 KB

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