forked from caresteouvert/caresteouvert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimport.yml
64 lines (64 loc) · 2.75 KB
/
import.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
tables:
imposm_osm_point:
type: point
mapping:
amenity: [__any__]
shop: [__any__]
craft: [__any__]
office: [__any__]
emergency: [__any__]
tobacco: [__any__]
healthcare: [__any__]
filters:
reject:
amenity: ['bench', 'waste_basket']
emergency: ['fire_hydrant', 'yes']
columns:
- {name: 'osm_id', type: id}
- {name: 'way', type: geometry}
- {name: 'tags', type: hstore_tags}
- {key: 'name', name: 'name', type: string}
- {key: 'amenity', name: 'amenity', type: string}
- {key: 'shop', name: 'shop', type: string}
- {key: 'craft', name: 'craft', type: string}
- {key: 'office', name: 'office', type: string}
- {key: 'emergency', name: 'emergency', type: string}
- {key: 'tobacco', name: 'tobacco', type: string}
- {key: 'healthcare', name: 'healthcare', type: string}
- {key: 'opening_hours', name: 'opening_hours', type: string}
- {key: 'opening_hours:covid19', name: 'opening_hours:covid19', type: string}
- {name: country_iso2, type: geojson_intersects_feature, args: {geojson: '/git/covid19_map/db/countries_subcountries.geojson', property: country_iso2}}
- {name: sub_country, type: geojson_intersects_feature, args: {geojson: '/git/covid19_map/db/countries_subcountries.geojson', property: sub_country}}
imposm_osm_polygon:
type: polygon
mapping:
amenity: [__any__]
shop: [__any__]
craft: [__any__]
office: [__any__]
emergency: [__any__]
tobacco: [__any__]
healthcare: [__any__]
filters:
reject:
amenity: ['bench', 'waste_basket']
emergency: ['fire_hydrant', 'yes']
columns:
- {name: 'osm_id', type: id}
- {name: 'way', type: geometry}
- {name: 'tags', type: hstore_tags}
- {key: 'name', name: 'name', type: string}
- {key: 'amenity', name: 'amenity', type: string}
- {key: 'shop', name: 'shop', type: string}
- {key: 'craft', name: 'craft', type: string}
- {key: 'office', name: 'office', type: string}
- {key: 'emergency', name: 'emergency', type: string}
- {key: 'tobacco', name: 'tobacco', type: string}
- {key: 'healthcare', name: 'healthcare', type: string}
- {key: 'opening_hours', name: 'opening_hours', type: string}
- {key: 'opening_hours:covid19', name: 'opening_hours:covid19', type: string}
- {name: country_iso2, type: geojson_intersects_feature, args: {geojson: '/git/covid19_map/db/countries_subcountries.geojson', property: country_iso2}}
- {name: sub_country, type: geojson_intersects_feature, args: {geojson: '/git/covid19_map/db/countries_subcountries.geojson', property: sub_country}}
tags:
load_all: true
exclude: [created_by, source, "tiger:*"]