Further refinement
This commit is contained in:
parent
df3f592513
commit
1d39075f03
@ -11,7 +11,7 @@ SELECT CASE class
|
|||||||
WHEN 'harbor' THEN 55
|
WHEN 'harbor' THEN 55
|
||||||
WHEN 'library' THEN 60
|
WHEN 'library' THEN 60
|
||||||
WHEN 'bus' THEN
|
WHEN 'bus' THEN
|
||||||
SELECT CASE subclass
|
CASE subclass
|
||||||
WHEN 'bus_station' THEN 70
|
WHEN 'bus_station' THEN 70
|
||||||
ELSE 72
|
ELSE 72
|
||||||
END
|
END
|
||||||
@ -36,11 +36,14 @@ SELECT CASE class
|
|||||||
WHEN 'bicycle_parking' THEN 360
|
WHEN 'bicycle_parking' THEN 360
|
||||||
WHEN 'motorcycle_parking' THEN 360
|
WHEN 'motorcycle_parking' THEN 360
|
||||||
WHEN 'bank' THEN 380
|
WHEN 'bank' THEN 380
|
||||||
WHEN 'fast_food' THEN 400
|
WHEN 'art_gallery' THEN 400
|
||||||
WHEN 'ice_cream' THEN 400
|
WHEN 'information' THEN 420
|
||||||
|
WHEN 'fast_food' THEN 430
|
||||||
|
WHEN 'ice_cream' THEN 430
|
||||||
WHEN 'bar' THEN 450
|
WHEN 'bar' THEN 450
|
||||||
WHEN 'cafe' THEN 450
|
WHEN 'cafe' THEN 450
|
||||||
WHEN 'grocery' THEN 450
|
WHEN 'grocery' THEN 450
|
||||||
|
WHEN 'bakery' THEN 475
|
||||||
WHEN 'community_centre' THEN 500
|
WHEN 'community_centre' THEN 500
|
||||||
WHEN 'shop' THEN 600
|
WHEN 'shop' THEN 600
|
||||||
WHEN 'optician' THEN 600
|
WHEN 'optician' THEN 600
|
||||||
|
|||||||
@ -38,6 +38,8 @@ SELECT osm_id_hash AS osm_id,
|
|||||||
THEN NULLIF(religion, '')
|
THEN NULLIF(religion, '')
|
||||||
WHEN subclass = 'pitch'
|
WHEN subclass = 'pitch'
|
||||||
THEN NULLIF(sport, '')
|
THEN NULLIF(sport, '')
|
||||||
|
WHEN subclass = 'sports_centre'
|
||||||
|
THEN NULLIF(sport, subclass)
|
||||||
ELSE subclass
|
ELSE subclass
|
||||||
END AS subclass,
|
END AS subclass,
|
||||||
agg_stop,
|
agg_stop,
|
||||||
@ -66,6 +68,8 @@ FROM (
|
|||||||
THEN NULLIF(religion, '')
|
THEN NULLIF(religion, '')
|
||||||
WHEN subclass = 'pitch'
|
WHEN subclass = 'pitch'
|
||||||
THEN NULLIF(sport, '')
|
THEN NULLIF(sport, '')
|
||||||
|
WHEN subclass = 'sports_centre'
|
||||||
|
THEN NULLIF(sport, '')
|
||||||
WHEN subclass = 'generator' AND mapping_key = 'power'
|
WHEN subclass = 'generator' AND mapping_key = 'power'
|
||||||
THEN NULLIF(source, '')
|
THEN NULLIF(source, '')
|
||||||
ELSE subclass
|
ELSE subclass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user