Skip to content

Commit

Permalink
define order of returned centreline links
Browse files Browse the repository at this point in the history
ordered by sequence in the routed path, as returned by pgrouting
  • Loading branch information
Nate-Wessel committed Jan 6, 2025
1 parent e4f926e commit 2010026
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ WITH results AS (
SELECT
get_centreline_btwn_intersections._node_start,
get_centreline_btwn_intersections._node_end,
array_agg(routing_centreline_directional.centreline_id),
st_union(st_linemerge(routing_centreline_directional.geom)) AS geom
array_agg(routing_centreline_directional.centreline_id ORDER BY path_seq),
st_union(st_linemerge(routing_centreline_directional.geom ORDER BY path_seq)) AS geom
FROM results
INNER JOIN gis_core.routing_centreline_directional ON edge = id

Expand Down

0 comments on commit 2010026

Please sign in to comment.