Refinements
This commit is contained in:
parent
c092dd360c
commit
c030eaa7be
@ -3,10 +3,15 @@ CREATE OR REPLACE FUNCTION poi_class_rank(class text)
|
|||||||
$$
|
$$
|
||||||
SELECT CASE class
|
SELECT CASE class
|
||||||
WHEN 'hospital' THEN 20
|
WHEN 'hospital' THEN 20
|
||||||
|
WHEN 'airport' THEN 30
|
||||||
WHEN 'railway' THEN 40
|
WHEN 'railway' THEN 40
|
||||||
WHEN 'bus' THEN 50
|
WHEN 'aerialway' THEN 40
|
||||||
WHEN 'attraction' THEN 70
|
WHEN 'heliport' THEN 45
|
||||||
WHEN 'harbor' THEN 75
|
WHEN 'taxi' THEN 50
|
||||||
|
WHEN 'harbor' THEN 55
|
||||||
|
WHEN 'library' THEN 60
|
||||||
|
WHEN 'bus' THEN 70
|
||||||
|
WHEN 'attraction' THEN 75
|
||||||
WHEN 'college' THEN 80
|
WHEN 'college' THEN 80
|
||||||
WHEN 'school' THEN 85
|
WHEN 'school' THEN 85
|
||||||
WHEN 'stadium' THEN 90
|
WHEN 'stadium' THEN 90
|
||||||
@ -19,11 +24,39 @@ SELECT CASE class
|
|||||||
WHEN 'police' THEN 135
|
WHEN 'police' THEN 135
|
||||||
WHEN 'post' THEN 140
|
WHEN 'post' THEN 140
|
||||||
WHEN 'golf' THEN 150
|
WHEN 'golf' THEN 150
|
||||||
WHEN 'shop' THEN 400
|
WHEN 'entrance' THEN 250
|
||||||
WHEN 'grocery' THEN 500
|
WHEN 'parking' THEN 300
|
||||||
WHEN 'fast_food' THEN 600
|
WHEN 'car_parking' THEN 300
|
||||||
|
WHEN 'charging_station' THEN 350
|
||||||
|
WHEN 'fuel' THEN 350
|
||||||
|
WHEN 'bicycle_parking' THEN 390
|
||||||
|
WHEN 'motorcycle_parking' THEN 390
|
||||||
|
WHEN 'fast_food' THEN 400
|
||||||
|
WHEN 'ice_cream' THEN 400
|
||||||
|
WHEN 'bar' THEN 450
|
||||||
|
WHEN 'cafe' THEN 450
|
||||||
|
WHEN 'grocery' THEN 450
|
||||||
|
WHEN 'shop' THEN 500
|
||||||
|
WHEN 'optician' THEN 500
|
||||||
|
WHEN 'furniture' THEN 500
|
||||||
|
WHEN 'jewelry' THEN 500
|
||||||
|
WHEN 'toys' THEN 500
|
||||||
|
WHEN 'newsagent' THEN 500
|
||||||
|
WHEN 'paint' THEN 500
|
||||||
|
WHEN 'electronics' THEN 500
|
||||||
|
WHEN 'garden_centre' THEN 500
|
||||||
|
WHEN 'community_centre' THEN 600
|
||||||
|
WHEN 'mobile_phone' THEN 700
|
||||||
|
WHEN 'shoes' THEN 700
|
||||||
WHEN 'clothing_store' THEN 700
|
WHEN 'clothing_store' THEN 700
|
||||||
WHEN 'bar' THEN 800
|
WHEN 'florist' THEN 750
|
||||||
|
WHEN 'dog_park' THEN 800
|
||||||
|
WHEN 'pitch' THEN 800
|
||||||
|
when 'power_tower' then 900
|
||||||
|
when 'wind_mill' then 900
|
||||||
|
when 'water_tower' then 900
|
||||||
|
when 'communications_tower' then 900
|
||||||
|
when 'wind_turbine' then 900
|
||||||
ELSE 1000
|
ELSE 1000
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE SQL IMMUTABLE
|
$$ LANGUAGE SQL IMMUTABLE
|
||||||
|
|||||||
@ -21,6 +21,7 @@ def_poi_mapping_amenity: &poi_mapping_amenity
|
|||||||
- clinic
|
- clinic
|
||||||
- college
|
- college
|
||||||
- community_centre
|
- community_centre
|
||||||
|
- social_facility
|
||||||
- courthouse
|
- courthouse
|
||||||
- dentist
|
- dentist
|
||||||
- doctors
|
- doctors
|
||||||
@ -84,6 +85,7 @@ def_poi_mapping_building: &poi_mapping_building
|
|||||||
# highway values , see http://taginfo.openstreetmap.org/keys/highway#values
|
# highway values , see http://taginfo.openstreetmap.org/keys/highway#values
|
||||||
def_poi_mapping_highway: &poi_mapping_highway
|
def_poi_mapping_highway: &poi_mapping_highway
|
||||||
- bus_stop
|
- bus_stop
|
||||||
|
- speed_camera
|
||||||
|
|
||||||
# historic values , see http://taginfo.openstreetmap.org/keys/historic#values
|
# historic values , see http://taginfo.openstreetmap.org/keys/historic#values
|
||||||
def_poi_mapping_historic: &poi_mapping_historic
|
def_poi_mapping_historic: &poi_mapping_historic
|
||||||
@ -328,6 +330,15 @@ def_poi_mapping_aeroway: &poi_mapping_aeroway
|
|||||||
# aeroway values , see http://taginfo.openstreetmap.org/keys/aeroway#values
|
# aeroway values , see http://taginfo.openstreetmap.org/keys/aeroway#values
|
||||||
def_poi_mapping_power: &poi_mapping_power
|
def_poi_mapping_power: &poi_mapping_power
|
||||||
- generator
|
- generator
|
||||||
|
- tower
|
||||||
|
|
||||||
|
def_poi_mapping_man_made: &poi_mapping_man_made
|
||||||
|
- communications_tower
|
||||||
|
- water_tower
|
||||||
|
- wind_mill
|
||||||
|
|
||||||
|
def_poi_mapping_emergency: &poi_mapping_emergency
|
||||||
|
- defibrillator
|
||||||
|
|
||||||
def_poi_fields: &poi_fields
|
def_poi_fields: &poi_fields
|
||||||
- name: osm_id
|
- name: osm_id
|
||||||
@ -399,6 +410,8 @@ def_poi_mapping: &poi_mapping
|
|||||||
waterway: *poi_mapping_waterway
|
waterway: *poi_mapping_waterway
|
||||||
aeroway: *poi_mapping_aeroway
|
aeroway: *poi_mapping_aeroway
|
||||||
power: *poi_mapping_power
|
power: *poi_mapping_power
|
||||||
|
man_made: *poi_mapping_man_made
|
||||||
|
emergency: *poi_mapping_emergency
|
||||||
|
|
||||||
tables:
|
tables:
|
||||||
# etldoc: imposm3 -> osm_poi_point
|
# etldoc: imposm3 -> osm_poi_point
|
||||||
|
|||||||
@ -51,6 +51,8 @@ layer:
|
|||||||
subclass: ['florist']
|
subclass: ['florist']
|
||||||
town_hall:
|
town_hall:
|
||||||
subclass: ['townhall', 'public_building', 'courthouse', 'community_centre']
|
subclass: ['townhall', 'public_building', 'courthouse', 'community_centre']
|
||||||
|
community_centre:
|
||||||
|
subclass: ['community_centre', 'social_facility']
|
||||||
golf:
|
golf:
|
||||||
subclass: ['golf', 'golf_course', 'miniature_golf']
|
subclass: ['golf', 'golf_course', 'miniature_golf']
|
||||||
fast_food:
|
fast_food:
|
||||||
@ -128,6 +130,16 @@ layer:
|
|||||||
subclass: ['aerodrome']
|
subclass: ['aerodrome']
|
||||||
heliport:
|
heliport:
|
||||||
subclass: ['helipad']
|
subclass: ['helipad']
|
||||||
|
wind_turbine:
|
||||||
|
subclass: ['wind_turbine']
|
||||||
|
communications_tower:
|
||||||
|
subclass: ['communications_tower']
|
||||||
|
water_tower:
|
||||||
|
subclass: ['water_tower']
|
||||||
|
wind_mill:
|
||||||
|
subclass: ['wind_mill']
|
||||||
|
power_tower:
|
||||||
|
subclasss: ['tower']
|
||||||
subclass:
|
subclass:
|
||||||
description: |
|
description: |
|
||||||
Original value of either the
|
Original value of either the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user