Difference between revisions of "Tutorial M07 GIS Inputs QGIS GPKG"

From Tuflow
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 17: Line 17:
  
 
= Method =
 
= Method =
Navigate to the '''Module_07\TUFLOW\model\gis''' folder:
+
Setup the GeoPackage Database:
:*Drag and drop the '''2d_code_M01_001_R.shp''' file into the workspace, or  
+
<ol>
:*Select Layer > Add layer > Add Vector Layer and navigate to the ''' Module_07\TUFLOW\model\gis''' folder.
+
<li>Navigate to the '''Module_07\TUFLOW\model\gis''' folder. Save a copy of '''M02_001.gpkg''' as '''M07_001.gpkg'''.
 +
<li>Within the QGIS Browser Panel, right click on 'Favorites' and select 'Add a Directory...'.
 +
<li>Navigate to the '''Module_07''' folder and select it.
 +
</ol>
 +
 
 +
Open the '''2d_code_M01_001_R''' file, either: <br>
 +
:*Within the QGIS Browser Panel, navigate to '''M07_001.gpkg''' and double click the layer, or
 +
:*In File Explorer, drag and drop the '''M07_001.gpkg''' into the QGIS workspace and select the layer.
 
:*Use the 'Apply TUFLOW Styles to Open Layers'.
 
:*Use the 'Apply TUFLOW Styles to Open Layers'.
  
 
Create quadtree nesting layer: <br>
 
Create quadtree nesting layer: <br>
 
<ol>
 
<ol>
<li>Click on the ‘Import Empty File’ symbol from the TUFLOW Plugin toolbar.
+
<li>Click on the ‘Import Empty File’ symbol from the TUFLOW plugin toolbar.
 
<li>Select '2d_qnl' from the Empty Type list.
 
<li>Select '2d_qnl' from the Empty Type list.
 
<li>In the Run ID box write 'M07_001'.
 
<li>In the Run ID box write 'M07_001'.
<li>Tick the 'Regions' Geometry Type and hit 'OK'. The 2d_qnl (quadtree nesting layer) file appears in the Layers panel.  
+
<li>Tick the 'Regions' Geometry Type.
 +
<li>In the Spatial Database Options, select 'All to one'. Navigate to the '''Module_07/TUFLOW/model/gis''' folder and select '''M07_001.gpkg'''. Click Save and hit 'OK'.
 +
<li>The 2d_qnl (quadtree nesting layer) appears in the QGIS Layers Panel.
 
<li>Right click on the '''2d_qnl_M07_001_R''' and toggle on Editing.  
 
<li>Right click on the '''2d_qnl_M07_001_R''' and toggle on Editing.  
 
<li>Select 'Add Polygon Feature' and digitise a polygon around the creek.
 
<li>Select 'Add Polygon Feature' and digitise a polygon around the creek.
Line 33: Line 42:
 
<li>Turn off editing to save the edits.<br>
 
<li>Turn off editing to save the edits.<br>
 
<br>
 
<br>
[[File:Animation M07 GIS 01a.gif]]<br>
+
{{Video|name=Animation_M07_GPKG_GIS_01.mp4|width=1269}}<br>
 
<br>
 
<br>
 
</ol>
 
</ol>

Latest revision as of 13:32, 14 August 2023

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:

  1. Go to Plugins > TUFLOW > Editing > Configure / Create TUFLOW Project.
  2. Change the folder which contains TUFLOW to the Module_07 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.
  3. Click 'OK' and save the QGIS workspace by selecting Project > Save As.

    M07 GPKG ConfigureProject.PNG

  4. Set the QGIS workspace projection to EPSG:32760, see Set the Projection.


Method

Setup the GeoPackage Database:

  1. Navigate to the Module_07\TUFLOW\model\gis folder. Save a copy of M02_001.gpkg as M07_001.gpkg.
  2. Within the QGIS Browser Panel, right click on 'Favorites' and select 'Add a Directory...'.
  3. Navigate to the Module_07 folder and select it.

Open the 2d_code_M01_001_R file, either:

  • Within the QGIS Browser Panel, navigate to M07_001.gpkg and double click the layer, or
  • In File Explorer, drag and drop the M07_001.gpkg into the QGIS workspace and select the layer.
  • Use the 'Apply TUFLOW Styles to Open Layers'.

Create quadtree nesting layer:

  1. Click on the ‘Import Empty File’ symbol from the TUFLOW plugin toolbar.
  2. Select '2d_qnl' from the Empty Type list.
  3. In the Run ID box write 'M07_001'.
  4. Tick the 'Regions' Geometry Type.
  5. In the Spatial Database Options, select 'All to one'. Navigate to the Module_07/TUFLOW/model/gis folder and select M07_001.gpkg. Click Save and hit 'OK'.
  6. The 2d_qnl (quadtree nesting layer) appears in the QGIS Layers Panel.
  7. Right click on the 2d_qnl_M07_001_R and toggle on Editing.
  8. Select 'Add Polygon Feature' and digitise a polygon around the creek.
  9. Terminate the polygon by right clicking and write '2' into the 'Nest_Level' attribute.
  10. Turn off editing to save the edits.



Conclusion

  • A 2d_qnl layer was digitised surrounding the creek.


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