Difference between revisions of "1D Integrity Tool - Tutorial"
Tuflowduncan (talk | contribs) |
Tuflowduncan (talk | contribs) |
||
Line 14: | Line 14: | ||
<ol> | <ol> | ||
− | + | 1. Firstly download the tutorial dataset from the following link and unzip the dataset.<br> | |
− | + | 2. From the '''Integrity_Tool_Tutorial\Datafolder''' load the '''1d_nwk_MI01_Pipes_001_L.shp''' , '''1d_nwk_MI01_Pipes_001_L.shp''' and '''dem_DEV_EG07''' into QGIS.<br> | |
− | + | 3. Review the dataset and use the [[QGIS TUFLOW Styles | ‘Apply TUFLOW Styles to open layers’]] tool, [[File:Check files open.png||30px]], to theme the data.<br> | |
[[File:Sub-surface drainage overview.png]]<br> | [[File:Sub-surface drainage overview.png]]<br> | ||
− | + | </ol> | |
This is a small sub-surface drainage network model. This example will showcase use of the tools to check the integrity of such a dataset, however the tool really comes into it’s own when assessing much larger datasets where checking things manually would be a time-consuming task.<br> | This is a small sub-surface drainage network model. This example will showcase use of the tools to check the integrity of such a dataset, however the tool really comes into it’s own when assessing much larger datasets where checking things manually would be a time-consuming task.<br> | ||
− | < | + | <ol> |
+ | 4. From the TUFLOW plugin, open the 1D Integrity tool.<br> | ||
[[File: integrity_tool_in_toolbar.PNG]].<br> | [[File: integrity_tool_in_toolbar.PNG]].<br> | ||
− | + | </ol> | |
The resulting dialogue will pop up. The numbered fields are described below.<br> | The resulting dialogue will pop up. The numbered fields are described below.<br> | ||
− | + | <ol> | |
[[File:integrity_tool_overview.PNG]]<br> | [[File:integrity_tool_overview.PNG]]<br> | ||
<br> | <br> | ||
Line 36: | Line 37: | ||
*'''7. Run''' - runs the currently active tool (active tool determined by the current active tool tab - prior to plugin version 3.2 a radio button was used to select the active tool).<br> | *'''7. Run''' - runs the currently active tool (active tool determined by the current active tool tab - prior to plugin version 3.2 a radio button was used to select the active tool).<br> | ||
<br> | <br> | ||
− | + | ||
+ | 5. Within the Input Network Lines tool, select the '''1d_nwk_MI01_Pipes_001_L.shp''' in the dropdown menu and click the ‘+’ icon to add the '''1d_nwk_MI01_Pipes_001_L.shp''' to the list of 1D network lines as below.<br> | ||
[[File:Input Network Lines.png]]<br> | [[File:Input Network Lines.png]]<br> | ||
+ | </ol> | ||
This means we will be undertaking the integrity tests on this layer. We could also use the integrity tools on point layers and/or cross-section/Height/Width tables but for the purpose of this demonstration we will only use the network line layers. | This means we will be undertaking the integrity tests on this layer. We could also use the integrity tools on point layers and/or cross-section/Height/Width tables but for the purpose of this demonstration we will only use the network line layers. | ||
− | |||
=1D integrity Tool= | =1D integrity Tool= |
Revision as of 21:24, 8 April 2022
Introduction
The 1D Integrity Tool is a suite of tools that help modellers find and fix potential errors in 1D networks prior to running TUFLOW. The tool was primarily designed for sub-surface pipe drainage networks, but can be used for all 1D channel types, however not all checks will be available. The tool is designed to be fast and provide automated fixes as well as visualisations to help the process. The 1D Integrity Tool is a free tool that comes as part of the TUFLOW plugin in QGIS.
The 1D Integrity tool is designed to accept multiple inputs and will treat all inputs holistically as a complete system. Each tool is designed to be run separately and progressively as part of the entire tool suite. It is assumed that most of the channel attribute data has been populated, most importantly that each channel has been given a valid type.
The following exercises will take the user through the various tools using a pipe drainage network which contains a number of common errors which are found in these types of datasets.
Loading the Data
-
1. Firstly download the tutorial dataset from the following link and unzip the dataset.
2. From the Integrity_Tool_Tutorial\Datafolder load the 1d_nwk_MI01_Pipes_001_L.shp , 1d_nwk_MI01_Pipes_001_L.shp and dem_DEV_EG07 into QGIS.
3. Review the dataset and use the ‘Apply TUFLOW Styles to open layers’ tool, , to theme the data.
This is a small sub-surface drainage network model. This example will showcase use of the tools to check the integrity of such a dataset, however the tool really comes into it’s own when assessing much larger datasets where checking things manually would be a time-consuming task.
The resulting dialogue will pop up. The numbered fields are described below.
- 1. Input Network Lines - input location of 1d_nwk lines such as pipes, culverts, and open channels. Use dropdown box and '+' button to add layers as inputs to tool.
- 2. Input Network Points - input location of 1d_nwk points such as pits and nodes. Use dropdown box and '+' button to add layers as inputs to tool.
- 3. Input Tables - input location of 1d_ta lines such as 1d_xs, 1d_cs, and 1d_hw. Use dropdown box and '+' button to add layers as inputs to tool.
- 4. Input DEM - input raster. Currently only 1 input is supported, so if you are using tiled rasters datasets, they would need to be mosaiced into a single raster prior to running the tool.
- 5. Tool Selection - the active tab will determine the active tool. Prior to plugin version 3.2 a radio button was used to select the active tool. See Tool Documentation for information on each tool.
- 6. Status Bar - contains the progress bar and status of the integrity tool. Includes information such as the current active task being performed (if one of the tools is running), and the status of the previously run tool.
- 7. Run - runs the currently active tool (active tool determined by the current active tool tab - prior to plugin version 3.2 a radio button was used to select the active tool).
5. Within the Input Network Lines tool, select the 1d_nwk_MI01_Pipes_001_L.shp in the dropdown menu and click the ‘+’ icon to add the 1d_nwk_MI01_Pipes_001_L.shp to the list of 1D network lines as below.
This means we will be undertaking the integrity tests on this layer. We could also use the integrity tools on point layers and/or cross-section/Height/Width tables but for the purpose of this demonstration we will only use the network line layers.
1D integrity Tool
Empty Geometry Check
The first tool we’ll look at is the Empty Geometry Check tool. This tool loops through the inputs file and identifies any features that have an empty or NULL geometry. Should any null geometries be encountered than there is an option to automatically delete those features.
- Navigate to the bottom of the 1D integrity tool and select the ‘Empty Geometry’ tab. Once selected click ‘Run’ to initiate the tool.
- At this point we’ll click cancel, we’ll come back to delete the items from the layer.
- Open the attribute table for the 1d_nwk_MI01_Pipes_001_L.shp file. Find the SKSM_37 feature, right click on it and select ‘Zoom to feature’. You should get an error reporting that the ‘Feature does not have a geometry’. Do the same for the field which has a ‘null’ ID and you will receive a similar error message.
- Go back to the 1D Integrity tool, ensure the ‘Empty Geometry’ tab is selected and again click ‘Run’. This time, in the resulting dialogue, select the option to ‘Confirm Delete’ to delete the two items. This will generate a new layer called 1d_nwk_MI01_Pipes_001_L_EG1 which does not contain the wo null geometries. A new dialogue will pop up as per the below.
- Click Yes to update the Input Network Lines to the new layer.
- Review the attributes table for the 1d_nwk_MI01_Pipes_001_L_EG1 layer to ensure deletion of the two features identified in step 4. Note: Whenever the 1D Integrity makes changes to an input layer it will always output a new temporary layer with a unique suffix. It will never overwrite or edit the input layers directly. Each tool outputs a different suffix and serves as somewhat of a log to record which tools have been run and which order they were run in. The temporary layers only exist in memory and have not been written to the disk anywhere, this means that they will be lost if they are removed from the workspace or QGIS is closed.
The tool should highlight two features which have null geometry, one with an empty ID and the other called SKSM_37.
The presence of these null geometries would cause an error when running TUFLOW. Rather than wait for TUFLOW to pre-process and generate the error, the 1D integrity tool allows the user to be more proactive in checking the geometry.