Skip to content

Commit

Permalink
attempt to fluff
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate-Wessel committed Feb 21, 2025
1 parent eae1f06 commit 8c69337
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions gis/centreline/sql/legs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ distances AS (
toronto_cardinal.leg_label,
-- *MATH*
abs(180 - abs((toronto_cardinal.d - legs.azimuth)::numeric % 360 - 180)) AS angular_distance,

Check notice on line 103 in gis/centreline/sql/legs.sql

View workflow job for this annotation

GitHub Actions / SQLFluff Lint

SQLFluff

LT05: Line is too long (101 > 100).
stub_geom
legs.stub_geom
FROM legs
CROSS JOIN toronto_cardinal
),
Expand Down Expand Up @@ -136,13 +136,14 @@ leg2 AS (
angular_distance,
stub_geom
FROM distances
WHERE NOT EXISTS (
SELECT 1
FROM leg1
WHERE
distances.intersection_centreline_id = leg1.intersection_centreline_id
AND distances.leg_label = leg1.leg_label
)
WHERE
NOT EXISTS (
SELECT 1
FROM leg1
WHERE
distances.intersection_centreline_id = leg1.intersection_centreline_id
AND distances.leg_label = leg1.leg_label
)
ORDER BY
intersection_centreline_id,
angular_distance ASC
Expand Down

0 comments on commit 8c69337

Please sign in to comment.