XPSWMM to TUFLOW-SWMM: Difference between revisions

Content deleted Content added
Created page with "= Introduction = This Wiki page outlines recommended steps for conversion of an XPSWMM model to TUFLOW. <br> XPSWMM is a flood and urban stormwater drainage modeling software..."
 
Line 262:
</ol>
<li> Click 'Run'. Once the tool is finished, click 'Close'.
<li> The temporary junctions layer, '''Modified junctions layer''', and the new outfalls layer, '''Nodes--Outfalls''', will appear in the QGIS Layers panel.
<li> The temporary '''
:*<li> In the QGIS Layers Panelpanel, select (leftright click) '''Nodes--JunctionsModified junctions layer''', and toggleselect on'Remove editingLayer..'.
<li> In the QGIS Layers panel, select (left click) '''Nodes--Outfalls''' and toggle off editing.
</ol>
<br>
 
To complete the update process, it is necessary to remove the junction nodes from '''Nodes--Junctions''' that coincide with the nodes created in '''Nodes-Outfalls'''. While this can be done manually, the steps below illustrate an automated process using a processing tool.
::* Layer Name: '''Nodes--Outfalls '''
<ol>
 
<li> In the QGIS Layers panel, select (left click) '''Nodes--Junctions''' and toggle on editing.
 
<li> Use the 'Select Features' tool to select all nodes included in the '''Nodes--Junctions''' layer. This will change their color to bright yellow.
<li> to finish this update step we need to delete the existing Nodes--Junctions where the Nodes--Outfalls have been created. If there are a small number of locations, do this manually. Otherwise, here is a QGIS workflow to make the edit.
<li> In the Processing Toolbox, go to 'Vector Selection' and select 'Select within distance'. This opens the dialog shown below.
:*<li>In the QGIS Layers Panel, select (left click) '''Nodes--Junctions''' and toggle on editing.
:* UseSelect thefeatures from: '''Select FeaturesNodes--Junctions''' tool(this tois selectprepopulated allas '''Nodes--Junctions''' inis the layer. The should change colour to a bright yellow whenactive selecteddataset).
::* By comparing to the features from: Click the drop down menu and select '''Nodes--Outfalls'''.
:* Open the '''Select Within Distance''' tool
:* SetWhere the followingfeatures parametersare within: '0.1 meters'
::* Modify current selection by: '''Selectingselecting within current selection'''
::* Select Features from: '''Nodes--Junctions'''
<li> Click 'Run'. Once the tool is finished, click 'Close'.
::*By comparing features from: '''Nodes--Outfalls'''
<li> In the QGIS Layers panel, right click '''Nodes--Junctions''' and select 'Open Attribute Table'.
::* Where features are within: '''0.1 meters'''
<li> In the attributes table, only some of the junction nodes will be selected. Select 'Delete selected features' to delete these nodes. Close the attribute table.
::* Modify current selection by: '''Selecting within current selection'''
<li> Toggle offthe editing foroff '''Node--Junctions''' andto save the layer edits.
:* Delete the Nodes--Junctions that remain selected (highlighted yellow).
<br><br>
 
'''<font color="red"> Video</font>'''
<li> Toggle off editing for '''Node--Junctions''' and save the layer edits.
<br>
<li> The new '''Nodes--Outfalls''' Layer will not load automatically in the current QGIS session. The data exists, it simply isn't displayed. Either load the layer manually, or close and reopen the entire SWMM GeoPackage file (this approach is demonstrated in the video).
</ol>
<br>
'''<font color="red">Video</font>'''
<br>