Version: [6478] roadnetwork 0.8.0

Version 0.8.0:

**Highlights**

* **Road graph checks**: the issues of the editing session are kept in
two layers, updated after each fix,
and the new check G12 finds the duplicate edges
* **Documentation**: available in French

**Upgrade notes**

* Run the algorithm `Upgrade database structure` to upgrade the
database (migrations 46 to 49)
* Run the algorithm `Check the road graph` on the editing session to
add the issues layers to the project,
then save the project
* For a project created before, check `Cache join layer in memory` in
the join of `edges copie` with `roads copie`


* **Road graph checks**: new check G12, duplicate edges, with an
automatic fix
* **Documentation**: translation on Transifex, with a language
selector (French for now)


* **Road graph checks**: the issues of the editing session are stored
in a table, displayed by two layers,
and the roads of an issue are checked again after each fix
* **Road graph checks**: the error of a G06 fix gives the blocking G05
and G07 issues
* **Editing sessions**: the merge displays the number of merged
objects per road graph table
and of updated objects per managed object table


* **QGIS project**: slow editing layers on a remote database, the join
`edges copie` / `roads copie`
is now cached in memory
* **Road graph checks**: fixes failing when the editing layers are in
editing mode without transaction
* **Roundabouts**: clear error when the circle is not cut by any edge
(`no_intersection_cutting`)

Version 0.7.1:

**Highlights**

* **Performance**: faster editing of long roads, the references being
only calculated again downstream
of a modification, and faster calculation of the lines of the managed
objects from their references
* **Road graph checks**: new check G06 finding the previous and next
edges inconsistent with the geometry,
which give wrong references to the whole road. The checks are now
numbered in the order of their fixes

**Upgrade notes**

* Run the algorithm `Upgrade database structure` to upgrade the
database (migration 45)
* The checks G06 to G10 of the version 0.7.0 become G07 to G11, with
their options


* **Road graph checks** - G06: previous and next edges inconsistent
with the geometry, which give a wrong order
of the edges of the road and wrong references, fixed by setting them
from the nodes (migration `upgrade_to_45.sql`)


* **Road graph checks**: the checks are numbered in the order of their
fixes. The new check G06 is fixed after G05
and before the checks using the order of the edges: the checks G06 to
G10 of the version 0.7.0 become G07 to G11.
Their options set in the table `glossary_graph_check` are kept
(migration `upgrade_to_45.sql`)
* **SQL**: faster editing of long roads: after a modification of an
edge or of a marker, the triggers only calculate
again the references of the edges downstream of the modification,
instead of all the edges of the road.
For example on a road of 118 km with 135 edges: 1 s instead of 1.6 s
for a vertex moved in the middle of the road,
and 0.3 s near its end. The edges upstream are not rewritten anymore,
which also lightens the editing sessions.
The function `update_edge_references` has a new parameter
`_from_edge_ids` (migration `upgrade_to_45.sql`)
* **SQL**: faster calculation of the lines from their references
(`get_road_substring_from_references`),
for example for the managed objects with the update policy `geometry`:
the parts of a line with an offset
are ordered along the road with the order of the edges, instead of the
references of their start and end points.
The lines are the same, and a line with several parts is calculated 28
times faster: on the test data,
22 s instead of 48 s for 4,000 lines (migration `upgrade_to_45.sql`)

Version 0.7.0:

**Highlights**

* **Road graph checks**: ten checks find the issues of the road graph,
for example after an import:
crossing edges without node, T junctions not connected, close nodes,
useless nodes, reversed edges,
roads with branches, parallel edges, short edges and markers issues.
Most of them can be fixed automatically
in an editing session, in batch or with a right click on the issue in
QGIS
(see the page [Check and fix the road
graph](https://docs.3liz.org/qgis-road-network-plugin/user-guide/graph-checks/))
* **Edges and nodes**: several fixes of the triggers keeping the road
graph consistent when an edge is reversed,
when an edge or a node is moved near another node, or when the end of
an edge is moved

**Upgrade notes**

* Run the algorithm `Upgrade database structure` to upgrade the
database (migration 44).
It repairs the edges whose geometry has been reversed without swapping
their start and end nodes
* After the upgrade, run the algorithm `Check the road graph` on the
production schema to get an overview
of the issues of the road graph, then fix them in an editing session


* **Road graph checks**: new algorithms `Check the road graph` and
`Fix the road graph issues`,
SQL functions `check_graph` and `fix_graph_issue`, and table
`glossary_graph_check` listing the checks
and their default options, to find the issues of the road graph,
for example after an import, and fix them in an editing session
(migration `upgrade_to_44.sql`)
* **Road graph checks**: the layers created by the algorithm `Check
the road graph` have actions to fix an issue
with a right click (`Fix this issue`, `Choose the fix of this
issue…`), or to select its edges,
a style showing the fixed issues in grey, and the fields `fix_status`
and `fix_message` storing the result of the fixes
* **Road graph checks** - G01: edges crossing or touching each other
without being split by a node.
The edges touching each other are fixed by a node splitting them, and
the edges crossing each other
by a node or by the field `no_intersection_cutting` (bridge, tunnel),
chosen for each issue
* **Road graph checks** - G02: edges ending near another edge without
being connected to it (T junction),
fixed by extending the edge to the other edge, which is split there
* **Road graph checks** - G03: nodes close to each other, fixed by
merging them
* **Road graph checks** - G04: useless nodes, without edge or between
two edges of the same road,
fixed by deleting the node, which merges the two edges
* **Road graph checks** - G05: edges in the opposite direction of
their road, found with the order of the markers
or the direction of the neighbour edges, fixed by reversing them
* **Road graph checks** - G06: roads with branches, i.e. more than two
edges of the road at a node,
for example ramps using the code of the road, to fix manually
* **Road graph checks** - G07: parallel edges of the same road, for
example two carriageways
using the same road code, to fix manually
* **Road graph checks** - G08: short edges, except near the
roundabouts, fixed by removing the edge
and merging its nodes
* **Road graph checks** - G09: first marker of a road not at the start
of the road,
fixed by moving the marker to the start of the road when it is less
than 1 m from it
* **Road graph checks** - G10: markers not in the order of the road,
far from the road,
or on an edge without reference, to fix manually
* **Documentation**: new page `Check and fix the road graph`, with a
diagram of each check and of its fix


* **Edges**: when an edge is created or modified, its start and end
points use the **closest node**
less than 50 cm from them, instead of the node with the lowest id.
Before, modifying any vertex of an edge
could connect it to another node close to its start or end node
* **Edges**: reversing the geometry of an edge, for example with the
QGIS tool `Reverse Line`,
now swaps its start and end nodes, and calculates again its previous
and next edges and the references of its road.
Before, the change was ignored, because the geometry was considered
unchanged.
The migration repairs the edges already reversed
* **Edges**: when the end point of an edge is moved to another node,
its old end node is deleted
if no edge uses it anymore, like its old start node. Before, it was
left without edge
* **Nodes**: when a node is created or moved less than 50 cm from
another node, the two nodes are merged,
and the edge linking them, if any, is deleted. Before, this edge was
left as a loop on the node

yes

kimaidou

2026-11-22T14:14:14.839791+00:00

3.40.0

3.99.0

None

no

Version management

Plugin details