Difference between revisions of "Tutorial M02 002 GIS Inputs QGIS"

From Tuflow
Jump to navigation Jump to search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
 
= Introduction =  
 
= Introduction =  
 
QGIS is used to create, import and view input data.<br>
 
QGIS is used to create, import and view input data.<br>
Line 5: Line 6:
 
= Method =
 
= Method =
 
Navigate to the '''Module_02\Tutorial_Data''' folder. Copy and save all the below layers into the ''' Module_02\TUFLOW\model\gis''' folder:
 
Navigate to the '''Module_02\Tutorial_Data''' folder. Copy and save all the below layers into the ''' Module_02\TUFLOW\model\gis''' folder:
:*2d_zsh_M02_landscape_002_L
+
:*'''2d_zsh_M02_landscape_002_L'''
:*2d_zsh_M02_landscape_002_P
+
:*'''2d_zsh_M02_landscape_002_P'''
:*2d_zsh_M02_landscape_002_R
+
:*'''2d_zsh_M02_landscape_002_R'''
:*2d_mat_M02_landscape_002_R
+
:*'''2d_mat_M02_landscape_002_R'''
  
 
Create two polygons, one raises the elevation to a set height and another raises the elevation by a set amount. <br>
 
Create two polygons, one raises the elevation to a set height and another raises the elevation by a set amount. <br>
Line 17: Line 18:
 
<li>Tick the 'Regions' Geometry Type and hit 'OK'. The 2d_zsh file appears in the Layers panel.  
 
<li>Tick the 'Regions' Geometry Type and hit 'OK'. The 2d_zsh file appears in the Layers panel.  
 
<li>Zoom to the area just upstream of the north road crest.<br>
 
<li>Zoom to the area just upstream of the north road crest.<br>
<li>Right click on the ‘2d_zsh_M02_fill_002_R’ to toggle on Editing and select 'Add Polygon Feature'.
+
<li>Right click on the '''2d_zsh_M02_fill_002_R''' to toggle on Editing and select 'Add Polygon Feature'.
 
<li>Digitise a polygon similar to below, use the right mouse button to terminate the polygon and an attributes dialog displays. Enter the following data: <br>
 
<li>Digitise a polygon similar to below, use the right mouse button to terminate the polygon and an attributes dialog displays. Enter the following data: <br>
 
:*Z = 45  
 
:*Z = 45  
 
:*Shape_Option = NO MERGE (assigns a single elevation to all Zpts falling within the polygon without interpolating the edges to the original topography) <br>
 
:*Shape_Option = NO MERGE (assigns a single elevation to all Zpts falling within the polygon without interpolating the edges to the original topography) <br>
 
<br>
 
<br>
[[File:Animation M02 GIS 02.gif]]<br>
+
{{Video|name=Animation_M02_GIS_02.mp4|width=1279}}<br>
 
<br>
 
<br>
 
<li>Zoom to the south west corner of the grid to digitise the second polygon.
 
<li>Zoom to the south west corner of the grid to digitise the second polygon.
Line 31: Line 32:
 
<li>Turn off editing to save the edits.<br>
 
<li>Turn off editing to save the edits.<br>
 
<br>
 
<br>
[[File:Animation M02 GIS 01.gif]]<br>
+
{{Video|name=Animation_M02_GIS_01.mp4|width=1279}}<br>
 
<br>
 
<br>
 
</ol>
 
</ol>
Line 41: Line 42:
 
<li>In the Run ID box write 'M02_merge_002'.
 
<li>In the Run ID box write 'M02_merge_002'.
 
<li>Tick the 'Regions' Geometry Type and hit 'OK'. The 2d_zsh file appears in the Layers panel. Zoom to the east side of the model.  <br>
 
<li>Tick the 'Regions' Geometry Type and hit 'OK'. The 2d_zsh file appears in the Layers panel. Zoom to the east side of the model.  <br>
<li>Right click on the ‘2d_zsh_M02_merge_002_R’ and toggle on Editing.
+
<li>Right click on the '''2d_zsh_M02_merge_002_R''' and toggle on Editing.
 
<li>Select 'Add Polygon Feature'.
 
<li>Select 'Add Polygon Feature'.
 
<li>Digitise a polygon around the depression in the DEM. <br>
 
<li>Digitise a polygon around the depression in the DEM. <br>
Line 47: Line 48:
 
<li>Turn off editing to save the edits.<br>
 
<li>Turn off editing to save the edits.<br>
 
<br>
 
<br>
[[File:Animation M02 GIS 03.gif]]<br>
+
{{Video|name=Animation_M02_GIS_03.mp4|width=1279}}<br>
 
<br>
 
<br>
 
</ol>
 
</ol>
Line 58: Line 59:
 
<li>Tick the 'Regions' Geometry Type and hit 'OK'. The 2d_zsh file appears in the layers panel.
 
<li>Tick the 'Regions' Geometry Type and hit 'OK'. The 2d_zsh file appears in the layers panel.
 
<li>Zoom to the channel where it meets the north road embankment. <br>
 
<li>Zoom to the channel where it meets the north road embankment. <br>
<li>Right click on the ‘2d_zsh_M02_cut_002_R’ to toggle on Editing and select 'Add Polygon Feature'.
+
<li>Right click on the '''2d_zsh_M02_cut_002_R''' to toggle on Editing and select 'Add Polygon Feature'.
 
<li>Digitise a polygon similar to below, terminate the region and enter the following data in the attributes dialog: <br>
 
<li>Digitise a polygon similar to below, terminate the region and enter the following data in the attributes dialog: <br>
 
:*Shape_Width = -1<br>
 
:*Shape_Width = -1<br>
 
<br>
 
<br>
[[File:Animation M02 GIS 04.gif]]<br>
+
{{Video|name=Animation_M02_GIS_04.mp4|width=1279}}<br>
 
<br>
 
<br>
 
<li>Add more vertices by holding Shift and double click along the upstream and downstream sides of the polygon. By default TUFLOW uses the merge option and the negative Shape_Width instructs TUFLOW to sample the DEM elevation only at the location of the polygon vertices. <br>
 
<li>Add more vertices by holding Shift and double click along the upstream and downstream sides of the polygon. By default TUFLOW uses the merge option and the negative Shape_Width instructs TUFLOW to sample the DEM elevation only at the location of the polygon vertices. <br>
 
<li>Turn off editing to save the edits.<br>
 
<li>Turn off editing to save the edits.<br>
 
<br>
 
<br>
[[File:Animation M02 GIS 05.gif]]<br>
+
{{Video|name=Animation_M02_GIS_05.mp4|width=1279}}<br>
 
<br>
 
<br>
 
</ol>
 
</ol>
Line 77: Line 78:
 
:*Select Layer > Add layer > Add Vector Layer and navigate to the ''' Module_02\TUFLOW\model\gis''' folder.
 
:*Select Layer > Add layer > Add Vector Layer and navigate to the ''' Module_02\TUFLOW\model\gis''' folder.
 
<li>The point layer specifies the elevation with the ‘Z’ attribute. Some of the point are snapped to the line layer setting the elevations along the line.  
 
<li>The point layer specifies the elevation with the ‘Z’ attribute. Some of the point are snapped to the line layer setting the elevations along the line.  
<li>The line layer assists in the TIN process. The 'dZ' attribute specifies a sampling distance for the TIN triangles, intermediate sampling points are created at the line vertices and along the line at 'dZ' intervals.
+
<li>The line layer assists in the TIN process. With the 'Shape_Option' attribute 'TIN', the 'Shape_Width' attribute specifies a sampling distance for the TIN triangles, intermediate sampling points are created at the line vertices and along the line at 'Shape_Width' intervals.
 
<li>The region layer sets the area over which the TIN functionality takes place. Without points snapped to the perimeter vertices of the region, the elevations are inserted from the underlying Zpt elevations, it uses the default merge option.<br>
 
<li>The region layer sets the area over which the TIN functionality takes place. Without points snapped to the perimeter vertices of the region, the elevations are inserted from the underlying Zpt elevations, it uses the default merge option.<br>
 
<br>
 
<br>
[[File:Animation M02 GIS TIN 03.gif]]<br>
+
{{Video|name=Animation_M02_GIS_TIN_04.mp4|width=1279}}<br>
 
</ol>
 
</ol>
 
<br>
 
<br>
Line 92: Line 93:
 
:*The material attribute associated with each polygon is an integer value based on the underlying land use type.<br>
 
:*The material attribute associated with each polygon is an integer value based on the underlying land use type.<br>
 
<br>
 
<br>
[[File:Animation M02_GIS_mat_05.gif]]<br>
+
{{Video|name=Animation_M02_GIS_mat_05.mp4|width=1279}}<br>
 
</ol>
 
</ol>
 
<br>
 
<br>

Latest revision as of 08:50, 15 August 2023

Introduction

QGIS is used to create, import and view input data.

Method

Navigate to the Module_02\Tutorial_Data folder. Copy and save all the below layers into the Module_02\TUFLOW\model\gis folder:

  • 2d_zsh_M02_landscape_002_L
  • 2d_zsh_M02_landscape_002_P
  • 2d_zsh_M02_landscape_002_R
  • 2d_mat_M02_landscape_002_R

Create two polygons, one raises the elevation to a set height and another raises the elevation by a set amount.

  1. Click on the ‘Import Empty File’ symbol from the TUFLOW Plugin toolbar.
  2. Select '2d_zsh' from the Empty Type list.
  3. In the Run ID box write 'M02_fill_002'.
  4. Tick the 'Regions' Geometry Type and hit 'OK'. The 2d_zsh file appears in the Layers panel.
  5. Zoom to the area just upstream of the north road crest.
  6. Right click on the 2d_zsh_M02_fill_002_R to toggle on Editing and select 'Add Polygon Feature'.
  7. Digitise a polygon similar to below, use the right mouse button to terminate the polygon and an attributes dialog displays. Enter the following data:
    • Z = 45
    • Shape_Option = NO MERGE (assigns a single elevation to all Zpts falling within the polygon without interpolating the edges to the original topography)



  8. Zoom to the south west corner of the grid to digitise the second polygon.
  9. Select 'Add Polygon Feature'.
  10. Digitise a polygon similar to below, use the right mouse button to terminate the polygon and an attributes dialog displays. Enter the following data:
    • Z = 1
    • Shape_Opti = ADD (adds the specified ‘Z’ value to all existing Zpts within the polygon, it raises the area within the polygon, but maintains the natural slope of the land)
  11. Turn off editing to save the edits.



Create a polygon to rehabilitate the farm dam on the east side of the model, e.g. fill the farm dam to a surrounding level.

  1. Click on the ‘Import Empty File’ symbol from the TUFLOW Plugin toolbar.
  2. Select '2d_zsh' from the Empty Type list.
  3. In the Run ID box write 'M02_merge_002'.
  4. Tick the 'Regions' Geometry Type and hit 'OK'. The 2d_zsh file appears in the Layers panel. Zoom to the east side of the model.
  5. Right click on the 2d_zsh_M02_merge_002_R and toggle on Editing.
  6. Select 'Add Polygon Feature'.
  7. Digitise a polygon around the depression in the DEM.
  8. Use the right mouse button to terminate the polygon and an attributes dialog displays. Click 'OK' with no attribute information input. By default TUFLOW uses the merge option, this samples the DEM elevation at the polygon vertices and along the perimeter of the region with maximum spacing of half the cell size.
  9. Turn off editing to save the edits.



Create a polygon to represent a cut through the north road embankment allowing water to pass through while maintaining the channel topography.

  1. Click on the ‘Import Empty File’ symbol from the TUFLOW Plugin toolbar.
  2. Select '2d_zsh' from the Empty Type list.
  3. In the Run ID box write 'M02_cut_002'.
  4. Tick the 'Regions' Geometry Type and hit 'OK'. The 2d_zsh file appears in the layers panel.
  5. Zoom to the channel where it meets the north road embankment.
  6. Right click on the 2d_zsh_M02_cut_002_R to toggle on Editing and select 'Add Polygon Feature'.
  7. Digitise a polygon similar to below, terminate the region and enter the following data in the attributes dialog:
    • Shape_Width = -1



  8. Add more vertices by holding Shift and double click along the upstream and downstream sides of the polygon. By default TUFLOW uses the merge option and the negative Shape_Width instructs TUFLOW to sample the DEM elevation only at the location of the polygon vertices.
  9. Turn off editing to save the edits.



Investigate the supplied 2d_zsh_M02_landscape_002 files with TIN functionality:

  1. Open the files, either:
    • Drag and drop all .shp files into the QGIS workspace, or
    • Select Layer > Add layer > Add Vector Layer and navigate to the Module_02\TUFLOW\model\gis folder.
  2. The point layer specifies the elevation with the ‘Z’ attribute. Some of the point are snapped to the line layer setting the elevations along the line.
  3. The line layer assists in the TIN process. With the 'Shape_Option' attribute 'TIN', the 'Shape_Width' attribute specifies a sampling distance for the TIN triangles, intermediate sampling points are created at the line vertices and along the line at 'Shape_Width' intervals.
  4. The region layer sets the area over which the TIN functionality takes place. Without points snapped to the perimeter vertices of the region, the elevations are inserted from the underlying Zpt elevations, it uses the default merge option.



Investigate the supplied materials file:

  1. Load into QGIS the 2d_mat_M02_landscape_002_R file by, either:
    • Drag and drop the .shp file into the QGIS workspace, or
    • Select Layer > Add layer > Add Vector Layer and navigate to the Module_02\TUFLOW\model\gis folder.
  2. Inspect the file:
    • The materials file contains polygons that represent the updated land use due to the topography modifications.
    • The material attribute associated with each polygon is an integer value based on the underlying land use type.



Conclusion

  • Three 2d_zsh layers were created to add development sites to the model with different purpose.
  • Complex development site with TIN functionality was supplied and inspected.
  • The 2d_mat layer was reviewed defining the spatial extents for new land use categories.


Up
Go-up.png Back to Module 2 Main Page