Difference between revisions of "Tutorial M10 002 GIS Inputs QGIS GPKG"

From Tuflow
Jump to navigation Jump to search
Line 40: Line 40:
 
<li>In the Run ID box write 'M10_dambreak_002'.
 
<li>In the Run ID box write 'M10_dambreak_002'.
 
<li>Tick the 'Points' Geometry Type
 
<li>Tick the 'Points' Geometry Type
<li>In the Spatial Database Options, select 'All to one' and save the layer into the '''M10_002.gpkg''' database. Click Save and hit 'OK'.
+
<li>In the Spatial Database Options, select 'All to one'. Navigate to the '''Module_10/TUFLOW/model/gis''' folder and select '''M10_002.gpkg'''. Click Save and hit 'OK'.
 
<li>The 2d_vzsh file appears in the Layers panel.  <br>
 
<li>The 2d_vzsh file appears in the Layers panel.  <br>
 
<li>Right click on the '''2d_zsh_M10_dambreak_002_P''' and toggle on Editing.
 
<li>Right click on the '''2d_zsh_M10_dambreak_002_P''' and toggle on Editing.

Revision as of 10:42, 21 August 2023

Introduction

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

Method

Setup the GeoPackage Database:

  1. Navigate to the Module_10\TUFLOW\model\gis folder. Save a copy of M10_001.gpkg as M10_002.gpkg.

Increment the dambreak layer from Part 1 to change time trigger into water level trigger:

  1. Load in the 2d_vzsh_M10_dambreak_001_R layer from M10_002.gpkg, either:
    • Within the QGIS Browser Panel, navigate to M10_002.gpkg and double click the layer, or
    • In File Explorer, drag and drop the M10_002.gpkg into the QGIS Workspace and select the layer.
  2. Select the 2d_vzsh_M10_dambreak_001_R layer in the Layers panel.
  3. Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar.
  4. The tool automatically renames the 2d_vzsh_M10_dambreak_001_R to 2d_vzsh_M10_dambreak_002_R. By default the new layer will be saved into the same Spatial Database (e.g. M10_002.gpkg) and the previous layer superseded to TUFLOW/model/gis/ss folder.
  5. Click 'OK'.
  6. The tool removes the source layer from the Layers panel and the 2d_vzsh_M10_dambreak_002_R appears:



  7. Right click on the 2d_vzsh_M10_dambreak_002_R layer to toggle on Editing.
  8. Click on the 'Identify Features' tool and click on the polygon.
  9. Update the following attributes:
    • Trigger_1: WL_Trigger
    • Trigger_Value: 60
    • Period: 0.5
  10. Click 'OK' and turn off editing to save the edits.



Create a point to set the location of the water level trigger:

  1. Click on the ‘Import Empty File’ symbol from the TUFLOW Plugin toolbar.
  2. Select '2d_vzsh' from the Empty Type list.
  3. In the Run ID box write 'M10_dambreak_002'.
  4. Tick the 'Points' Geometry Type
  5. In the Spatial Database Options, select 'All to one'. Navigate to the Module_10/TUFLOW/model/gis folder and select M10_002.gpkg. Click Save and hit 'OK'.
  6. The 2d_vzsh file appears in the Layers panel.
  7. Right click on the 2d_zsh_M10_dambreak_002_P and toggle on Editing.
  8. Select 'Add Point Feature'.
  9. Digitise a point within the dam upstream of the location of the dam break.
  10. An attributes dialog displays, enter the following attributes:
    • Shape_Option: TRIGGER
    • Trigger_1: WL_Trigger
  11. Click 'OK' and turn off editing to save the edits.



Conclusion

  • A 2d_vzsh region layer was modified to simulate a dambreak based on water level at specific point.
  • A 2d_vzsh point layer was created to set the location of the water level trigger.


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