Difference between revisions of "QGIS Extract Ground Elevation"
Jump to navigation
Jump to search
(→Method) |
(→Method) |
||
Line 8: | Line 8: | ||
=Method= | =Method= | ||
<ol> | <ol> | ||
− | <li>Ensure that the Point Sampling Tool plugin has been loaded | + | <li>Ensure that DEM and 2d_zsh line layer files are opened, and the Point Sampling Tool plugin has been loaded</li> |
<li>Convert line vertexes to points, using the preferred method described in [[QGIS_Convert_Lines_to_Points | this page]]</li> | <li>Convert line vertexes to points, using the preferred method described in [[QGIS_Convert_Lines_to_Points | this page]]</li> | ||
<li>Open the Point Sampling Tool</li> | <li>Open the Point Sampling Tool</li> | ||
[[File:QGIS Extract Ground Elevation 001.png|800px]] | [[File:QGIS Extract Ground Elevation 001.png|800px]] | ||
<li>Set the following:<br> | <li>Set the following:<br> | ||
− | * | + | * Select the point layer converted at step 2 as the "Layer containing sampling points" |
− | * | + | * Select all the attribute in the point layer as well as the DEM as the "Layers to get value from" |
− | * | + | * Set the output layer file name |
− | The plugin will create a new point file which contains all | + | The plugin will create a new point layer file which contains all attributes in a 2d_zsh layer and the bed elevation as the 5th attribute. |
</ol> | </ol> | ||
[[File:QGIS Lines to Points.jpg|500px]] | [[File:QGIS Lines to Points.jpg|500px]] |
Revision as of 09:26, 20 February 2018
Introduction
This page describes the method for extracting ground elevation (or any other variable) from raster files or polygon attribute using "Point Sampling Tool". This method is useful when you want to:
- Extract ground elevation for the points snapped to breaklines
- Define ground elevation for 1D nodes/pits snapped to 1D channel/pipes
- etc...
In the example below, the ground elevation for the 2d_zsh point layer in the TUFLOW Tutorial 03 is extracted from the DEM file.
Method
- Ensure that DEM and 2d_zsh line layer files are opened, and the Point Sampling Tool plugin has been loaded
- Convert line vertexes to points, using the preferred method described in this page
- Open the Point Sampling Tool
- Set the following:
- Select the point layer converted at step 2 as the "Layer containing sampling points"
- Select all the attribute in the point layer as well as the DEM as the "Layers to get value from"
- Set the output layer file name