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