Skip to content

Commit

Permalink
Hide railway=platform with location=underground
Browse files Browse the repository at this point in the history
  • Loading branch information
kocio-pl committed Apr 2, 2018
1 parent ea769f4 commit 3cdddac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -672,13 +672,14 @@ Layer:
table: |-
(SELECT
way,
tags->'location' as location,
COALESCE((
'highway_' || (CASE WHEN highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'cycleway', 'track', 'path', 'platform') THEN highway ELSE NULL END)),
('railway_' || (CASE WHEN railway IN ('platform') THEN railway ELSE NULL END))
('railway_' || (CASE WHEN (railway IN ('platform') AND tags->'location' NOT IN ('underground')) THEN railway ELSE NULL END))
) AS feature
FROM planet_osm_polygon
WHERE highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'track', 'path', 'platform')
OR railway IN ('platform')
OR (railway IN ('platform') AND tags->'location' NOT IN ('underground'))
ORDER BY COALESCE(layer,0), way_area DESC
) AS highway_area_casing
properties:
Expand Down Expand Up @@ -782,15 +783,16 @@ Layer:
table: |-
(SELECT
way,
tags->'location' as location,
COALESCE(
('highway_' || (CASE WHEN highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'cycleway', 'living_street',
'track', 'path', 'platform', 'services') THEN highway ELSE NULL END)),
('railway_' || (CASE WHEN railway IN ('platform') THEN railway ELSE NULL END)),
('railway_' || (CASE WHEN (railway IN ('platform') AND tags->'location' NOT IN ('underground')) THEN railway ELSE NULL END)),
(('aeroway_' || CASE WHEN aeroway IN ('runway', 'taxiway', 'helipad') THEN aeroway ELSE NULL END))
) AS feature
FROM planet_osm_polygon
WHERE highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'living_street', 'track', 'path', 'platform', 'services')
OR railway IN ('platform')
OR (railway IN ('platform') AND tags->'location' NOT IN ('underground'))
OR aeroway IN ('runway', 'taxiway', 'helipad')
ORDER BY COALESCE(layer,0), way_area desc
) AS highway_area_fill
Expand Down

0 comments on commit 3cdddac

Please sign in to comment.