Related Plugins and Tags

QGIS Model

Fix Directional Network Model2of3 CHECK_NETWORK v2.1

Fix Directional Network Model2of3 CHECK_NETWORK v2.1

Is your directional linear network driving you crazy? These 3 interdependent models will help you find and fix a multitude of problems in your GIS network so that your network analysis (like shortest path) will work flawlessly without the need to use a topology tolerance to compensate for bad data. Basically, it will help you create a perfect line network! It makes a great complement to the topology checker plugin.

Model 2 aims to find potential network errors and will:

-a) Create a graph with nodes and edges (very useful for finding errors as all network analysis tools are ultimately performed on a graph).

-b) Find the following potential network errors: Changes in network vectorization direction, non-touching lines, crossing lines, closed lines, partially overlapping lines, parallel lines (edges) and lines that could be merged as one geometry. Most of these errors must be fixed by the user before moving on to a network analysis. These are “potential” errors. For example, network vectorization direction may not be a problem if the line direction has no meaning in your network (ex: does not represent the direction of a river). Empty output layers indicate that there are no potential errors found.

-c) Find all disconnected nodes (disconnected nodes represent lines that are not correctly snapped).

-d) Create a nearest neighbour analysis. Filtering this layer can help you find, for example, all the nodes that are not snapped within a given distance (like <= 25 cm). This analysis will give the user the power to fix the network only where it needs to be fixed (unlike when using a topology tolerance). Float point errors smaller than e-10 appear as “0” in the “Distance” field of the nearest neighbour analysis files. By ordering the “Distance” field in numerical order, one can normally find a good starting point for the “maximum snapping radius” variable of model 3.

All models provide a way to track changes when modifications are done to the network file. The only exception to this rule is the deleted duplicate geometries and duplicate nodes of model 1. The original Feature ID is maintained to help the user merge old databases with the new geometries. The original input data is read but never modified. Visit the project web site at and read “A Python Algorithm for Shortest-Path River Network Distance Calculations Considering River Flow Direction” for more details

Watch my presentation of the model at the QGIS Open Day (2023-02-24)

Please go to or to to download the models, test data or to file bug reports.

Built and tested on QGIS 3.28.2, seems to work with QGIS 3.22.10 LTR

Uploaded Date
10 March 2023
Approved Date
04 April 2023
Model File

This Model is made available under the CC-0 license.

Sustaining Members