| 1 |
<!-- meta page description: wxGUI Raster Digitizer --> |
| 2 |
<!-- meta page index: topic_GUI|GUI --> |
| 3 |
<!-- meta page index: wxGUI --> |
| 4 |
|
| 5 |
<h2>KEYWORDS</h2> |
| 6 |
|
| 7 |
<a href="display.html">display</a>, <a href="topic_GUI.html">GUI</a>, <a href="keywords.html#raster">raster</a>, <a href="keywords.html#editing">editing</a>, <a href="keywords.html#digitizer">digitizer</a> |
| 8 |
|
| 9 |
<h2>DESCRIPTION</h2> |
| 10 |
|
| 11 |
<b>Raster Digitizer</b> is a simple tool to quickly draw lines, areas, |
| 12 |
and circles and save these features in a raster map. It is accessible |
| 13 |
from the Map Display toolbar (from the combo box on the right). |
| 14 |
|
| 15 |
<p> |
| 16 |
<em>Raster Digitizer</em> currently allows you to: |
| 17 |
|
| 18 |
<ul> |
| 19 |
<li>draw polygons, lines and points</li> |
| 20 |
<li>set category value of the feature you are drawing</li> |
| 21 |
<li>set feature width (width of currently digitized line or diameter of a digitized point in map units)</li> |
| 22 |
<li>create a new raster from scratch or from an already existing raster</li> |
| 23 |
<li>undo edits and save edits before leaving the digitizer</li> |
| 24 |
</ul> |
| 25 |
|
| 26 |
<p> |
| 27 |
The typical workflow includes these steps: |
| 28 |
|
| 29 |
<ol> |
| 30 |
<li>Set computational region as needed.</li> |
| 31 |
<li>Switch to Raster Digitizer and select a map to create. |
| 32 |
Select either a new raster or create a new raster from existing raster, |
| 33 |
also select raster type (CELL, FCELL, DCELL)</li> |
| 34 |
<li>Specify category value and width <em>before</em> drawing a feature</li> |
| 35 |
<li>Specify digitizing tool (area, line, point)</li> |
| 36 |
<li>Start digitizing and when you want to finish area or line, <em>use right click</em></li> |
| 37 |
<li>Change color of temporary overlay depending on your needs</li> |
| 38 |
<li>Set different category and repeat</li> |
| 39 |
<li>At any point you can use <em>Undo</em> or <em>Save</em></li> |
| 40 |
<li>If existing raster is used for the new raster, digitized areas will respect |
| 41 |
the color table, but you can always set different color table.</li> |
| 42 |
</ol> |
| 43 |
|
| 44 |
<h2>NOTES</h2> |
| 45 |
|
| 46 |
Raster Digitizer respects computational region including the currently set resolution. |
| 47 |
|
| 48 |
<h2>EXAMPLES</h2> |
| 49 |
|
| 50 |
In the following figures we start with elev_lid792_1m raster map in North carolina sample dataset |
| 51 |
and digitize two buildings, one rectangular and one with circular footprint. |
| 52 |
Both buildings have the roof level at 130 m. We set the width when digitizing the point to 50 meters |
| 53 |
which results in the building having 50 m in diameter. |
| 54 |
When we are done with digitizing, we save the result and explore cast shadows of the buildings with |
| 55 |
<a href="r.sun.html">r.sun</a> module: |
| 56 |
|
| 57 |
<div class="code"><pre> |
| 58 |
g.region raster=elev_lid792_1m |
| 59 |
# now create elev_edited raster by digitizing and save |
| 60 |
r.slope.aspect elevation=elev_edited slope=elev_slope aspect=elev_aspect |
| 61 |
r.sun elevation=elev_edited aspect=elev_aspect slope=elev_slope beam_rad=beam day=172 time=6 |
| 62 |
</pre></div> |
| 63 |
|
| 64 |
<div align="center"> |
| 65 |
<a href="wxGUI_rdigit_step1.png"><img src="wxGUI_rdigit_step1.png" alt="Raster digitizer example step 1" width="400" height="310"></a> |
| 66 |
<a href="wxGUI_rdigit_step2.png"><img src="wxGUI_rdigit_step2.png" alt="Raster digitizer example step 2" width="400" height="310"></a> |
| 67 |
<a href="wxGUI_rdigit_step3.png"><img src="wxGUI_rdigit_step3.png" alt="Raster digitizer example step 3" width="400" height="310"></a> |
| 68 |
<a href="wxGUI_rdigit_step4.png"><img src="wxGUI_rdigit_step4.png" alt="Raster digitizer example step 4" width="400" height="310"></a> |
| 69 |
<a href="wxGUI_rdigit_step5.png"><img src="wxGUI_rdigit_step5.png" alt="Raster digitizer example step 5" width="400" height="310"></a> |
| 70 |
<br> |
| 71 |
<i>Figure: Steps to digitize new buildings on elev_lid792_1m raster map.</i> |
| 72 |
</div> |
| 73 |
|
| 74 |
<h2>SEE ALSO</h2> |
| 75 |
|
| 76 |
<em> |
| 77 |
<a href="wxGUI.html">wxGUI</a>, |
| 78 |
<a href="wxGUI.components.html">wxGUI components</a>, |
| 79 |
<a href="r.in.poly.html">r.in.poly</a> (backend of digitizer), |
| 80 |
<a href="g.gui.vdigit.html">g.gui.vdigit</a> |
| 81 |
</em> |
| 82 |
|
| 83 |
<h2>AUTHORS</h2> |
| 84 |
|
| 85 |
Anna Petrasova, NCSU GeoForALL Laboratory<br> |
| 86 |
Tomas Zigo (standalone module) |