adds ATM to POI layer (#1375)
This PR adds ATM to POI layer. If ATM isn't provided with a name tag we'll try to use operator or network instead.
This commit is contained in:
@@ -9,6 +9,7 @@ def_poi_mapping_aerialway: &poi_mapping_aerialway
|
||||
# amenity values , see http://taginfo.openstreetmap.org/keys/amenity#values
|
||||
def_poi_mapping_amenity: &poi_mapping_amenity
|
||||
- arts_centre
|
||||
- atm
|
||||
- bank
|
||||
- bar
|
||||
- bbq
|
||||
@@ -367,6 +368,12 @@ def_poi_fields: &poi_fields
|
||||
- name: sport
|
||||
key: sport
|
||||
type: string
|
||||
- name: operator
|
||||
key: operator
|
||||
type: string
|
||||
- name: network
|
||||
key: network
|
||||
type: string
|
||||
|
||||
def_poi_mapping: &poi_mapping
|
||||
aerialway: *poi_mapping_aerialway
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
@@ -94,6 +94,8 @@ layer:
|
||||
subclass: ['swimming_area', 'swimming']
|
||||
castle:
|
||||
subclass: ['castle', 'ruins']
|
||||
atm:
|
||||
subclass: ['atm']
|
||||
subclass:
|
||||
description: |
|
||||
Original value of either the
|
||||
|
||||
@@ -15,6 +15,18 @@ BEGIN
|
||||
WHERE funicular = 'yes'
|
||||
AND subclass = 'station';
|
||||
|
||||
-- ATM without name
|
||||
-- use either operator or network
|
||||
-- (using name for ATM is discouraged, see osm wiki)
|
||||
UPDATE osm_poi_point
|
||||
SET (name, tags) = (
|
||||
COALESCE(tags -> 'operator', tags -> 'network'),
|
||||
tags || hstore('name', COALESCE(tags -> 'operator', tags -> 'network'))
|
||||
)
|
||||
WHERE subclass = 'atm'
|
||||
AND name = ''
|
||||
AND COALESCE(tags -> 'operator', tags -> 'network') IS NOT NULL;
|
||||
|
||||
UPDATE osm_poi_point
|
||||
SET tags = update_tags(tags, geometry)
|
||||
WHERE COALESCE(tags->'name:latin', tags->'name:nonlatin', tags->'name_int') IS NULL
|
||||
|
||||
Reference in New Issue
Block a user