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

From Tuflow
Jump to navigation Jump to search
Line 27: Line 27:
 
:*Within the QGIS Browser Panel, navigate to '''M07_001.gpkg''' and double click the layer, or
 
:*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.
 
:*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'.
+
:*Select 'Apply TUFLOW Styles to Open Layers'.
  
 
Create quadtree nesting layer: <br>
 
Create quadtree nesting layer: <br>

Revision as of 14:13, 7 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.
  • Select '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.

    Animation M07 GPKG GIS 01.gif

Conclusion

  • A 2d_qnl layer was digitised surrounding the creek.


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