Tute M01 Inspect Zpts QGIS Archive
Introduction
In this page we look at the process on assigning elevations to the TUFLOW Zpts that define the elevations in the model using QGIS. In this process we will open a shapefile containing all of the Zpts and then inspect the elevations from a DEM.
The process is similar to the process in QGIS, MapInfo and ArcGIS. However, this process is significantly slower in QGIS, taking approximately 30 minutes. Therefore, it is recommended that direct input of DEM is used instead. Direct input of the DEM has the following benefits:
- Speed, direct input of the DEM to TUFLOW, is much faster than the process outline below; and
- Flexibility, if the cell size of the TUFLOW model is changed, the process below will need to be repeated, for a direct input of DEM or TIN, this is not necessary.
The process of inspecting the Zpts in QGIS is outlined below for completeness.
Method
- Ensure that the layer containing sampling points is set to 2d_zpt_M01_5m_002_P.
- Set the output point vector layer to \TUFLOW\model\gis\2d_zpt_M01_5m_003_P.shp.
- Select the following layers 2d_zpt_M01_5m_002_P : n, 2d_zpt_M01_5m_002_P : m, 2d_zpt_M01_5m_002_P : type and DEM_M01 : band 1 (the Elevation from the source point is omitted as this contains only null elevations).
In order to select the points with a DEM_M01 value of zero, right click on the 2d_zpt_M01_5m_003_P entry in the layers table of contents and select Open Attribute Table.
- Set the layer to be editable using the toggle editing button which is shaped like a blue pen;
- Type "Null" (without the quotes) into the "Look For" section, at the bottom of the dialogue; and
- Set the field to look for "Null" to be DEM_M01, using the drop down box.
We have now updated the GIS layer, the next step is to modify the TUFLOW geometry control file to read the new shapefile.
Read RowCol Zpts == ..\model\gis\2d_zpt_M01_5m_003_P.shp
Conclusion
The Zpts have been inspected from the DEM, the geometry control file (.tgc) updated to use the inspected Zpts. Please return to the tutorial model module 1 page where the next step is to define the active areas.