91
91
table: |-
92
92
(SELECT
93
93
way, name, religion, way_pixels, is_building,
94
- COALESCE(aeroway, amenity, wetland, power, landuse, leisure, man_made, "natural", tourism, highway, railway) AS feature
94
+ COALESCE(aeroway, amenity, wetland, power, landuse, leisure, man_made, "natural", shop, tourism, highway, railway) AS feature
95
95
FROM (SELECT
96
96
way, COALESCE(name, '') AS name,
97
97
('aeroway_' || (CASE WHEN aeroway IN ('apron', 'aerodrome') THEN aeroway ELSE NULL END)) AS aeroway,
@@ -104,6 +104,7 @@ Layer:
104
104
'allotments', 'forest', 'farmyard', 'farmland', 'greenhouse_horticulture',
105
105
'recreation_ground', 'village_green', 'retail', 'industrial', 'railway', 'commercial',
106
106
'brownfield', 'landfill', 'construction', 'plant_nursery', 'religious') THEN landuse ELSE NULL END)) AS landuse,
107
+ ('shop_' || (CASE WHEN shop IN ('mall') AND (tags->'location' NOT IN ('underground') OR (tags->'location') IS NULL) THEN shop ELSE NULL END)) AS shop,
107
108
('leisure_' || (CASE WHEN leisure IN ('swimming_pool', 'playground', 'park', 'recreation_ground', 'garden',
108
109
'golf_course', 'miniature_golf', 'sports_centre', 'stadium', 'pitch', 'ice_rink',
109
110
'track', 'dog_park', 'fitness_station') THEN leisure ELSE NULL END)) AS leisure,
@@ -128,6 +129,7 @@ Layer:
128
129
OR man_made IN ('works', 'wastewater_plant','water_works')
129
130
OR "natural" IN ('beach', 'shoal', 'heath', 'mud', 'wetland', 'grassland', 'wood', 'sand', 'scree', 'shingle', 'bare_rock', 'scrub')
130
131
OR power IN ('station', 'sub_station', 'substation', 'generator')
132
+ OR shop IN ('mall')
131
133
OR tourism IN ('camp_site', 'caravan_site', 'picnic_site')
132
134
OR highway IN ('services', 'rest_area')
133
135
OR railway = 'station')
0 commit comments