If you find this document usefull, please consider ordering a printed hardcopy!
During the redesign of the vector features the digitizing module v.digit has also been rewritten. The module is implemented via a separate graphical menu in which the most important features are integrated as buttons.
Before introducing a short example illustrating the usage of the new digitizing module, all important features and their properties are described briefly by means of figure 20 (from left to right).
Sample application for digitization
A few topographical information based on the TK 1:24000 (see figure 21) of the Spearfish region are supposed to be digitized as an example of digitization. The topographical map for the GRASS example dataset 'Spearfish' has explicitly been released by the South Dakota Geological Survey (SDGS) for teaching purposes with GRASS GIS. This is already prepared and can be downloaded at http://grass.itc.it/download/data.php.
Importing the TK24 into the Spearfish dataset
# Download Spearfish demonstration location and TK24 wget http://grass.itc.it/sampledata/spearfish_grass57data.tar.gz wget http://grass.itc.it/sampledata/spearfish_toposheet.tar.gz # Unpack Spearfish location in grassdata and start GRASS tar xvzf spearfish_grass57data.tar.gz /home/user/grassdata/ grass60 /home/user/grassdata/spearfish57/PERMANENT # Importing TK24 (GeoTiff) into the location tar xvzf spearfish_toposheet.tar.gz r.in.gdal -e in=spearfish_topo24.tif out=tk24 # Visual control g.region rast=tk24 -ap d.mon x0 d.rast tk24
For training purposes the local recreation area around 'Lookout Peak' east of Spearfish is supposed to be recorded. In order to register points, lines and area data the point of interest 'Lookout Peak', height information and forest areas are digitized into three thematic maps (see figure 21).
To save the newly created vector data in a separate user-specific mapset, you need to exit GRASS (in order to exit the location PERMANENT) and start again with a new mapset:
# Exit GRASS exit # Start GRASS again and create a new mapset grass60 (indicate the new name of the mapset in GUI or in the console) [STRG][ESC]
Viewpoint 'Lookout Peak'
For digitizing the point of interest 'Lookout Peak' the module v.digit is started and a new map lookout is created by the option -n. The imported topographic map tk24 is loaded as the background map:
# Start digitizing module and create new blank map d.mon x0 g.region rast=tk24 v.digit -n map=lookout bgcmd="d.rast tk24"
Now, the graphical user interface (GUI) of the module v.digit (see figure 20) is automatically started and the TK24 is loaded into the GRASS monitor x0 as the background image. Now create a new attribute table including an extra column Name in the v.digit GUI using the settings -> Table button (see figure 22).
Afterwards, zoom into the map range east of the city of Spearfish and there digitize a point where the point of interest 'Lookout Peak' is located (see figure 21). To do this, click on the button digitize new point, search for the correct point on the map and click on this point with the left mouse button.
A graphical window is now automatically been opened in which it is possible to assign additional attributes to the point according to the attribute columns defined beforehand. In this exercise the category value is supposed to be supplemented by the name of the viewpoint. Click with the mouse in the window and enter 'Lookout Peak' in the column Name and then click on the button submit in order to add the new entry to the attribute table. This is confirmed by the message Record successfully updated.
Now, cloes the v.digit module by clicking on the Exit button. Thus, the created map lookout is automatically saved and its topology is built:
Building topology ... 1 primitives registered 0 areas built 0% 0 isles built Topology was built. Number of nodes : 1 Number of primitives: 1 Number of points : 1 Number of lines : 0 Number of boundaries: 0 Number of centroids : 0 Number of areas : 0 Number of isles : 0
Digitizing contour-lines
The next exercise is to digitize the 100m contour-lines situated around the point of interest. As in the previous example, the module v.digit is started again and a new map contour_lines is automatically created by the option -n. The imported topographical map tk24 is loaded as the background map:
# Start the digitizing module and create new blank map d.mon x0 g.region rast=tk24 v.digit -n map=contour_lines bgcmd="d.rast tk24"
The graphical user interface (GUI) of the module v.digit (see figure 20) is automatically started and the TK24 is loaded into the GRASS monitor x0 as the background map. Now create a new attribute table including an extra column height in the v.digit GUI using the button settings -> Table (see figure 22).
The next step is to zoom into the region east of Spearfish again (see figure 21) and to start digitizing the lines by clicking on the button digitize new line. Afterwards, choose a primary line in the monitor which should be digitized with the left mouse button. The assignment of the mouse buttons can be found in the GUI. Here it is also possible to determine the layer-entry and the kind of the allocation of the category values.
According to the completion of the digitization of a line a graphical window is opened in which it is possible to assign additional attributes according to the attribute columns defined beforehand (see figure 23). In this exercise the category value is supposed to be supplemented by the elevation of the line. Click in the window and enter the elevation (e.g. 4200) in the column height and then click on the button submit in order to adopt the new entry in the attribute table. This is confirmed by the message Record successfully updated.
Once the digitization is complete, exit the module v.digit with the button Exit. Thus, the map contour_lines is automatically saved and its topology is built:
Building topology ... 825 primitives registered 0 areas built 0 isles built Topology was built. Number of nodes : 203 Number of primitives: 249 Number of points : 0 Number of lines : 249 Number of boundaries: 0 Number of centroids : 0 Number of areas : 0 Number of isles : 0
Forest areas east of Spearfish
Finally, the forest area surrounding the landmark is to be digitized. Also in this case, the module v.digit is started and a new map forest is automatically created by the option -n. The imported topological map tk24 is loaded as background map:
# Start the digitizing module and create new blank map g.region rast=tk24 d.mon x0 v.digit -n map=forest bgcmd="d.rast tk24"
The GUI of the module v.digit (see figure 20) is automatically started again and the TK24 is loaded in the GRASS monitor x0 as background map. A new attribute table including an extra column Name is now newly created in the v.digit GUI via the button settings -> Table (see figure 22).
Then zoom into the region east of Spearfish (see figure 21) and start to digitize the forest areas by clicking on the button digitize new boundary and by searching an initial range on the monitor for the digitization. The assignment of the mouse buttons can be found in the GUI. Here, it is also possible to determine the layer-entry and the kind of the allocation of the category values. For digitizing the forest areas change the mode from 'Next not used' to 'no category'. The reason is that the area attributes are not supposed to be connected to the boundaries but to the centroids.
It is important to set the snapping threshold correctly so that lines are snapped together properly. The default setting for the snapping threshold is 10 screen pixels but can be adapted to your own requirements using the button settings -> settings (see figure 24).
If a boundary has been digitized, a centroid is supplemented to the area so that attributes can be connected with the area. For this purpose, click on the button digitize new centroid, change the Mode from 'no category' to 'Next not used' and search on the monitor for an appropriate point within the newly created area in order to place the centroid. If the centroid has been set with the left mouse button, a graphical window is opened in which it is possible to assign additional attributes to the already set point according to the attribute columns defined before (see figure 23). In this training only the category value is supposed to be supplemented by the landuse type. Click into the window and enter the landuse type forest into the column Name. Click the button submit in order to update the new entry in the attribute table. This is confirmed by the message Record successfully updated.
Once the digitization is complete, exit the module v.digit using the button Exit. Thus, the map forest is automatically saved and its topology is built:
Building topology ... 478 primitives registered 46 areas built isles built Topology was built. Number of nodes : 357 Number of primitives: 478 Number of points : 0 Number of lines : 0 Number of boundaries: 367 Number of centroids : 46 Number of areas : 46 Number of isles : 0
If you find this document usefull, please consider ordering a printed hardcopy!