Marking Slopes
From IOSN-InWent FOSS GIS & Sahana Training
- Now we'll use GIS information to create more informative maps. For refugee camp, we need flat land to build camp or tent. The slope information in degrees mesurement from the map can be used to presenting a visualization where's the best place to build refugee camp or where's the part of the island which is not suitable for encampment.
- Open grass, select "mentawai_2" location and our mapset ("fossgiss" or "instruktur")
- Press the "Add Raster Layer" icon (Step 1), select the layer (Step 2), browse the map (Step 3), select our latest map that has been cropped to "srtm_mentawai3" (Step 4)
- Switch to "Map Display" window, press the "Display Active Layer" icon on the upper icon bar
- Access menu Raster > Terrains Analysis > Slope and Aspect
- Select the map source ("srtm_mentawai3") and create output map name ("srtm_mentawai3_slope"). Set the measurement ("degrees") and data type ("integer"). Press "Run" to begin converting
- Click "Add Raster Layer" icon, add map "srtm_mentawai3_slope", click "Display Active Layer" on display map window
- Now we'll classifiying the slope's degrees. We'll divide the slopes into three level:
* 0˚ - 10˚ sloppiness (Good for camp)
* 11˚ - 30˚ sloppiness (Too slope)
* 31˚ - 54˚ sloppiness (Not suitable) - Access menu Raster > Change Category Values and Labels > Reclassify Using Files , we'll describe the above slopiness definition to one text file that will be used by GRASS.
$> gedit /home/username/maps/slope_definition.txt
It's content is:
0 thru 10 = 1 0˚ - 10˚ sloppiness
11 thru 30 = 2 11˚ - 30˚ sloppiness
31 thru 54 = 3 31˚ - 54˚ sloppiness - Set the map source name "srtm_mentawai3_slope", the output map name "srtm_mentawai3_slope_reclassified" and define where is our text file definition ("/home/username/maps/slope_definition.txt"). Press "Run"
- Click "Add Raster Layer" icon, add map "srtm_mentawai3_slope_reclassified", click "Display Active Layer" on display map window
- We can add map legend by clicking "Add Raster Legend Layer", setting map source ("srtm_mentawai3_slope_reclassified") and adjust some text size ("5,20,5,10")
- Click "Display Active Layer" on display map window
- To get more informative color legend we can redifine the color tables using menu: Raster > Manage Map Colors > Set Color Using Color Rules. Add map "srtm_mentawai3_slope_reclassified" as map source, press "Run" then insert this console based information:
- Greeny land will be suitable for encampment ^^
On to Next Step: Converting to Vector

