Skip to content

Commit

Permalink
include more railway tags to allow railway:preserved=yes
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed May 8, 2024
1 parent 5b2c452 commit 6062c94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ Layer:
CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text ELSE 'INT-normal'::text END AS service,
'no' AS link,
(CASE
WHEN railway IN ('rail', 'preserved', 'narrow_gauge', 'tram') AND tags->'railway:preserved' = 'yes' THEN 'yes'
WHEN railway IN ('rail', 'light_rail', 'funicular', 'narrow_gauge', 'miniature', 'preserved', 'subway', 'tram', 'monorail', 'disused') AND tags->'railway:preserved' = 'yes' THEN 'yes'
ELSE 'no'
END) AS preserved,
COALESCE(layer,0) AS layernotnull,
Expand Down Expand Up @@ -759,7 +759,7 @@ Layer:
CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') OR leisure IN ('slipway') THEN 'INT-minor'::text ELSE 'INT-normal'::text END AS service,
'no' AS link,
(CASE
WHEN railway IN ('rail', 'preserved', 'narrow_gauge', 'tram') AND tags->'railway:preserved' = 'yes' THEN 'yes'
WHEN railway IN ('rail', 'light_rail', 'funicular', 'narrow_gauge', 'miniature', 'preserved', 'subway', 'tram', 'monorail', 'disused') AND tags->'railway:preserved' = 'yes' THEN 'yes'
ELSE 'no'
END) AS preserved,
COALESCE(layer,0) AS layernotnull,
Expand Down Expand Up @@ -989,7 +989,7 @@ Layer:
CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text ELSE 'INT-normal'::text END AS service,
'no' AS link,
(CASE
WHEN railway IN ('rail', 'preserved', 'narrow_gauge', 'tram') AND tags->'railway:preserved' = 'yes' THEN 'yes'
WHEN railway IN ('rail', 'light_rail', 'funicular', 'narrow_gauge', 'miniature', 'preserved', 'subway', 'tram', 'monorail', 'disused') AND tags->'railway:preserved' = 'yes' THEN 'yes'
ELSE 'no'
END) AS preserved,
COALESCE(layer,0) AS layernotnull,
Expand Down Expand Up @@ -2007,7 +2007,7 @@ Layer:
construction,
name,
(CASE
WHEN railway IN ('rail', 'preserved', 'narrow_gauge', 'tram') AND tags->'railway:preserved' = 'yes' THEN 'yes'
WHEN railway IN ('rail', 'light_rail', 'funicular', 'narrow_gauge', 'miniature', 'preserved', 'subway', 'tram', 'monorail', 'disused') AND tags->'railway:preserved' = 'yes' THEN 'yes'
ELSE 'no'
END) AS preserved
FROM planet_osm_line l
Expand Down

0 comments on commit 6062c94

Please sign in to comment.