You are on page 1of 11
English ‘TABLE OF CONTENTS (.././INDEX.HTML) USER GUIDEMANUAL (QGIS 2.2) (.L,USER_MANUALINDEX HTML) USER GUIDEMANUAL POF'S (HTTP3IDOCS.QGIS.0RGI2.2/P0F) PYaGis COOKBOOK (aGHS 22). JPYAGIS_DEVELOPER_COOKBOOKINDEX HTML} DOCUMENTATION GUIDELINES (DOCUMENTATION, GUIDELINESINDEXNTHL) [AGENTLE INTRODUCTION IN GIS (.IGENTLE_GIS_INTRODUCTIONINDEXHTML) TRAININGS MANUAL (.INDEXHTML) 41, Course Introduction (.foreword/index html) 2. Module: The Interface (.introduction/index.html) 3. Module: Creating a Basic Map (./basic_map/index him!) 4 Module: Classifying Vector Data (./vector_classification/index him!) 5, Module: Creating Maps (.!map_composertindex. html) 6, Module: Creating Vector Data (/create_vector_datalindex. htm) 7. Module: Vector Analysis (./vector_analysis/index. html) 8, Module: Rasters (index.html) 8.1. Lesson: Working with Raster Data (data_manipulation htm) 8.2. Lesson: Changing Raster Symbology (changing_symbology html) 8.3, Lesson: Terrain Analysis () ‘9. Module: Completing the Analysis (./complete_analysisfindex htm) 410. Module: Plugins (/qgis_plugins/index html) ‘1, Module: Ontine Resources (./online_resources/index him!) 12, Module: GRASS (./grass/index htm!) 18, Module: Assessment (./assessmentindex. html) 14. Module: Forestry Application (Jforestryindex htm!) 416. Module: Database Concepts with PostgreSQL (./database_conceptsiindex him!) 16. Module: Spatial Database Concepts with PostGIS (./spatial_databases/index him) 17. The QGIS processing guide (.processing/index htm) 18, Module: Using Spatial Databases in QGIS (. databases/index him!) 419. Appendix: Contributing To This Manual (./appendix/contribute-htm!) 20. Answer Sheet (./answers/answers.html) Indices and tables (/index.htmi#indices-and-tables) 8.3. Lesson: Terrain Analysis Certain types of rasters allow you to gain more insight into the terrain that they represent, Digital Elevation Models (DEMS) are particularly Useful in this regard. In this lesson you will use terrain analysis tools to find out more about the study area forthe proposed residential development from earlier. ‘The goal for this lesson: To use terrain analysis tools to derive more information about the terrain. 8.3.1. @ Follow Along: Calculating a Hillshade ‘The DEM you have on your map right now does show you the elevation ofthe terrain, but it can sometimes seem a litle abstract. It contains all the 3D information about the terrain that you need, but it doesn't look like a 3D object. To gat a better look at the terrain, itis possible to calculate a hillshade, which isa raster that maps the terrain using light and shadow to create a 3D-looking image. ‘To work with DEMSs, you should use QGIS' all-in-one DEM (Terrain models) analysis too} + Click on the menu item Raster » Analysis » DEM (Terrain models) + Inthe dialog that appears, ensure that the Input file is the DEM layer. + Setthe Output file to hitishado.sit inthe directory cxore + Also make sure that the Mode option has Hillshade selected + Check the box next to Lead into canvas when finished + You may leave all the other options unchanged, + Click OK to generate the hillshade. + When ittells you that processing is completed, click OK on the message to get rd of i + Click Close on the main DEM (Terrain models) dialog You will now have @ new layer called illshade that looks ke this: ‘That looks nice and 3D, but can we improve on this? On its own, the hillshade looks lke a plaster cast. Can't we use it together with our other, more colorful rasters somehow? Of course we can, by using the hilshade as an overlay. 8.3.2. @ Follow Along: Using a Hillshade as an Overlay Anillshade can provide very useful information about the sunlight ata given time of day. But t can also be used for aesthetic purposes, to make the map look better, The key to this is setting the hillshade to being mostly transparent. + Change the symbology of the original DEM to use the Pseudocolor schome as in the previous exercise. + Hide all the layers except the DEM and hilishade layers + Click and drag the DEM to be beneath the hillshade layer in the Layers list + Set the hillshade layer to be transparent by opening its Layer Properties and go to the Transparency tab. + Setthe Global transparency to 30: + Click OK on the Layer Properties dialog. You'll get a result tke this: + Switch the hillshade layer off and back on in the Layers list to see the difference it makes. Using a hilshade in this way, i's possible to enhance the topography of the landscape. Ifthe effect doesn't seem strong enough te you, you ‘can change the transparency ofthe Aillshade layer; but of course, the brighter the hilshade becomes, the dimmer the colors behind it will be, You will need to find a balance that works for you, Remember to save your map when you are done. Note For the next two exercises, please use a new map. Load only the iw raster dataset into it (exorcise data/rastor/swin/srtm_4)_13,13¢ ), This is to simplify matters while you're working withthe raster analysis tools. Save the map as exers: sta/raster_snalysia.a3¢ 8.3.3. & Follow Along: Calculating the Slope Another useful thing to know about the terrain is how steep itis. If, for example, you want to build houses on the land there, then you need land that is relatively fat, ‘To do this, you need to use the Slope mode of the DEM (Terrain models) tool + Open the tool as before. + Solect the Mode option Slope (Bana (Compute edges [5 Use Zevenborgen& Thome formula (stead othe Hor's one) neo LE ss ‘Mode Options Z factor (vertcal exaggeration) ‘Scale (rato of vert units to hoz) ‘Azimuth ofthe ight ‘Altitude of the light Bolla ieee ace Profile | Detaut Sot the save location to exercise data/sesidential development /siope cit Enable the Load into canvas... checkbox. Click OK and close the dialogs when processing is complete, and click Close to close the dialog. You'l see a new raster loaded into your map. With the new raster selected in the Layers list, click the Stretch Histogram to Full Dataset button, Now youll see the slope of the terrain, with black pixels being flat terrain and white pixets, steep terrain 8.3.4. & Try Yourself calculating the aspect The aspect of terrain refers tothe direction i's facing in. Since this study is taking place in the Southern Hemisphere, properties should ideally be bult on a north-facing slope so that they can remain in the sunlight, + Use the Aspect mode of the DEM (Terain models) too! to calculate the aspect ofthe terrain (Check your results (.Janswersianswers.himidraster-analysis-1) 8.3.5. & Follow Along: Using the Raster Calculator Think back to the estate agent problem, which we last addressed in the Vector Analysis lesson. Let's imagine that the buyers now wish to purchase a building and build a smaller cottage on the property. In the Southern Hemisphere, we know that an ideal plot for development needs to have areas on i that are northacing, and with a slope of less than five degrees. But if the slope is less than 2 degrees, then the aspect doesn't matter Fortunately, you already have rasters showing you the slope as well as the aspect, but you have no way of knowing where both conditions: are satisfied at once. How could this analysis be done? ‘The answer lies with the Raster calculator + Click on Raster > Raster calculator... to star this tool. + To make use of the aspect dataset, double-click on the item aspect@! in the Raster bands list on the left. It will appear in the Raster calculator expression text field below. North is at 0 (zero) degrees, so forthe terrain to face north, its aspect needs to be greater than 270 degrees and less than 90 degrees. + Inthe Raster calculator expression field, enter this expression: Set the output fle to aspect north.tit inthe directory cxezclae data/zeeidential development / + Ensure that the box Add result fo project is checked, + Click OK to begin processing, ‘960401.27540 (2 ate (aaerta79%9 oon] ym eo (5) Rows [ees ae temt cones) (Add result to project St Fe) oe} [_esin_} (tan =| = FO 2228 TE nl) a a 0 i _] Your result will be this: 8.3.6. © Try Yourself Now that you've done the aspect, create two separate new analyses of the DEM layer, + The first will be to identity all areas where the slope is less than or equal to 2 degrees. + The second is similar, but the slope should be less than or equal to» degrees. + Save them under oxo=o:s0 data/sesidential seveloprens/ @8 slope 1te2.tif and slope tte3.ti (Check your results (.Janswersianswers.himitraster-analysis-2) 8.3.7. & Follow Along: Combining Raster Analysis Results Now you have three new analysis rasters of the DEM layer: + aspect_north : the terrain faces north + slope_Ite2 : the slope is al or below 2 degrees + slope _IteS : the slope is al or below 5 degrees ‘Where the conditions of these layers are met, they are equal to 1 . Elsewhere, they are equal to 0 . Therefore, if you multiply one of these rasters by another one, you wil get the areas where both of them are equal to. 1 ‘The conditions to be met are: at or below 5 degrees of slope, the terrain must face north; but at ar belaw 2 degrees of slope, the direction that the terrain faces in does not matter. ‘Therefore, you need to find areas where the slope is at or below 5 degrees. xv the terrain is facing north; ox the slope is at or below 2 degrees. Such terrain would be suitable for development. ‘To calculate the areas that satisty these criteria: + Open your Raster calculator again. + Use the Raster bands list, the Operators buttons, and your keyboard to build this expression in the Raster calculator expression text area: + Save the output under cxevclse data/residentis + Click OK on the Raster caleulator . Your results: 8.3.8. « Follow Along: Simplifying the Raster ‘As you can see rom the Image above, the combined analysis has lef us with many, very small areas where the conltons are met But these aren't realy useful fr our analysis, since they too smal to buld anything on. Lets get of all thse tiny unusable areas. + Open the Sieve tool Raster » Analysis » Sieve ) + Set the Input file to 231 eon and the Oufput file to 2:1 conditions sieve.tse (under a) + Setboth the Threshold and Pixel connections values to. , then run the too. 200 Sieve Input te ail condions Select. Output fle Fenieonditons seve] | Selact.. A Threshold | (Load into canvas when Fished al siovepy -s18-8-of GTi al_conditons pa sever "at (Once processing is done, the new layer will load into the canvas. But when you ty to use the histogram stretch tool to view the data, this happens: ‘What's going on? The answer lies in the new raster file's metadata. + View the metadata under the Metadata tab of the Layer Properties dialog. Look in the Properties section atthe bottom, STATISTICS_MINIMUM=2147483648 SSTATISTICS_MAXIMUM=1 'STATISTICS_MEAN=-266924962.63461 'STATISTICS_STODEV=710768123.11607 (Restore Dotast Sie) JC (bee) (Ari) Whereas this raster, lke the one its derived from, should only feature the values 1 and 0 , thas the svarisrics winivum value of a very large negative number, Investigation ofthe data shows that this number acts as a null value, Since we're only after areas that weren't fitered ‘out, let's set these null values to zero. + Open the Raster Calculator again, and build this expression: (Li conditions sieved <= 0) = 0 This wil maintain al existing zero values, while also setting the negative numbers to zero; which wil leave all the areas with value intact. + Save the output under execcise dsts/residentisi developnent/ aS all conditions simple tf ‘Your output looks like This is what was expected: a simplified version ofthe earlier results. Remember that i the results you get from a tool aren't what you expected, viewing the metadata (and vector attributes, if applicable) can prove essential to solving the problem, 8.3.9. In Conclusion You've seen how to derive all kinds of analysis products from a DEM. These include hilshade, slope and aspect calculations. You've also seen how to use the raster calculator to further analyze and combine these results, 8.3.10. What’s Next? Now you have two analyses: the vector analysis which shows you the potentially suitable plots, and the raster analysis that shows you the potentially suitable tarrin. How can these be combined to arrive ata final result for this problem? That's the topic forthe next lesson, starting in the next module, {httpstwitter;con/agis)_(htps:lwww facebook. com/pagesiQGIS-Quantum-GIS-/298112000235096) (httpsfplus.google.com/communitios/114776597 176808981624) (htt:/github.com/qgis/) + (nttp:shwww.qgis.orgfentsite/getinvolvediabout.ntm)) rnot tates ner, all content sensed under Create Commons Atibutor-ShareAlke 3.0 Io (Co BY-SA) (rto:ereatveconmons.cglcenseiy Sic raps om The Noun Project calecbon ftp sthenaunprojet om)

You might also like