Tutorial M11 001 GIS Inputs QGIS GPKG: Difference between revisions
Content deleted Content added
| (28 intermediate revisions by 3 users not shown) | |||
Line 1:
= Introduction =
QGIS is used to create, import and view input data.<br>
Line 20 ⟶ 17:
= Method =
Set up the GeoPackage Database:
<ol>
<li>
<li>Within the QGIS Browser Panel, right click on 'Favorites' and select 'Add a Directory...'.
<li>Navigate to the '''Module_11''' folder and select it.
</ol>
Within File Explorer, navigate to the '''Module_11\Tutorial_Data''' folder:
<ol>
<li>Copy and paste the '''xs''' folder into the '''Module_11\TUFLOW\model''' folder.
</ol>
Within the QGIS Browser Panel, navigate to the '''Module_11\TUFLOW\model\xs''' folder. Drag and drop the following layer into the '''Module_11\TUFLOW\model\gis\M11_001.gpkg''':<br>
:*'''1d_xs_M11_channels_001_L'''
Within the QGIS Browser Panel, navigate to the '''Module_11\Tutorial_Data''' folder. Drag and drop the following layers into the '''Module_11\TUFLOW\model\gis\M11_001.gpkg''': <br>
:*'''1d_bc_M11_001_P'''
:*'''1d_nwk_M03_culverts_001_L'''
:*'''1d_nwk_M11_channels_001_L'''
:*'''1d_wll_M11_001_L'''
:*'''2d_bc_M03_culverts_001_P'''
:*'''2d_bc_M11_hx_001_L'''
:*'''2d_code_M11_null_creek_001_R'''
:*'''2d_zsh_M11_hx_001_L'''
:*'''2d_zsh_M11_hx_001_P'''
==1D Cross Section ==
A 1D open channel requires cross sections for processing of the channel geometry. For each cross section there is an individual comma separated csv file:
<ol>
<li>Load in the '''1d_xs_M11_channels_001_L
:*Within the QGIS Browser Panel, navigate to '''M11_001.gpkg''' and double click the layer, or
:*In File Explorer, drag and drop the '''M11_001.gpkg''' into the QGIS workspace and select the layer.
<li>Use the 'Apply TUFLOW Styles to Open Layers'.
<li>Use the 'Apply GPKG Layer Names'.
<li>The cross sections extend further than the 2d_code layer and DEM, here the model transitions from a 1D/2D model to a 1D only model. This method can be used where cross section data is available but topography data is not.
<li>Use the 'Identify Features' tool to inspect a cross section line. Each line has a unique name in the 'Source' attribute field that links to a cross section csv contained within the '''xs''' folder. Type attribute 'XZ' specifies distance vs elevation cross section: <br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_01.mp4|width=1237}}<br>
<br>
<li>Open the TUFLOW Viewer, the 1d_xs file automatically appears with a time series result 'XZ' showing. Select a 1d_xs line and view the cross section: <br>
<br>
{{Video|name=Animation_M11_001_GIS_02.mp4|width=1237}}<br>
<br>
</ol>
Line 53 ⟶ 64:
A 1d_nwk layer is used to model open channels. It contains information on inverts and to obtain data from the cross section the 1d_nwk and 1d_xs must be snapped:
<ol>
<li>Load in the '''1d_nwk_M11_channels_001_L
:*Within the QGIS Browser Panel, navigate to '''M11_001.gpkg''' and double click the layer, or
:*In File Explorer, drag and drop the '''M11_001.gpkg''' into the QGIS workspace and select the layer.
<li>Use the 'Apply TUFLOW Styles to Open Layers'.
<li>Use the 'Apply GPKG Layer Names'.
<li>There are three 1d_nwk types used:
:* S - standard open channel.
:* W - weir.
:* X - connecting channel used for side channels entering the main channel.
<li>Use the 'Identify Features' tool to inspect the attributes of the three 1d_nwk types:<br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_03.mp4|width=1237}}<br>
<br>
</ol>
Line 68 ⟶ 83:
The 1D model extents both upstream and downstream of the 2D active domain:
<ol>
<li>Load in the '''1d_bc_M11_001_P
:*Within the QGIS Browser Panel, navigate to '''M11_001.gpkg''' and double click the layer, or
:*In File Explorer, drag and drop the '''M11_001.gpkg''' into the QGIS workspace and select the layer.
<li>Use the 'Apply TUFLOW Styles to Open Layers'.
<li>Use the 'Apply GPKG Layer Names'.
<li>Use the 'Identify Features' tool to inspect the attributes of the three boundaries. A QT type (flow vs time) hydrograph is used to apply flow at the upstream boundary and a HQ (water level vs flow) boundary is used to remove flow from the downstream boundary based on a water level vs flow curve:<br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_09.mp4|width=1237}}<br>
<br>
</ol>
Line 78 ⟶ 97:
1D culverts are included in a separate 1d_nwk layer. 1D culverts are described in detail in <u>[https://wiki.tuflow.com/index.php?title=Tutorial_M03 Module 3]</u>:
<ol>
<li>Load in the '''1d_nwk_M03_culverts_001_L
:*Within the QGIS Browser Panel, navigate to '''M11_001.gpkg''' and double click the layer, or
:*In File Explorer, drag and drop the '''M11_001.gpkg''' into the QGIS workspace and select the layer.
<li>Use the 'Apply TUFLOW Styles to Open Layers'.
<li>Use the 'Apply GPKG Layer Names'.
<li>There are two 1d_nwk types used:
:*C - circular culvert.
Line 84 ⟶ 107:
<li>Two culverts within the open channel link upstream 1D channel to the downstream 1D channel underneath the roads, the culvert to the east is embedded into the 2D domain directly. Use the 'Identify Features' tool to inspect the attributes:<br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_04.mp4|width=1237}}<br>
<br>
</ol>
Line 91 ⟶ 114:
The culvert on the east is connected to the 2D domain using 2d_bc layer SX type connection. It removes water out of the upstream cell(s) and deposits water back at the downstream cell(s):
<ol>
<li>Load in the '''2d_bc_M03_culverts_001_P
:*Within the QGIS Browser Panel, navigate to '''M11_001.gpkg''' and double click the layer, or
:*In File Explorer, drag and drop the '''M11_001.gpkg''' into the QGIS workspace and select the layer.
<li>Use the 'Apply TUFLOW Styles to Open Layers'.
<li>Use the 'Apply GPKG Layer Names'.
<li>The 2d_bc SX points are snapped to the 1d_nwk culvert:<br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_05.mp4|width=1237}}<br>
<br>
</ol>
The 1D open channel is linked to the 2D using a 2d_bc layer HX and CN type connections:
<ol>
<li>Load in the '''2d_bc_M11_hx_001_L
:*Within the QGIS Browser Panel, navigate to '''M11_001.gpkg''' and double click the layer, or
:*In File Explorer, drag and drop the '''M11_001.gpkg''' into the QGIS workspace and select the layer.
<li>Use the 'Apply TUFLOW Styles to Open Layers'.
<li>Use the 'Apply GPKG Layer Names'.
<li>The 2d_bc HX type lines run along the top of bank. In HX type, the H indicates a head (water level) boundary and the X indicates a water level value coming from the 1D model. Once the water level in the 1D exceeds the water level in the 2D boundary cell, water can enter from 1D channel to 2D domain and vice versa. For water to flow in and out of floodplain overbank areas, HX lines extending into the floodplain at the upstream and downstream are required. Without them, the flow is assumed to be contained within bank which may not be the case.
<li>The CN lines connect the HX lines to the 1D channel. Where a CN line is connected to the HX line, the water level from the 1D nodes is transferred to the HX line. In between 1D nodes a linear interpolation of water level is applied. <br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_06.mp4|width=1237}}<br>
<br>
</ol>
Line 112 ⟶ 143:
[[File:2D Breaklines_all together.jpg|1200px]]<br>
<br>
<li>Load in the
:*Within the QGIS Browser Panel, navigate to '''M11_001.gpkg''' and double click the layers, or
:*In File Explorer, drag and drop the '''M11_001.gpkg''' into the QGIS workspace and select the layers (hold Ctrl to select multiple).
<li>Use the 'Apply TUFLOW Styles to Open Layers'.
<li>Use the 'Apply GPKG Layer Names'.
<li>The 2d_zsh line layer is used to define breaklines along the bank of the channel:
:*No ‘Z’ attribute is specified, the elevations are taken from the 2d_zsh point layer.
Line 124 ⟶ 157:
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_07.mp4|width=1237}}<br>
<br>
</ol>
Line 131 ⟶ 164:
The area of the 1D open channel defined by the 1D/2D HX boundaries must be removed from the active 2D cells:
<ol>
<li>Load in the '''2d_code_M11_null_creek_001_R
:*Within the QGIS Browser Panel, navigate to '''M11_001.gpkg''' and double click the layer, or
:*In File Explorer, drag and drop the '''M11_001.gpkg''' into the QGIS workspace and select the layer.
<li>Use the 'Apply TUFLOW Styles to Open Layers'.
<li>Use the 'Apply GPKG Layer Names'.
<li>The 2d_code layer is used to deactivate the area representing the 1D open channel with attribute of '0'. All cells within the polygon are removed from the 2D computations. <br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_08.mp4|width=1237}}<br>
<br>
</ol>
==Water Level Lines==
Water Level Line (WLL) are used to display 1D results in map outputs. WLL do not change 1D hydraulic computations and are only used to display 1D results in plan (2D) formats. For more information on WLL,
<ol>
<li>Load in the '''1d_wll_M11_001_L
:*Within the QGIS Browser Panel, navigate to '''M11_001.gpkg''' and double click the layer, or
:*In File Explorer, drag and drop the '''M11_001.gpkg''' into the QGIS workspace and select the layer.
<li>Use the 'Apply TUFLOW Styles to Open Layers'.
<li>Use the 'Apply GPKG Layer Names'.
<li>The 1d_wll layer must be digitised perpendicular to the flow direction and from left to right looking downstream. An attribute of '2.5' is specified for all lines as a minimum distance interval along the WLL to generate triangulation points. <br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_10.mp4|width=1237}}<br>
<br>
</ol>
Line 155 ⟶ 196:
<li>Select '0d_rl' from the Empty Type list.
<li>In the Run ID box write 'M11_001'.
<li>Tick the 'Line' and 'Point' Geometry Type
<li>In the Spatial Database Options, select 'All to one'. Navigate to the '''Module_11/TUFLOW/model/gis''' folder and select '''M11_001.gpkg'''. Click Save and hit 'OK'.
<li>The 0d_rl (reporting location) files appear in the Layers panel.
</ol>
Copy the line and point from the 2d_po layer:
<ol>
<li>Load in the '''2d_po_M01_001_L
:*Within the QGIS Browser Panel, navigate to '''M11_001.gpkg''' and double click the layers, or
:*In File Explorer, drag and drop the '''M11_001.gpkg''' into the QGIS workspace and select the layers (hold Ctrl to select multiple).
<li>Use the 'Apply TUFLOW Styles to Open Layers'.
<li>Use the 'Apply GPKG Layer Names'.
<li>Right click on the '''0d_rl_M11_001_L''' and toggle on Editing.
<li>Copy the line from the 2d_po line layer into the 0d_rl line layer.
Line 165 ⟶ 212:
<li>Turn off editing to save the edits.<br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_11.mp4|width=1237}}<br>
<br>
<li>Right click on the '''0d_rl_M11_001_P''' and toggle on Editing.
Line 172 ⟶ 219:
<li>Turn off editing to save the edits.<br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_12.mp4|width=1237}}<br>
<br>
<li>To ensure the point reporting functionality is correct, it needs to be snapped to the start/end of a 1d_nwk line.
Line 181 ⟶ 228:
<li>Turn off editing to save the edits. <br>
<br>
{{Video|name=Animation_M11_GPKG_001_GIS_13.mp4|width=1237}}<br>
</ol>
<br>
| |||