Digital Elevation Model (DEM) Processing

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
Line 48: Line 48:
 
# Add the raster layer ''dem_10m.tif''
 
# Add the raster layer ''dem_10m.tif''
 
#* Right click on the layer name and then click Duplicate from the menu
 
#* Right click on the layer name and then click Duplicate from the menu
#* Open the layer settings menu. Go to Style and change layer blending to Hillshade and press OK
+
#* Open the layer settings menu. Go to Style and change the render type to Hillshade and press OK
 
#* Right click on the duplicated file and open the layer settings menu
 
#* Right click on the duplicated file and open the layer settings menu
#* Change the layer blending to Pseudocolor
+
#* Change the render type to Singleband Pseudocolor
  
 
{| class="wikitable"
 
{| class="wikitable"

Revision as of 09:48, 30 October 2017

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 ans reprojection of DEM data

  1. Add the raster layer n51_e009_e0010_merge.tif to a new QGIS project (from geodata\raster\DEM, see Course data).
  1. 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/s2/Subset_S2A_MSIL2A_20170619T
    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 (figure C).
  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 (figure D).
  5. SAGA tools for resampling
    1. If not open, activate the processing toolbox by selecting Processing --> Toolbox.
    2. In the toolbox, browse for SAGA --> Grid-Spline --> Multilevel B-Spline Interpolation (from grid) or simply type Multilevel into the search field to find the tool. Open it with a double-click.
    3. In the appearing menu, select the following options:
      • The clipped layer from the Grid pulldown menu.
      • For the Output extent, select the clipped layer by clicking ... and selecting Use layer/canvas extent.
      • Set the Cell size to 10.
      • In the Grid input field at the bottom of the menu, select the directory and name for the output file.
      • Choose an output name and directory.
      • Leave the rest of the menu points as they are and click Run. The resampled layer will be added to the canvas.
Figure C: Boundary polygon produced by polygon to layer
Figure D: Clipped DEM map displayed in pseudocolor


3D Layer styling

  1. Add the raster layer dem_10m.tif
    • Right click on the layer name and then click Duplicate from the menu
    • Open the layer settings menu. Go to Style and change the render type to Hillshade and press OK
    • Right click on the duplicated file and open the layer settings menu
    • Change the render type to Singleband Pseudocolor
Figure E: Hillshade
Figure F: Pseudocolor topography style
Figure G: Colorized hillshade
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export