Parameters
| Name | Type | Mode |
|---|---|---|
| _multilinestring | geometry | IN |
| _road_code | text | IN |
Reorder the parts of the given road MULTILINESTRING based on the graph.
For each part, the position of its start and end points along the road is given by the order of their closest edge of the road, and by their location along this edge: the parts are ordered by these positions, and reversed if needed (since the ST_OffsetCurve sometimes does not respect the node order). The references of the points are not calculated, which is much faster. The function is not compiled by the JIT: the high costs of the PostGIS functions trigger it, which is slower here.
The geometry is returned untouched if a part is more than 50 m from the road.
| Name | Type | Mode |
|---|---|---|
| _multilinestring | geometry | IN |
| _road_code | text | IN |