Skip to content

Commit

Permalink
Restored rendering for railway=platform + covered=yes (#4797)
Browse files Browse the repository at this point in the history
* Restored rendering for railway=platform + covered=yes

* made linear platforms consistent with areas

---------

Co-authored-by: map per <->
  • Loading branch information
map-per authored Oct 14, 2023
1 parent 445e553 commit eec4e9b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -655,16 +655,14 @@ Layer:
'highway_' || (CASE WHEN highway IN ('pedestrian', 'footway', 'service', 'platform') THEN highway END)),
('railway_' || (CASE WHEN (railway IN ('platform')
AND (tags->'location' NOT IN ('underground') OR (tags->'location') IS NULL)
AND (tunnel NOT IN ('yes', 'building_passage') OR tunnel IS NULL)
AND (covered NOT IN ('yes') OR covered IS NULL))
AND (tunnel NOT IN ('yes', 'building_passage') OR tunnel IS NULL))
THEN railway END))
) AS feature
FROM planet_osm_polygon
WHERE highway IN ('pedestrian', 'footway', 'service', 'platform')
OR (railway IN ('platform')
AND (tags->'location' NOT IN ('underground') OR (tags->'location') IS NULL)
AND (tunnel NOT IN ('yes', 'building_passage') OR tunnel IS NULL)
AND (covered NOT IN ('yes') OR covered IS NULL))
AND (tunnel NOT IN ('yes', 'building_passage') OR tunnel IS NULL))
ORDER BY COALESCE(layer,0), way_area DESC
) AS highway_area_casing
properties:
Expand Down Expand Up @@ -754,8 +752,9 @@ Layer:
z_order
FROM planet_osm_line
WHERE (tunnel IS NULL OR NOT tunnel IN ('yes', 'building_passage'))
AND (covered IS NULL OR NOT covered = 'yes')
AND (covered IS NULL OR NOT covered = 'yes' OR railway IN ('platform'))
AND (bridge IS NULL OR NOT bridge IN ('yes', 'boardwalk', 'cantilever', 'covered', 'low_water_crossing', 'movable', 'trestle', 'viaduct'))
AND (railway NOT IN ('platform') OR (tags->'location' NOT IN ('underground')) OR (tags->'location') IS NULL)
AND railway IS NOT NULL -- end of rail select
) AS features
ORDER BY
Expand Down Expand Up @@ -783,8 +782,7 @@ Layer:
'platform', 'services') THEN highway END)),
('railway_' || (CASE WHEN (railway IN ('platform')
AND (tags->'location' NOT IN ('underground') OR (tags->'location') IS NULL)
AND (tunnel NOT IN ('yes', 'building_passage') OR tunnel IS NULL)
AND (covered NOT IN ('yes') OR covered IS NULL))
AND (tunnel NOT IN ('yes', 'building_passage') OR tunnel IS NULL))
THEN railway END)),
(('aeroway_' || CASE WHEN aeroway IN ('runway', 'taxiway', 'helipad') THEN aeroway ELSE NULL END))
) AS feature,
Expand All @@ -798,8 +796,7 @@ Layer:
WHERE highway IN ('pedestrian', 'footway', 'service', 'living_street', 'platform', 'services')
OR (railway IN ('platform')
AND (tags->'location' NOT IN ('underground') OR (tags->'location') IS NULL)
AND (tunnel NOT IN ('yes', 'building_passage') OR tunnel IS NULL)
AND (covered NOT IN ('yes') OR covered IS NULL))
AND (tunnel NOT IN ('yes', 'building_passage') OR tunnel IS NULL))
OR aeroway IN ('runway', 'taxiway', 'helipad')
ORDER BY COALESCE(layer,0), way_area desc
) AS highway_area_fill
Expand Down

0 comments on commit eec4e9b

Please sign in to comment.