-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathosm2pgsql.style
100 lines (90 loc) · 4.14 KB
/
osm2pgsql.style
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# This is the style file that matches the old version of osm2pgsql, which
# did not make distinctions between tags for nodes and for ways. There are a
# number of optimisations that can be applied here. Firstly, certain tags
# only apply to only nodes or only ways. By fixing this we reduce the amount
# of useless data loaded into the DB, which is a good thing. Possible
# optimisations for the future:
# 1. Generate this file directly from the mapnik XML config, so it's always
# optimal
# 2. Extend it so it can understand that highway=tertiary is for ways and
# highway=bus_stop is for nodes
# Flags field isn't used much yet, expect if it contains the text "polygon"
# it indicates the shape is candidate for the polygon table. In the future I
# would like to be able to add directives like "nocache" which tells
# osm2pgsql that it is unlikely this node will be used by a way and so it
# doesn't need to be stored (eg coastline nodes). While in essence an
# optimisation hack, for --slim mode it doesn't matter if you're wrong, but
# in non-slim you might break something!
# Also possibly an ignore flag, for things like "note" and "source" which
# can simply be deleted. (In slim mode this is, does not apply to non-slim
# obviously)
# OsmType Tag DataType Flags
node,way admin_level text linear
node,way addr:housenumber text polygon
node,way aerialway text linear
node,way aeroway text polygon
node,way amenity text nocache,polygon
node,way area text # hard coded support for area=1/yes => polygon is in osm2pgsql
node,way barrier text linear
node,way bicycle text nocache
node,way bridge text linear
node,way boundary text linear
node,way building text polygon
node capital text linear
node,way construction text linear
node,way denomination text polygon
node,way disused text linear
node ele text linear
node,way heritage text polygon
node,way highway text linear
node,way historic text polygon
node,way information text polygon
node,way landuse text polygon
node,way leisure text polygon
node,way man_made text polygon
node,way military text polygon
node,way mountain_pass text linear
node,way name text linear
node,way natural text polygon # natural=coastline tags are discarded by a hard coded rule in osm2pgsql
node,way oneway text linear
node population int4 linear
node,way power text polygon
node,way place text linear
node,way railway text linear
node,way ref text linear
node,way religion text nocache
node,way route text linear
node,way shop text polygon
node,way sport text polygon
node,way surface text linear
node,way smoothness text linear
node,way tourism text polygon
way tracktype text linear
node,way tunnel text linear
node,way type text linear
node,way waterway text polygon
node,way wetland text polygon
node,way wood text linear
node,way z_order int4 linear # This is calculated during import
way way_area real # This is calculated during import
# Czech style hiking tracks.
way kct_yellow text linear
way kct_red text linear
way kct_green text linear
way kct_blue text linear
way kct_black text linear
way complete text linear
way abandoned text linear
# Slovak style hiking tracks.
way marked_trail text linear
way marked_trail_yellow text linear
way marked_trail_red text linear
way marked_trail_green text linear
way marked_trail_blue text linear
way marked_trail_black text linear
way colour text linear
# German style kiking tracks.
way osmc:symbol text linear
# International hiking tracks.
way network text linear
way iwn text linear