Skip to content

Commit

Permalink
#59 modify update sql for retired segments
Browse files Browse the repository at this point in the history
  • Loading branch information
chmnata committed Jul 29, 2022
1 parent a3d8aca commit ec41a84
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions congestion_network_creation/network_segments_retired.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ valid_to date);

COMMENT ON TABLE congestion.network_segments_retired IS
'Containing all retired segments in the congestion network.';


insert into congestion.network_segments_retired
select segment_id, start_vid, end_vid, geom, total_length, highway, f.int_id as start_int,
t.int_id as end_int, f.px as start_px, t.px as end_px, '21_1' as here_version, null as centreline_version,
'2022-07-20' as retired_date, 'outdated' as retired_reason, null as replaced_id, null as valid_from, null as valid_to

from congestion.network_segments a
left join congestion.network_int_px_21_1_updated f on start_vid = node_id
left join congestion.network_int_px_21_1_updated t on end_vid = t.node_id
where segment_id in (3588, 3589)

0 comments on commit ec41a84

Please sign in to comment.