forked from osm2pgsql-dev/osm2pgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
multi.style.json
67 lines (67 loc) · 2.35 KB
/
multi.style.json
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
65
66
67
/* This is an example multi-backend style file that comes with osm2pgsql.
*
* It contains comments so is invalid JSON but the parser doesn't complain.
*
* To use this file, pass it in as a style file with the --style switch, e.g.
* with osm2pgsql --output multi --style multi.style.json
*/
[
{
"name": "stops",
"type": "point",
"tagtransform": "multi.lua",
"tagtransform-node-function": "bus_nodes",
"tagtransform-way-function": "drop_all",
"tagtransform-relation-function": "drop_all",
"tagtransform-relation-member-function": "drop_all",
"tags": [
/* We don't need a column for highway, since it's always highway=bus_stop */
{"name": "name", "type": "text"},
/* multi-lingual names can be generated at import time */
{"name": "name_en", "type": "text"},
{"name": "name_fr", "type": "text"},
{"name": "name_de", "type": "text"},
{"name": "ref", "type": "text"},
{"name": "operator", "type": "text"},
/* By using boolean columns stylesheet processing can be simplified */
{"name": "shelter", "type": "boolean"},
{"name": "bench", "type": "boolean"},
{"name": "wheelchair", "type": "boolean"}
]
},
{
"name": "highways",
"type": "line",
"tagtransform": "multi.lua",
"tagtransform-node-function": "drop_all",
"tagtransform-way-function": "highway_ways",
"tagtransform-relation-function": "drop_all",
"tagtransform-relation-member-function": "drop_all",
"tags": [
{"name": "name", "type": "text"},
{"name": "name_en", "type": "text"},
{"name": "name_fr", "type": "text"},
{"name": "name_de", "type": "text"},
{"name": "road_class", "type": "integer"},
{"name": "road_type", "type": "text"}
]
},
{
"name": "buildings",
"type": "polygon",
"tagtransform": "multi.lua",
"tagtransform-node-function": "drop_all",
"tagtransform-way-function": "building_ways",
"tagtransform-relation-function": "building_rels",
"tagtransform-relation-member-function": "building_rel_members",
"tags": [
{"name": "name", "type": "text"},
{"name": "name_en", "type": "text"},
{"name": "name_fr", "type": "text"},
{"name": "name_de", "type": "text"},
{"name": "building", "type": "text"},
{"name": "shop", "type": "text"},
{"name": "amenity", "type": "text"}
]
}
]