Difference between revisions of "XPSWMM Conversion Export SWMM HDR"

From Tuflow
Jump to navigation Jump to search
(Created page with "=== Export 1D EPA SWMM Pipe Network Data from XPSWMM === Convert 1D XPSWMM hydraulics features into a EPA SWMM 5 INP file format for TUFLOW: <ol> <li> In XPSWMM, select 'Hydra...")
 
(Blanked the page)
Tag: Blanking
 
Line 1: Line 1:
=== Export 1D EPA SWMM Pipe Network Data from XPSWMM ===
 
Convert 1D XPSWMM hydraulics features into a EPA SWMM 5 INP file format for TUFLOW:
 
<ol>
 
<li> In XPSWMM, select 'Hydraulics Mode' from the toolbar.
 
<br><br>
 
[[File: XPSWMM_to_TUFLOW_toolbar_hydraulics_mode_01a.png|700px]]
 
<br>
 
<li> From the XPSWMM top dropmenu, select File > Import/Export Data > Export to EPASWMM5. The exported INP file will be saved under the same name and in the same folder location as the .xp project file.
 
<li> When prompted to save changes, select 'Yes'.
 
<li> In Windows File Explorer, navigate to the folder containing the .xp project file and rename the exported INP file by adding 'HDR' to the file name. For example, '''1D2D_Urban_001.inp''' > '''1D2D_Urban_HDR_001.inp'''.
 
<li> Copy the renamed INP file into the '''TUFLOW\model\swmm''' folder. From this folder, drag and drop the .inp file into QGIS. This will open the '<u>[[QGIS_SWMM_GeoPackage_Create_from_SWMM_inp |GeoPackage - Create from SWMM inp ]]</u>' tool from the QGIS Processing Toolbox.
 
:* SWMM Input File (inp): Pre-populated
 
:* CRS for GeoPackage: Select and appropriate Coordinate Reference System (CRS) for the model.
 
:* GeoPackage output filename: Prepopulated to save the output GeoPackage file under the same name and in the same folder location as the SWMM input file.
 
<li> Click 'Run'. Once the tool is finished, click 'Close'.
 
<li> A dialog will appear. Select 'Add Layers' to open all vectors within the newly created SWMM GeoPackage file. By default, all items in the available list should have been selected.
 
<li> In the QGIS Layers panel, move the SWMM GeoPackage file to the top of the list. This will ensure the data within this database file is displayed above all other layers in the project.
 
<li> Inspect the attributes associated with the various objects in the GeoPackage to familiarize yourself with the data.
 
<br><br>
 
{{Video|name=Animation_XPtoTUFLOW_1D_model_01a.mp4|width=1350}}
 
<br>
 
</ol>
 
  
The process above has created a '''Nodes--Junctions''' layer, containing all the model nodes. In the <u>[[#Convert_XPSWMM_Model_to_Recommended_TUFLOW_Structure | Convert XPSWMM Model to Recommended TUFLOW Structure]]</u> section, an improperly formatted layer of the same nodes was generated from XPSWMM. To prevent future errors, this layer should be removed from the QGIS workspace and deleted from its GeoPackage.
 
<ol>
 
<li> In the QGIS Layers panel, open the tbc group (i.e. '''1D2D_Urban_001.tbc'''). Right click the 2d_bc points layer and select 'Remove Layer...'.
 
<li> From the top dropdown menu options, select View > Panels. Tick on 'Browser Panel'.
 
<li> In the QGIS Browser panel, navigate to the '''TUFLOW\model\gis''' folder and open the GeoPackage layer tree.<br>
 
:'''Note:''' Within the QGIS Browser panel, there is a dropdown directory, 'Project Home'. This directory is a shortcut to the location where the QGIS workspace is saved.
 
<li> Right click 2d_bc points layer (i.e.'''1D2D_Urban_001_2d_bc_P''') and select Manage > Delete Layer.
 
<br><br>
 
{{Video|name=|width=1350}}
 
<br>
 
</ol>
 

Latest revision as of 11:09, 15 February 2024