From 794ea5ca3c7aac74d0f41c501becc825e6af52e4 Mon Sep 17 00:00:00 2001 From: map per <-> Date: Mon, 27 Mar 2023 22:57:42 +0200 Subject: [PATCH 1/2] Restored rendering for railway=platform + covered=yes --- project.mml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/project.mml b/project.mml index fdeef517d..1b0766b65 100644 --- a/project.mml +++ b/project.mml @@ -654,16 +654,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: @@ -782,8 +780,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, @@ -797,8 +794,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 From 5217e2b0df46a591aeeb1123d721bcb2423ce074 Mon Sep 17 00:00:00 2001 From: map per <-> Date: Tue, 15 Aug 2023 20:35:33 +0200 Subject: [PATCH 2/2] made linear platforms consistent with areas --- project.mml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project.mml b/project.mml index 1b0766b65..36529f2ea 100644 --- a/project.mml +++ b/project.mml @@ -751,8 +751,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