Skip to content

Commit

Permalink
#64 Add sql to find segments that need updating
Browse files Browse the repository at this point in the history
  • Loading branch information
chmnata committed Sep 7, 2022
1 parent 3ea0a89 commit 01ba345
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions congestion_network_creation/sql/update/update_segment.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Find segments that needs to be updated due to new traffic signals
with new_signal as (
select ST_Transform(ST_buffer(ST_Transform(geom, 2952), 50), 4326) as geom from bqu.traffic_signal
where activationdate >= '2022-04-17')

select seg.*
from congestion.network_segments seg
join new_signal on ST_intersects(new_signal.geom, seg.geom)

0 comments on commit 01ba345

Please sign in to comment.