Difference between revisions of "Tutorial M11 002 GIS Inputs QGIS GPKG"
(Created page with "<span style="color:#FF0000"> <font size = 18>Page Under Construction</font> </span> = Introduction = QGIS is used to create, import and view input data.<br> <br> = Method =...") |
|||
(4 intermediate revisions by the same user 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 7: | Line 4: | ||
= Method = | = Method = | ||
− | Navigate to the '''Module_11\Tutorial_Data''' folder. | + | Set up the GeoPackage Database: |
− | :* | + | <ol> |
− | :* | + | <li>Navigate to the '''Module_11\TUFLOW\model\gis''' folder. Save a copy of '''M11_001.gpkg''' as '''M11_002.gpkg'''. |
+ | </ol> | ||
+ | Within the QGIS Browser Panel, navigate to the '''Module_11\Tutorial_Data''' folder. Drag and drop the following layers into the '''M11_002.gpkg''': <br> | ||
+ | :*'''1d_nwk_M11_bridges_002_L''' | ||
+ | :*'''1d_nwk_M11_weirs_002_L''' | ||
+ | |||
+ | Within the QGIS Browser Panel, navigate to the '''Module_11\TUFLOW\model\xs''' folder. Drag and drop the following layers into the '''M11_002.gpkg''':<br> | ||
+ | :*'''1d_xs_M11_bridges_002_L''' | ||
+ | :*'''1d_xs_M11_weirs_002_L''' | ||
Investigate the supplied files: | Investigate the supplied files: | ||
<ol> | <ol> | ||
− | <li> | + | <li>Open the files, either: |
− | :*''' | + | :*Within the QGIS Browser Panel, navigate to '''M11_002.gpkg''' and double click the layers, or |
− | :*''' | + | :*In File Explorer, drag and drop the '''M11_002.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 TUFLOW Styles to Open Layers'. | ||
<li>The 1d_nwk bridge layer represents a bridge in 1D at the upstream and downstream road crossing. Type attribute ‘BB’ is specified, only pier loss and submerged deck loss coefficients are required, all other losses are automatically calculated. | <li>The 1d_nwk bridge layer represents a bridge in 1D at the upstream and downstream road crossing. Type attribute ‘BB’ is specified, only pier loss and submerged deck loss coefficients are required, all other losses are automatically calculated. | ||
Line 21: | Line 26: | ||
<li>The 1d_nwk weir layer represents a weir for flow over the bridge in 1D at the downstream road crossing. Type attribute 'W' is specified, the weir is based on the broad crested weir formula: <br> | <li>The 1d_nwk weir layer represents a weir for flow over the bridge in 1D at the downstream road crossing. Type attribute 'W' is specified, the weir is based on the broad crested weir formula: <br> | ||
<br> | <br> | ||
− | + | {{Video|name=Animation_M11_002_GIS_06a.mp4|width=1238}}<br> | |
<br> | <br> | ||
− | |||
− | |||
− | |||
− | |||
<li>Use the TUFLOW Viewer to view the 'HW' (height vs width) cross section of the bridges and 'XZ' (distance vs elevation) cross section of the weir. <br> | <li>Use the TUFLOW Viewer to view the 'HW' (height vs width) cross section of the bridges and 'XZ' (distance vs elevation) cross section of the weir. <br> | ||
Note: If a 1d_xs line has only two nodes, it must intersect with the 1d_nwk it provides information for. If a line has more than two nodes, it must be snapped to the 1d_nwk. The tutorial shows both. <br> | Note: If a 1d_xs line has only two nodes, it must intersect with the 1d_nwk it provides information for. If a line has more than two nodes, it must be snapped to the 1d_nwk. The tutorial shows both. <br> | ||
<br> | <br> | ||
− | + | {{Video|name=Animation_M11_002_GIS_07a.mp4|width=1238}}<br> | |
<br> | <br> | ||
</ol> | </ol> | ||
Line 36: | Line 37: | ||
Increment the 1d_nwk layer to remove both culverts contained within the main channel. They are replaced by a bridge (upstream) and bridge and weir (downstream): <br> | Increment the 1d_nwk layer to remove both culverts contained within the main channel. They are replaced by a bridge (upstream) and bridge and weir (downstream): <br> | ||
<ol> | <ol> | ||
− | <li> | + | <li>Load in the '''1d_nwk_M03_culverts_001_L''' layer from '''M11_002.gpkg''', either: |
+ | :*Within the QGIS Browser Panel, navigate to '''M11_002.gpkg''' and double click the layer, or | ||
+ | :*In File Explorer, drag and drop the '''M11_002.gpkg''' into the QGIS workspace and select the layer. | ||
<li>Select the '''1d_nwk_M03_culverts_001_L''' layer in the Layers panel. | <li>Select the '''1d_nwk_M03_culverts_001_L''' layer in the Layers panel. | ||
<li>Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar. | <li>Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar. | ||
− | <li>Manually change the name from '''1d_nwk_''M03''_culverts_''001''_L''' to '''1d_nwk_''M11''_culverts_''002''_L'''. | + | <li>Manually change the name from '''1d_nwk_''M03''_culverts_''001''_L''' to '''1d_nwk_''M11''_culverts_''002''_L'''. Ensure the 'Output Database' is '''M11_002.gpkg'''. |
<li>Select to 'Remove Source Layer from Workspace' and click 'OK'.<br> | <li>Select to 'Remove Source Layer from Workspace' and click 'OK'.<br> | ||
<li>The tool removes the source layer from the Layers panel and the '''1d_nwk_M11_culverts_002_L''' appears. | <li>The tool removes the source layer from the Layers panel and the '''1d_nwk_M11_culverts_002_L''' appears. | ||
Line 47: | Line 50: | ||
<li>Click 'OK' and turn off editing to save the edits.<br> | <li>Click 'OK' and turn off editing to save the edits.<br> | ||
<br> | <br> | ||
− | + | {{Video|name=Animation_M11_GPKG_002_GIS_05.mp4|width=1238}}<br> | |
<br> | <br> | ||
</ol> | </ol> | ||
Line 53: | Line 56: | ||
Increment the code layer to change active and inactive areas at the downstream road where 1D weir is used instead of 2D overtopping: <br> | Increment the code layer to change active and inactive areas at the downstream road where 1D weir is used instead of 2D overtopping: <br> | ||
<ol> | <ol> | ||
− | <li> | + | <li>Load in the '''2d_code_M11_null_creek_001_R''' layer from '''M11_002.gpkg''', either: |
+ | :*Within the QGIS Browser Panel, navigate to '''M11_002.gpkg''' and double click the layer, or | ||
+ | :*In File Explorer, drag and drop the '''M11_002.gpkg''' into the QGIS workspace and select the layer. | ||
<li>Select the '''2d_code_M11_null_creek_001_R''' layer in the Layers panel. | <li>Select the '''2d_code_M11_null_creek_001_R''' layer in the Layers panel. | ||
<li>Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar. | <li>Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar. | ||
− | <li>The tool automatically renames the '''2d_code_M11_null_creek_''001''_R''' to '''2d_code_M11_null_creek_''002''_R'''. | + | <li>The tool automatically renames the '''2d_code_M11_null_creek_''001''_R''' to '''2d_code_M11_null_creek_''002''_R'''. Ensure the 'Output Database' is '''M11_002.gpkg'''. |
<li>Select to 'Remove Source Layer from Workspace' and click 'OK'.<br> | <li>Select to 'Remove Source Layer from Workspace' and click 'OK'.<br> | ||
<li>The tool removes the source layer from the Layers panel and the '''2d_code_M11_null_creek_002_R''' appears. | <li>The tool removes the source layer from the Layers panel and the '''2d_code_M11_null_creek_002_R''' appears. | ||
Line 65: | Line 70: | ||
<li>Click 'OK' and turn off editing to save the edits.<br> | <li>Click 'OK' and turn off editing to save the edits.<br> | ||
<br> | <br> | ||
− | + | {{Video|name=Animation_M11_GPKG_002_GIS_01.mp4|width=1238}}<br> | |
<br> | <br> | ||
</ol> | </ol> | ||
Line 71: | Line 76: | ||
Increment the Z shape layer to change the elevation of the river banks at the downstream road: <br> | Increment the Z shape layer to change the elevation of the river banks at the downstream road: <br> | ||
<ol> | <ol> | ||
− | <li> | + | <li>Load in the '''2d_zsh_M11_hx_001_L''' layer from '''M11_002.gpkg''', either: |
+ | :*Within the QGIS Browser Panel, navigate to '''M11_002.gpkg''' and double click the layer, or | ||
+ | :*In File Explorer, drag and drop the '''M11_002.gpkg''' into the QGIS workspace and select the layer. | ||
<li>Select the '''2d_zsh_M11_hx_001_L''' layer in the Layers panel. | <li>Select the '''2d_zsh_M11_hx_001_L''' layer in the Layers panel. | ||
<li>Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar. | <li>Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar. | ||
− | <li>The tool automatically renames the '''2d_zsh_M11_hx_''001''_L''' to '''2d_zsh_M11_hx_''002''_L'''. | + | <li>The tool automatically renames the '''2d_zsh_M11_hx_''001''_L''' to '''2d_zsh_M11_hx_''002''_L'''. Ensure the 'Output Database' is '''M11_002.gpkg'''. |
<li>Select to 'Remove Source Layer from Workspace' and click 'OK'.<br> | <li>Select to 'Remove Source Layer from Workspace' and click 'OK'.<br> | ||
<li>The tool removes the source layer from the Layers panel and the '''2d_zsh_M11_hx_002_L''' appears. | <li>The tool removes the source layer from the Layers panel and the '''2d_zsh_M11_hx_002_L''' appears. | ||
Line 83: | Line 90: | ||
<li>Click 'OK' and turn off editing to save the edits.<br> | <li>Click 'OK' and turn off editing to save the edits.<br> | ||
<br> | <br> | ||
− | + | {{Video|name=Animation_M11_GPKG_002_GIS_02.mp4|width=1238}}<br> | |
<br> | <br> | ||
</ol> | </ol> | ||
Line 89: | Line 96: | ||
Increment the boundary condition layer to change the HX boundary at the downstream road: <br> | Increment the boundary condition layer to change the HX boundary at the downstream road: <br> | ||
<ol> | <ol> | ||
− | <li> | + | <li>Load in the '''2d_bc_M11_hx_001_L''' layer from '''M11_002.gpkg''', either: |
+ | :*Within the QGIS Browser Panel, navigate to '''M11_002.gpkg''' and double click the layer, or | ||
+ | :*In File Explorer, drag and drop the '''M11_002.gpkg''' into the QGIS workspace and select the layer. | ||
<li>Select the '''2d_bc_M11_hx_001_L''' layer in the Layers panel. | <li>Select the '''2d_bc_M11_hx_001_L''' layer in the Layers panel. | ||
<li>Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar. | <li>Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar. | ||
− | <li>The tool automatically renames the '''2d_bc_M11_hx_''001''_L''' to '''2d_bc_M11_hx_''002''_L'''. | + | <li>The tool automatically renames the '''2d_bc_M11_hx_''001''_L''' to '''2d_bc_M11_hx_''002''_L'''. Ensure the 'Output Database' is '''M11_002.gpkg'''. |
<li>Select to 'Remove Source Layer from Workspace' and click 'OK'.<br> | <li>Select to 'Remove Source Layer from Workspace' and click 'OK'.<br> | ||
<li>The tool removes the source layer from the Layers panel and the '''2d_bc_M11_hx_002_L''' appears. | <li>The tool removes the source layer from the Layers panel and the '''2d_bc_M11_hx_002_L''' appears. | ||
Line 99: | Line 108: | ||
<li>Water from 1D does not transition to 2D at this location anymore, delete the two HX lines intersecting the open channel. The water at the 1D channel node is transferred to the banks by the CN lines, all four CN lines remain:<br> | <li>Water from 1D does not transition to 2D at this location anymore, delete the two HX lines intersecting the open channel. The water at the 1D channel node is transferred to the banks by the CN lines, all four CN lines remain:<br> | ||
<br> | <br> | ||
− | + | {{Video|name=Animation_M11_GPKG_002_GIS_03.mp4|width=1238}}<br> | |
<br> | <br> | ||
<li>Create new HX lines connecting the current HX lines on the banks of the open channel: | <li>Create new HX lines connecting the current HX lines on the banks of the open channel: | ||
<li>Click 'OK' and turn off editing to save the edits.<br> | <li>Click 'OK' and turn off editing to save the edits.<br> | ||
<br> | <br> | ||
− | + | {{Video|name=Animation_M11_GPKG_002_GIS_04.mp4|width=1238}}<br> | |
</ol> | </ol> | ||
<br> | <br> |
Latest revision as of 14:13, 14 August 2023
Introduction
QGIS is used to create, import and view input data.
Method
Set up the GeoPackage Database:
- Navigate to the Module_11\TUFLOW\model\gis folder. Save a copy of M11_001.gpkg as M11_002.gpkg.
Within the QGIS Browser Panel, navigate to the Module_11\Tutorial_Data folder. Drag and drop the following layers into the M11_002.gpkg:
- 1d_nwk_M11_bridges_002_L
- 1d_nwk_M11_weirs_002_L
Within the QGIS Browser Panel, navigate to the Module_11\TUFLOW\model\xs folder. Drag and drop the following layers into the M11_002.gpkg:
- 1d_xs_M11_bridges_002_L
- 1d_xs_M11_weirs_002_L
Investigate the supplied files:
- Open the files, either:
- Within the QGIS Browser Panel, navigate to M11_002.gpkg and double click the layers, or
- In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layers (hold Ctrl to select multiple).
- Use the 'Apply TUFLOW Styles to Open Layers'.
- The 1d_nwk bridge layer represents a bridge in 1D at the upstream and downstream road crossing. Type attribute ‘BB’ is specified, only pier loss and submerged deck loss coefficients are required, all other losses are automatically calculated.
- The 1d_nwk weir layer represents a weir for flow over the bridge in 1D at the downstream road crossing. Type attribute 'W' is specified, the weir is based on the broad crested weir formula:
- Use the TUFLOW Viewer to view the 'HW' (height vs width) cross section of the bridges and 'XZ' (distance vs elevation) cross section of the weir.
Note: If a 1d_xs line has only two nodes, it must intersect with the 1d_nwk it provides information for. If a line has more than two nodes, it must be snapped to the 1d_nwk. The tutorial shows both.
Increment the 1d_nwk layer to remove both culverts contained within the main channel. They are replaced by a bridge (upstream) and bridge and weir (downstream):
- Load in the 1d_nwk_M03_culverts_001_L layer from M11_002.gpkg, either:
- Within the QGIS Browser Panel, navigate to M11_002.gpkg and double click the layer, or
- In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layer.
- Select the 1d_nwk_M03_culverts_001_L layer in the Layers panel.
- Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar.
- Manually change the name from 1d_nwk_M03_culverts_001_L to 1d_nwk_M11_culverts_002_L. Ensure the 'Output Database' is M11_002.gpkg.
- Select to 'Remove Source Layer from Workspace' and click 'OK'.
- The tool removes the source layer from the Layers panel and the 1d_nwk_M11_culverts_002_L appears.
- Use the 'Apply TUFLOW Styles to Open Layers'.
- Right click on the layer to toggle on Editing.
- Open the attribute table and delete both 'R' type culverts.
- Click 'OK' and turn off editing to save the edits.
Increment the code layer to change active and inactive areas at the downstream road where 1D weir is used instead of 2D overtopping:
- Load in the 2d_code_M11_null_creek_001_R layer from M11_002.gpkg, either:
- Within the QGIS Browser Panel, navigate to M11_002.gpkg and double click the layer, or
- In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layer.
- Select the 2d_code_M11_null_creek_001_R layer in the Layers panel.
- Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar.
- The tool automatically renames the 2d_code_M11_null_creek_001_R to 2d_code_M11_null_creek_002_R. Ensure the 'Output Database' is M11_002.gpkg.
- Select to 'Remove Source Layer from Workspace' and click 'OK'.
- The tool removes the source layer from the Layers panel and the 2d_code_M11_null_creek_002_R appears.
- Use the 'Apply TUFLOW Styles to Open Layers'.
- Zoom to the downstream road crossing and right click on the layer to toggle on Editing.
- Click on the 'Add Polygon Feature' tool and draw a polygon snapped to the existing polygons.
- Set the attribute as '0'.
- Click 'OK' and turn off editing to save the edits.
Increment the Z shape layer to change the elevation of the river banks at the downstream road:
- Load in the 2d_zsh_M11_hx_001_L layer from M11_002.gpkg, either:
- Within the QGIS Browser Panel, navigate to M11_002.gpkg and double click the layer, or
- In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layer.
- Select the 2d_zsh_M11_hx_001_L layer in the Layers panel.
- Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar.
- The tool automatically renames the 2d_zsh_M11_hx_001_L to 2d_zsh_M11_hx_002_L. Ensure the 'Output Database' is M11_002.gpkg.
- Select to 'Remove Source Layer from Workspace' and click 'OK'.
- The tool removes the source layer from the Layers panel and the 2d_zsh_M11_hx_002_L appears.
- Use the 'Apply TUFLOW Styles to Open Layers'.
- Zoom to the downstream road crossing and right click on the layer to toggle on Editing.
- Delete the two HX lines that intersect with the creek and digitise two new HX lines joining the existing lines following the bank.
- Set the 'Shape_Option' attribute as 'MAX'.
- Click 'OK' and turn off editing to save the edits.
Increment the boundary condition layer to change the HX boundary at the downstream road:
- Load in the 2d_bc_M11_hx_001_L layer from M11_002.gpkg, either:
- Within the QGIS Browser Panel, navigate to M11_002.gpkg and double click the layer, or
- In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layer.
- Select the 2d_bc_M11_hx_001_L layer in the Layers panel.
- Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar.
- The tool automatically renames the 2d_bc_M11_hx_001_L to 2d_bc_M11_hx_002_L. Ensure the 'Output Database' is M11_002.gpkg.
- Select to 'Remove Source Layer from Workspace' and click 'OK'.
- The tool removes the source layer from the Layers panel and the 2d_bc_M11_hx_002_L appears.
- Use the 'Apply TUFLOW Styles to Open Layers'.
- Zoom to the downstream road crossing and right click on the layer to toggle on Editing.
- Water from 1D does not transition to 2D at this location anymore, delete the two HX lines intersecting the open channel. The water at the 1D channel node is transferred to the banks by the CN lines, all four CN lines remain:
- Create new HX lines connecting the current HX lines on the banks of the open channel:
- Click 'OK' and turn off editing to save the edits.
Conclusion
- Two bridges were set up in 1D replacing two culverts within the open channel. The upstream bridge overtops into the 2D domain, the downstream bridge overtops into a 1D weir.
- The active area, banks elevation and boundary condition layers were updated to model the downstream bridge overtopping in 1D.
Up |
---|
Back to Module 11 Main Page |