Skip to content

Commit

Permalink
Unnecessary ending dot on node_network labels
Browse files Browse the repository at this point in the history
As per
#660 (comment):
* Remove the final dot in the truncation of cycle junction node names.
* Keep the final characters instead of the leading ones.

Fix #660
  • Loading branch information
Phyks committed Nov 8, 2023
1 parent c4e8611 commit 16a313b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -995,11 +995,10 @@ Layer:
(
SELECT
way,
CONCAT(SUBSTR(
RIGHT(
COALESCE(tags->'icn_ref', tags->'ncn_ref', tags->'rcn_ref', tags->'lcn_ref'),
0,
4
), '.') AS ref,
) AS ref,
CASE
WHEN (tags->'icn_ref') IS NOT NULL THEN 'icn'
WHEN (tags->'ncn_ref') IS NOT NULL THEN 'ncn'
Expand Down

0 comments on commit 16a313b

Please sign in to comment.