d.to.rast.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <h2>DESCRIPTION</h2>
  2. <em>d.to.rast</em> saves the content of the currently selected
  3. monitor into a raster map. The active monitor can be selected
  4. with <em>d.mon</em>. <em>d.to.rast</em> can be run from GUI
  5. Console tab, too. This module is not sensitive to computational region settings.
  6. <h2>EXAMPLE</h2>
  7. We combine different raster and vector map layers to create a composite layer
  8. which can be draped over elevation in 3D view.
  9. First, we add a couple of maps to layer manager:
  10. <div class="code"><pre>
  11. g.region raster=elevation
  12. d.rast map=elevation
  13. d.rast map=lakes
  14. d.vect map=roadsmajor width=4
  15. d.vect map=roadsmajor width=2 color=yellow
  16. # create a raster map from the display
  17. d.to.rast output=composite
  18. </pre></div>
  19. <p>
  20. Then uncheck all layers except for elevation and switch to 3D view.
  21. In Data tab, set color map to the newly created composite map.
  22. <p>
  23. <center>
  24. <img src="d_to_rast_3D_example.jpg">
  25. <p>
  26. Figure: Raster map created by <em>d.to.rast</em> draped over digital elevation model.
  27. </center>
  28. <h2>SEE ALSO</h2>
  29. <em>
  30. <a href="d.out.file.html">d.out.file</a>,
  31. <a href="d.erase.html">d.erase</a>,
  32. <a href="d.rast.html">d.rast</a>,
  33. <a href="d.vect.html">d.vect</a>,
  34. <a href="d.mon.html">d.mon</a>
  35. </em>
  36. <h2>AUTHOR</h2>
  37. Anna Petrasova, <a href="http://gis.ncsu.edu/osgeorel/">NCSU OSGeoREL</a>
  38. <!--
  39. <p>
  40. <i>Last changed: $Date$</i>
  41. -->