Difference between revisions of "XPSWMM Conversion Load TUFLOW Model"

From Tuflow
Jump to navigation Jump to search
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Load the TUFLOW model in QGIS ==
 
== Load the TUFLOW model in QGIS ==
 
<ol>
 
<ol>
<li> Click on the ‘Load TUFLOW Layers from TCF’ symbol from the TUFLOW Plugin toolbar.
+
<li> Click on the ‘Load TUFLOW Layers from TCF’ symbol from the QGIS TUFLOW Plugin toolbar.
 
<br>
 
<br>
 
[[File: Tuflow_plugin_load_tcf_layers.png]]<br>
 
[[File: Tuflow_plugin_load_tcf_layers.png]]<br>
 
<br>
 
<br>
<li> Go to the location of the TUFLOW model and navigate to the '''TUFLOW\runs''' folder. Select the TCF.
+
<li> Navigate to the location of the TUFLOW model and go to the '''TUFLOW\runs''' folder. Select the TCF.
 
<li> In the Load Layers window, select:
 
<li> In the Load Layers window, select:
 
* Ordering Options: Alphabetical
 
* Ordering Options: Alphabetical
 
* Grouping Options: Group by control file
 
* Grouping Options: Group by control file
 
* Raster Load Options: Load Normally  
 
* Raster Load Options: Load Normally  
<li> Click ‘Open’ and ‘OK’.
+
<li> Click ‘Open’ and ‘OK’.<br>
 +
You will receive a message stating that there is an error importing the Projection .mif file. Ignore this message and close the pop-up. The file will not be used in the new TUFLOW model.
 
<br><br>
 
<br><br>
{{Video|name=Animation_XPtoTUFLOW_2D_model_04a.mp4|width=1350}}
+
{{Video|name=Animation_XPtoTUFLOW_2D_model_05e.mp4|width=1350}}
 
<br>
 
<br>
 
</ol>
 
</ol>
  
 
== Style the Layers ==
 
== Style the Layers ==
Styling can be done in many ways, however common steps to do this are:
+
Styling can be done in many ways. We will change display symbology of the DTM dataset:
 
<ol>
 
<ol>
<li>Click on the ‘Apply TUFLOW Styles to Open Layers’ symbol from the TUFLOW Plugin toolbar.
+
<li> In the QGIS Layers panel, click the tick box next to the '''2d_bc_code''' and '''2d_iwl_R''' layers so the underlying DTM dataset can be viewed.
<br>
+
<li> Right click on the DTM Grid file and select 'Properties'.
[[File:tuflow_plugin_styles_open_layers.png]]<br>
 
<br>
 
<li>Create a hillshade of the DEM:
 
* In the QGIS Layers panel, right click on the Grid file and select 'Rename Layer'. Rename the layer to include 'Hillshade' in the filename. For example, '''1D2D_Urban_Grid_copy''' > '''1D2D_Urban_Grid_Hillshade'''.
 
* Right click on the Hillshade and select 'Properties'.
 
 
* In the Symbology tab, under 'Band Rendering' select the following options:
 
* In the Symbology tab, under 'Band Rendering' select the following options:
 
:* Render type: Hillshade
 
:* Render type: Hillshade
 
:* Z Factor: 3
 
:* Z Factor: 3
* In the Transparency tab, set the 'Global Opacity' to 75%.
 
 
* Click 'Apply' and 'OK'.
 
* Click 'Apply' and 'OK'.
 
<br>
 
<br>
{{Video|name=Animation_XPtoTUFLOW_2D_model_06a.mp4|width=1350}}
+
{{Video|name=Animation_XPtoTUFLOW_2D_model_06e.mp4|width=1350}}
 
<br>
 
<br>
 
</ol>
 
</ol>
Line 44: Line 39:
  
 
{{Tips Navigation
 
{{Tips Navigation
|uplink=[[XPSWMM_to_TUFLOW-SWMM#Two_Dimensional_(2D)_Model_Elements| Back to XPSWMM to TUFLOW Conversion Page]]
+
|uplink=[[XPSWMM_to_TUFLOW-SWMM#One_Dimensional_(1D)_SWMM_Model_Elements| Continue to One Dimensional (1D) SWMM Model Elements Section]]
 
}}
 
}}

Latest revision as of 10:41, 1 March 2024

Load the TUFLOW model in QGIS

  1. Click on the ‘Load TUFLOW Layers from TCF’ symbol from the QGIS TUFLOW Plugin toolbar.
    Tuflow plugin load tcf layers.png

  2. Navigate to the location of the TUFLOW model and go to the TUFLOW\runs folder. Select the TCF.
  3. In the Load Layers window, select:
    • Ordering Options: Alphabetical
    • Grouping Options: Group by control file
    • Raster Load Options: Load Normally
  4. Click ‘Open’ and ‘OK’.
    You will receive a message stating that there is an error importing the Projection .mif file. Ignore this message and close the pop-up. The file will not be used in the new TUFLOW model.


Style the Layers

Styling can be done in many ways. We will change display symbology of the DTM dataset:

  1. In the QGIS Layers panel, click the tick box next to the 2d_bc_code and 2d_iwl_R layers so the underlying DTM dataset can be viewed.
  2. Right click on the DTM Grid file and select 'Properties'.
    • In the Symbology tab, under 'Band Rendering' select the following options:
    • Render type: Hillshade
    • Z Factor: 3
    • Click 'Apply' and 'OK'.


Save the QGIS Workspace

  1. From the top dropdown menu options, go to Project > Save As.
  2. Navigate to the file location containing the TUFLOW folder and save the workspace with the extension, .qgz.


Up
Go-up.png Continue to One Dimensional (1D) SWMM Model Elements Section