|
= SWMM Inputs =
==Update SWMM GeoPackage Spatial Database==
In previous tutorials we have created new SWMM GeoPackage databases for our new entries. This tutorial will demonstrate a different update approach. Instead of creating a new SWMM GeoPackage database, we will update anthe existing database, ('''sw03_001).gpkg''' by adding new SWMM Sections for the hydrology elements we will be incorporating into the model in this tutorial.
<ol>
<li>Go to '''Processing > Toolbox''' from the top dropdown menu options to open the Processing Toolbox Panel.
<li>Go to '''TUFLOW > SWMM''' in the processing tool list and select '<u>[[QGIS_SWMM_GeoPackage_Add_Sections |GeoPackage - Add Sectionssections]]</u>'. This opens the dialog shown below.
: *GPKG filename modify: Click the ... and navigate to the '''TUFLOW_SWMM_Module_03\TUFLOW\model\swmm \''' folder. Select '''sw03_001.gpkg''' .▼
<li>Select the following:
: *CRS for GeoPackage: ''Click the drop down menu and select 'Project CRS: EPSG:32760 - WGS 84 / UTM zone 60S '''. ▼
▲: GPKG filename modify: '''TUFLOW_SWMM_Module_03\TUFLOW\model\swmm\sw03_001.gpkg'''
:*SWMM Sections to add: Click the ..., and tick on:
▲: CRS for GeoPackage: '''Project CRS: EPSG:32760 - WGS 84 / UTM zone 60S'''.
: SWMM Sections to add: *'''Hydrology--Raingages''', '''Hydrology--Subcatchments'''
::*'''Hydrology--Subcatchments'''
<li>Click 'Run'.
{{Video|name=|width=1235}}
</ol>
'''<<Video>>'''
The above steps have added the new Sectionssections to the SWMM GeoPackage database, '''sw03_001.gpkg'''. TheHowever, the new additonal sections however are not currently displayed in the QGIS layersLayers panelPanel. We need to close the database and reopen it to view the changechanges.
<ol>
<li>In Rightthe QGIS Layers Panel, right click '''sw03_001''' in the QGIS layer panel and select '''Remove Group...'''.
<li> In File Explorer, navigate to the '''TUFLOW\model\swmm''' folder and drag and drop '''sw03_001.gpkg''' into QGIS.
<li> When prompted by QGIS, under 'Options', tick on 'Add layers to group', then select 'Add Layers' to open all vectors within '''sw03_001.gpkg'''. By default, all items in the available list should have been selected.
<li> In the QGIS Layers panelPanel, move '''sw03_001.gpkg''' to the top of the list. This will ensure the data within this database file is displayed above all other layers in the project when we are making edits.
{{Video|name=|width=1235}}
<br>
</ol>
'''<<Video>>'''
== SWMM GIS Data Entry ==
|