Difference between revisions of "Integrity Tool - Empty Geometry Check"

From Tuflow
Jump to navigation Jump to search
Line 34: Line 34:
 
</ol>
 
</ol>
  
Please return to the 1D Integrity tutorial [[https://wiki.tuflow.com/index.php?title=1D_Integrity_Tool_-_Tutorial|page]] to continue the tutorial.
+
Please return to the 1D Integrity tutorial [[1D_Integrity_Tool_-_Tutorial|page]] to continue the tutorial.

Revision as of 23:04, 8 April 2022

The empty geometry 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.

  1. Navigate to the bottom of the 1D integrity tool and select the ‘Empty Geometry’ tab. Once selected click ‘Run’ to initiate the tool.
    Empty Geometry.png
    The tool should highlight two features which have null geometry, one with an empty ID and the other called SKSM_37.
    Empty Geometry Found.png
  2. At this point we’ll click cancel, we’ll come back to delete the items from the layer.
  3. 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.
    Null geometry error.png
    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.
  4. 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.
    Replace Inputs.png
  5. Click Yes to update the Input Network Lines to the new layer.
  6. Input Network Lines updated.png
  7. 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.
  8. 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.

Please return to the 1D Integrity tutorial page to continue the tutorial.