Digital Elevation Model (DEM) Processing

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Clipping and Resampling of DEM data)
(Clipping and Resampling of DEM data)
Line 30: Line 30:
 
## Select the {{button|text=Style}} tab. Under {{button|text=Render type}} select {{button|text=Singleband pseudocolor}}.
 
## Select the {{button|text=Style}} tab. Under {{button|text=Render type}} select {{button|text=Singleband pseudocolor}}.
 
## In the {{button|text=Generate new color map}} section select {{button|text=Spectral}}. In the {{button|text=Mode}} pulldown menu select {{button|text=Continuous}}. Set the number of {{button|text=Classes}} to 10 and click {{button|text=Classify}}.  
 
## In the {{button|text=Generate new color map}} section select {{button|text=Spectral}}. In the {{button|text=Mode}} pulldown menu select {{button|text=Continuous}}. Set the number of {{button|text=Classes}} to 10 and click {{button|text=Classify}}.  
## To finish, click {{button|text=apply}}. If your're content with you settings, click {{button|text=OK}} to close the window.
+
## To finish, click {{button|text=Apply}}. If your're content with you settings, click {{button|text=OK}} to close the window.
  
  
 
[[category:QGIS exercises 2013/14]]
 
[[category:QGIS exercises 2013/14]]

Revision as of 16:17, 21 January 2014

Construction.png sorry: 

This section is still under construction! This article was last modified on 01/21/2014. If you have comments please use the Discussion page or contribute to the article!

This article is part of the QGIS tutorial 2013/14.
In this article you will learn how to pre-process and enhance digital elevation model (DEM) data, as well as how to create a 3D-Model

Loading, merging and reprojection of DEM data

  1. Add the raster layers N51E009.hgt and N51E010.hgt to a new QGIS project (from geodata\raster\DEM, see Course data). Arrange the first above the latter layer.
  2. Merging layers
    • Select Raster --> Miscellaneous --> Merge. In the appearing menu, click the Select beside the Input files field. Browse for the maps N51E009.hgt and N51E010.hgt and select both (by clicking with pressed Ctrl key) (figure A).
    • Select an output directory and file name (e.g. N510_merged) under Output file. Confirm with OK.
  3. Reprojecting layers (warp)
    • Select Raster --> Projections --> Warp (reprojects).
    • As Input file choose the merged layer from the preceding step. Select an according path and file name for Output file.
    • Determine the correct source and target spatial reference system (Source SRS and Target SRS) -- The coordinate system of the source layer is WGS84 (EPSG:4326). Use UTM32 (EPSG:32632) as target (figure B).
    • Confirm with OK.
Figure A: Merge dialogue and file browser in QGIS 2.0
Figure B: Warp dialogue and menu for SRS selection in QGIS 2.0

Clipping and Resampling of DEM data

  1. Create a boundary polygon
    1. Add the raster map geodata/raster/landsat/landsat8/DOY156/SUB_LC81950242013156LGN00_B1 from the course data to the project.
    2. Select Vector --> Research tools --> Polygon from layer extent. Choose the landsat map as input, select an output path and file name and confirm with OK. Confirm the following prompt to let the layer be added to the canvas.
  2. Buffer the boundary polygon
    • Choose Vector --> Geoprocessing tools --> Buffer and select the boundary polygon created before as input. Select a reasonable name and output directory under Output shapefile. Confirm with OK and let the output layer be added to the canvas. Place it below the boundary polygon in the TOC to see the effect of buffering.
  3. Clip the DEM map
    • Open the clipping tool under Raster --> Extractions --> Clipper. Select the reprojected DEM file as input and select the output directory and file name as usual. Select the Mask layer radio button to select the buffered boundary layer as blueprint for clipping. Don't forget to enter an output path and file name. Confirm with OK and let the result be added to the map.
  4. Map visualization
    1. Open the raster layer properties by right-clicking the clipped DEM map in the TOC and selecting Properties, or by simply double clicking.
    2. Select the Style tab. Under Render type select Singleband pseudocolor.
    3. In the Generate new color map section select Spectral. In the Mode pulldown menu select Continuous. Set the number of Classes to 10 and click Classify.
    4. To finish, click Apply. If your're content with you settings, click OK to close the window.
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export