r.digit.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <h2>DESCRIPTION</h2>
  2. The GRASS tool <em>r.digit</em> provides the user with a
  3. way to draw lines, areas, and circles on a monitor screen,
  4. and to save these features in a raster map. Lines, areas,
  5. and circles are to be drawn using a pointing device
  6. (mouse). A mouse button menu indicates the consequences of
  7. pressing each mouse button. The user is requested to enter
  8. the category number associated with the line, area, or
  9. circle subsequently drawn by the user. Lines, areas, and
  10. circles are defined by the series of points marked by the
  11. user inside the map window. <em>r.digit</em> will close
  12. areas when the user has not. By drawing a series of such
  13. features, the user can repair maps, identify areas of
  14. interest, or simply draw graphics for advertisement. When
  15. drawing is completed, a raster map based on the user's
  16. instructions is generated. It is available for use as a
  17. mask, in analyses, and for display.
  18. <p>The <b>bgcmd</b> option is intended to be used with display (d.*) commands.
  19. If several display commands are to be used to render the background
  20. they should be separated with the semi-colon ';' character.
  21. When run from the command line, these display commands will generally
  22. need to be "quoted" as they will contain spaces (see examples).
  23. <p>Digitizing is done in a "polygon" method. Each area is
  24. circumscribed completely. Two or more overlapping areas and/or lines
  25. might define a single part of a map. Each part of the map,
  26. however, is assigned only the LAST area or line which
  27. covered it.
  28. <h3>THE PROCESS:</h3>
  29. <h4>Start a monitor and display a raster to help setup and zoom to area of interest</h4>
  30. <div class="code"><pre>
  31. d.mon x0
  32. </pre></div>
  33. <p>
  34. <h4>Digitizing an area based on a existing map; creating a new raster map</h4>
  35. <div class="code"><pre>
  36. r.digit out=name_of_new_raster_map bgcmd="d.rast map=name_of_raster"
  37. </pre></div>
  38. <ol>
  39. <li>Choose to define an area or line, exit, or quit.
  40. If you choose to finish (<tt>exit</tt>) a new map is then created.
  41. If you quit, the session exits with nothing created.
  42. <li>If you choose to make an area or line you must identify
  43. the category number for that area or line.
  44. <li>Using the mouse trace the line or circumscribe the area;
  45. or, finish (go to Step 1).
  46. </ol>
  47. <h2>SEE ALSO</h2>
  48. <em>
  49. <a href="wxGUI.Vector_Digitizer.html">wxGUI vector digitizer</a>
  50. <a href="d.graph.html">d.graph</a>,
  51. <a href="d.linegraph.html">d.linegraph</a>,
  52. <a href="g.region.html">g.region</a>,
  53. <a href="r.in.poly.html">r.in.poly</a>,
  54. <a href="r.mapcalc.html">r.mapcalc</a>,
  55. <a href="r.to.vect.html">r.to.vect</a>,
  56. <a href="v.in.ascii.html">v.in.ascii</a>
  57. </em>
  58. <h2>AUTHOR</h2>
  59. Michael Shapiro, U.S.Army Construction Engineering
  60. Research Laboratory
  61. <p><i>Last changed: $Date$</i>