Difference between revisions of "XPSWMM Conversion Export SWMM Pipe Network Data"
Jump to navigation
Jump to search
Chris Huxley (talk | contribs) |
Chris Huxley (talk | contribs) |
||
Line 14: | Line 14: | ||
:* GeoPackage output filename: This field should be prefilled to save the output GeoPackage file using the same name and in the same folder location as the SWMM input file. | :* GeoPackage output filename: This field should be prefilled to save the output GeoPackage file using the same name and in the same folder location as the SWMM input file. | ||
<li> Click 'Run'. After the tool is finished, click 'Close'. | <li> Click 'Run'. After 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> 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. Within the "Options" section, make sure "Add layers to group" is 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> 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 layer objects and associated attributes in the GeoPackage database to familiarize yourself with the data. | <li> Inspect the layer objects and associated attributes in the GeoPackage database to familiarize yourself with the data. |
Revision as of 08:59, 19 February 2024
Export 1D EPA SWMM Pipe Network Data from XPSWMM
We will now export 1D XPSWMM hydraulics features into an EPA SWMM 5 INP file format,and configure the dataset for TUFLOW:
- In XPSWMM, select 'Hydraulics Mode' from the toolbar.
- From the XPSWMM top dropmenu, select File > Import/Export Data > Export to EPASWMM5. The exported file will have a .inp extension and will be saved with the same name and in the same folder location as the XPSWMM .xp project file.
- When prompted to save changes, select 'Yes'.
- In Windows File Explorer, navigate to the folder containing the XPSWMM project folder and rename the exported INP file by adding 'HDR' to the file name. For example, 1D2D_Urban_001.inp becomes 1D2D_Urban_HDR_001.inp.
- 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 'GeoPackage - Create from SWMM inp ' tool from the QGIS Processing Toolbox.
- SWMM Input File (inp): Pre-populated
- CRS for GeoPackage: Select the appropriate Coordinate Reference System (CRS) for the model.
- GeoPackage output filename: This field should be prefilled to save the output GeoPackage file using the same name and in the same folder location as the SWMM input file.
- Click 'Run'. After the tool is finished, click 'Close'.
- 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. Within the "Options" section, make sure "Add layers to group" is selected.
- 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.
- Inspect the layer objects and associated attributes in the GeoPackage database to familiarize yourself with the data.
The process above has created a Nodes--Junctions layer, containing all the model nodes. During the previous Convert XPSWMM Model to Recommended TUFLOW Structure section, an improperly formatted layer of the same nodes was generated from XPSWMM. To prevent future errors or confusion, this layer should be removed from the QGIS workspace and deleted from its GeoPackage.
- In the QGIS Layers panel, open the tbc group (e.g. 1D2D_Urban_001.tbc). Right click the 2d_bc points layer and select 'Remove Layer...'.
- From the top dropdown menu options, select View > Panels. Tick on 'Browser Panel'.
- In the QGIS Browser panel, navigate to the TUFLOW\model\gis folder and open the GeoPackage layer tree.
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. If you have not saved the QGIS project before now, this option will not be available. You can however achieve the same result by expanding the file path tree in the Browser Panel. - Right click 2d_bc points layer (i.e.1D2D_Urban_001_2d_bc_P) and select Manage > Delete Layer.
Up |
---|
Continue to Next Step: "Configure 1D EPA SWMM Pipe Network Data" |
Up |
---|
Back to Main XPSWMM to TUFLOW Conversion Page |