Difference between revisions of "Tutorial M10 001 GIS Inputs QGIS GPKG"
Jump to navigation
Jump to search
(Created page with "= Introduction = QGIS is used to create, import and view input data.<br> <br> = TUFLOW Project Re-Configuration = Re-configure the TUFLOW project to use and save empty files...") |
|||
(16 intermediate revisions by 3 users not shown) | |||
Line 11: | Line 11: | ||
<li>Click 'OK' and save the QGIS workspace by selecting Project > Save As.<br> | <li>Click 'OK' and save the QGIS workspace by selecting Project > Save As.<br> | ||
<br> | <br> | ||
− | [[File: | + | [[File:M10_GPKG_ConfigureProject.PNG]]<br><br> |
<li>Set the QGIS workspace projection to EPSG:32760, see <u>[https://wiki.tuflow.com/index.php?title=Tutorial_Site_Familiarisation_QGIS#Set_the_Projection Set the Projection]</u>. | <li>Set the QGIS workspace projection to EPSG:32760, see <u>[https://wiki.tuflow.com/index.php?title=Tutorial_Site_Familiarisation_QGIS#Set_the_Projection Set the Projection]</u>. | ||
</ol> | </ol> | ||
Line 17: | Line 17: | ||
= Method = | = Method = | ||
− | Navigate to the '''Module_10\ | + | Set up the GeoPackage Database: |
− | :*2d_zsh_M10_damwall_001_L | + | <ol> |
− | :*2d_vzsh_M10_dambreak_001_R | + | <li>Navigate to the '''Module_10\TUFLOW\model\gis''' folder. Save a copy of '''M02_001.gpkg''' as '''M10_001.gpkg'''. |
− | :*2d_iwl_M10_001_R | + | <li>Within the QGIS Browser Panel, right click on 'Favorites' and select 'Add a Directory...'. |
− | :*2d_sa_M10_inflow_001_R | + | <li>Navigate to the '''Module_10''' folder and select it. |
+ | </ol> | ||
+ | |||
+ | Within the QGIS Browser Panel, navigate to the '''Module_10\Tutorial_Data''' folder. Drag and drop the following layers from their separate databases into the '''M10_001.gpkg''' database: <br> | ||
+ | :*'''2d_zsh_M10_damwall_001_L''' | ||
+ | :*'''2d_vzsh_M10_dambreak_001_R''' | ||
+ | :*'''2d_iwl_M10_001_R''' | ||
+ | :*'''2d_sa_M10_inflow_001_R''' | ||
Investigate the supplied files: | Investigate the supplied files: | ||
<ol> | <ol> | ||
− | <li>Open the files, either:<br> | + | <li>Open the files, either: <br> |
− | :* | + | :*Within the QGIS Browser Panel, navigate to '''M10_001.gpkg''' and double click the layers, or |
− | :* | + | :*In File Explorer, drag and drop the '''M10_001.gpkg''' into the QGIS workspace and select the layers (hold Ctrl to select multiple). |
<li>The 2d_zsh line layer represents the dam wall: | <li>The 2d_zsh line layer represents the dam wall: | ||
:*A ‘Z’ attribute of 65 is specified, the elevations are set to 65 metres along the length of the line. | :*A ‘Z’ attribute of 65 is specified, the elevations are set to 65 metres along the length of the line. | ||
:*The line has the same Shape_Width as the cell size, this is a thick breakline modifying whole cells. | :*The line has the same Shape_Width as the cell size, this is a thick breakline modifying whole cells. | ||
<br> | <br> | ||
− | + | {{Video|name=Animation_M10_GPKG_001_GIS_01.mp4|width=1238}}<br> | |
<br> | <br> | ||
<li>The 2d_vzsh polygon layer represents the location of the dam break: | <li>The 2d_vzsh polygon layer represents the location of the dam break: | ||
Line 38: | Line 45: | ||
:*Trigger_Value sets the simulation time in hours that the dam break is to commence. A value of 1 indicates the dam break begins at 1 hour. | :*Trigger_Value sets the simulation time in hours that the dam break is to commence. A value of 1 indicates the dam break begins at 1 hour. | ||
:*Period sets the time in hours over which the change in elevation occurs. A value of 0.25 sets a period of 15 minutes replicating the break. | :*Period sets the time in hours over which the change in elevation occurs. A value of 0.25 sets a period of 15 minutes replicating the break. | ||
− | For more information, | + | For more information, refer to the <u>[https://docs.tuflow.com/classic-hpc/manual/latest/ TUFLOW Manual]</u>.<br> |
<br> | <br> | ||
− | + | {{Video|name=Animation_M10_GPKG_001_GIS_02.mp4|width=1238}}<br> | |
<br> | <br> | ||
<li>The 2d_iwl polygon layer represents the initial water level of the dam as 59m at all cells within the polygon.<br> | <li>The 2d_iwl polygon layer represents the initial water level of the dam as 59m at all cells within the polygon.<br> | ||
<br> | <br> | ||
− | + | {{Video|name=Animation_M10_GPKG_001_GIS_03.mp4|width=1238}}<br> | |
<br> | <br> | ||
Line 50: | Line 57: | ||
<li>Select the '''2d_sa_M10_inflow_001_R''' in the Layers panel and use the 'Apply TUFLOW Styles to Current Layer' tool.<br> | <li>Select the '''2d_sa_M10_inflow_001_R''' in the Layers panel and use the 'Apply TUFLOW Styles to Current Layer' tool.<br> | ||
<br> | <br> | ||
− | + | {{Video|name=Animation_M10_GPKG_001_GIS_04.mp4|width=1238}}<br> | |
<br> | <br> | ||
</ol> | </ol> | ||
Increment the 2d_bc layer from Module 01 and remove the upstream inflow: | Increment the 2d_bc layer from Module 01 and remove the upstream inflow: | ||
− | <ol><li> | + | <ol> |
+ | <li>Load in the '''2d_bc_M01_001_L''' layer from '''M10_001.gpkg''', either: | ||
+ | :*Within the QGIS Browser Panel, navigate to '''M10_001.gpkg''' and double click the layer, or | ||
+ | :*In File Explorer, drag and drop the '''M10_001.gpkg''' into the QGIS Workspace and select the layer. | ||
<li>Select the '''2d_bc_M01_001_L''' layer in the Layers panel. | <li>Select the '''2d_bc_M01_001_L''' layer in the Layers panel. | ||
<li>Use the 'Apply TUFLOW Styles to Current Layer' tool. | <li>Use the 'Apply TUFLOW Styles to Current Layer' tool. | ||
<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> | + | <li>Within the 'Increment Selected Layer' tool window: |
− | + | :*Ensure the 'Output Database' is '''M10_001.gpkg'''. | |
− | + | :*Ensure the 'Output Layer Name' is '''2d_bc_M10_001_L'''. | |
+ | :*Select 'Remove Source Layer from Workspace'. | ||
+ | :*Select 'Increment Layer only' and click 'OK'. | ||
+ | The tool removes the source layer from the Layers panel and the '''2d_bc_M10_001_L''' appears.<br> | ||
+ | See <u>[[QGIS TUFLOW Increment Layer | Increment Layer Tool]]</u> for more information. | ||
<li>Right click on the '''2d_bc_M10_001_L''' layer to toggle on Editing. | <li>Right click on the '''2d_bc_M10_001_L''' layer to toggle on Editing. | ||
<li>Zoom to the upstream inflow, select and delete the line. | <li>Zoom to the upstream inflow, select and delete the line. | ||
<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_M10_GPKG_001_GIS_05a.mp4|width=1238}}<br> | |
</ol> | </ol> | ||
<br> | <br> |
Latest revision as of 10:07, 23 September 2024
Introduction
QGIS is used to create, import and view input data.
TUFLOW Project Re-Configuration
Re-configure the TUFLOW project to use and save empty files to the correct folder:
- Go to Plugins > TUFLOW > Editing > Configure / Create TUFLOW Project.
- Change the folder which contains TUFLOW to the Module_10 folder. This is the only change required, the model folder structure and template empty files are supplied from previous model.
Note: The 'results' and 'check' folder get automatically created when the TUFLOW model is run.
- Click 'OK' and save the QGIS workspace by selecting Project > Save As.
- Set the QGIS workspace projection to EPSG:32760, see Set the Projection.
Method
Set up the GeoPackage Database:
- Navigate to the Module_10\TUFLOW\model\gis folder. Save a copy of M02_001.gpkg as M10_001.gpkg.
- Within the QGIS Browser Panel, right click on 'Favorites' and select 'Add a Directory...'.
- Navigate to the Module_10 folder and select it.
Within the QGIS Browser Panel, navigate to the Module_10\Tutorial_Data folder. Drag and drop the following layers from their separate databases into the M10_001.gpkg database:
- 2d_zsh_M10_damwall_001_L
- 2d_vzsh_M10_dambreak_001_R
- 2d_iwl_M10_001_R
- 2d_sa_M10_inflow_001_R
Investigate the supplied files:
- Open the files, either:
- Within the QGIS Browser Panel, navigate to M10_001.gpkg and double click the layers, or
- In File Explorer, drag and drop the M10_001.gpkg into the QGIS workspace and select the layers (hold Ctrl to select multiple).
- The 2d_zsh line layer represents the dam wall:
- A ‘Z’ attribute of 65 is specified, the elevations are set to 65 metres along the length of the line.
- The line has the same Shape_Width as the cell size, this is a thick breakline modifying whole cells.
- The 2d_vzsh polygon layer represents the location of the dam break:
- Shape_Width_or_dMax set to less than zero indicates that the vertices along the perimeter of the polygon are used to interpolate elevations.
- Trigger_Value sets the simulation time in hours that the dam break is to commence. A value of 1 indicates the dam break begins at 1 hour.
- Period sets the time in hours over which the change in elevation occurs. A value of 0.25 sets a period of 15 minutes replicating the break.
- The 2d_iwl polygon layer represents the initial water level of the dam as 59m at all cells within the polygon.
- The 2d_sa layer replaces the 2d_bc QT type introduced in Module 1. A 2d_sa inflow is typically more stable in situations of fast model changes, for example, dam breaks.
- Select the 2d_sa_M10_inflow_001_R in the Layers panel and use the 'Apply TUFLOW Styles to Current Layer' tool.
Increment the 2d_bc layer from Module 01 and remove the upstream inflow:
- Load in the 2d_bc_M01_001_L layer from M10_001.gpkg, either:
- Within the QGIS Browser Panel, navigate to M10_001.gpkg and double click the layer, or
- In File Explorer, drag and drop the M10_001.gpkg into the QGIS Workspace and select the layer.
- Select the 2d_bc_M01_001_L layer in the Layers panel.
- Use the 'Apply TUFLOW Styles to Current Layer' tool.
- Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar.
- Within the 'Increment Selected Layer' tool window:
- Ensure the 'Output Database' is M10_001.gpkg.
- Ensure the 'Output Layer Name' is 2d_bc_M10_001_L.
- Select 'Remove Source Layer from Workspace'.
- Select 'Increment Layer only' and click 'OK'.
See Increment Layer Tool for more information. - Right click on the 2d_bc_M10_001_L layer to toggle on Editing.
- Zoom to the upstream inflow, select and delete the line.
- Click 'OK' and turn off editing to save the edits.
Conclusion
- A 2d_zsh layer was checked to enforce a dam wall in the model.
- A 2d_vzsh layer was inspected to simulate a break in the dam wall.
- A 2d_iwl layer was reviewed setting the initial water level within the dam upstream of the dam wall.
- The original upstream inflow was removed from the model, replaced by a source area boundary.
Up |
---|
Back to Module 10 Main Page |