source: subversion/applications/utils/export/osm2pgsql/default.style @ 13407

Revision 13407, 4.4 KB checked in by jonb, 5 years ago (diff)

Add barrier for latest osm.xml

Line 
1# This is the style file that matches the old version of osm2pgsql, which
2# did not make distinctions between tags for nodes and for ways. There are a
3# number of optimisations that can be applied here. Firstly, certain tags
4# only apply to only nodes or only ways. By fixing this we reduce the amount
5# of useless data loaded into the DB, which is a good thing. Possible
6# optimisations for the future:
7
8# 1. Generate this file directly from the mapnik XML config, so it's always
9# optimal
10
11# 2. Extend it so it can understand that highway=tertiary is for ways and
12# highway=bus_stop is for nodes
13
14# Flags field isn't used much yet, expect if it contains the text "polygon"
15# it indicates the shape is candidate for the polygon table. In the future I
16# would like to be able to add directives like "nocache" which tells
17# osm2pgsql that it is unlikely this node will be used by a way and so it
18# doesn't need to be stored (eg coastline nodes). While in essence an
19# optimisation hack, for --slim mode it doesn't matter if you're wrong, but
20# in non-slim you might break something!
21
22# Also possibly an ignore flag, for things like "note" and "source" which
23# can simply be deleted. (In slim mode this is, does not apply to non-slim
24# obviously)
25
26# OsmType  Tag          DataType     Flags
27node,way   note         text         delete   # These tags can be long but are useless for rendering
28node,way   source       text         delete   # This indicates that we shouldn't store them
29
30node,way   access       text         linear
31node,way   admin_level  text         linear
32node,way   aerialway    text         linear
33node,way   aeroway      text         polygon
34node,way   amenity      text         nocache,polygon
35node,way   area         text         # hard coded support for area=1/yes => polygon is in osm2pgsql
36node,way   barrier      text         linear
37node,way   bicycle      text         nocache
38node,way   bridge       text         linear
39node,way   boundary     text         linear
40node,way   building     text         polygon
41node,way   cutting      text         linear
42node,way   disused      text         linear
43node       ele          text         linear
44node,way   embankment   text         linear
45node,way   foot         text         linear
46node,way   highway      text         linear
47node,way   historic     text         polygon
48node,way   horse        text         linear
49node,way   junction     text         linear
50node,way   landuse      text         polygon
51node,way   layer        text         linear
52node,way   learning     text         linear
53node,way   leisure      text         polygon
54node,way   man_made     text         polygon
55node,way   military     text         polygon
56node,way   motorcar     text         linear
57node,way   name         text         linear
58node,way   natural      text         polygon  # natural=coastline tags are discarded by a hard coded rule in osm2pgsql
59node,way   oneway       text         linear
60node       poi          text
61node,way   power        text         polygon
62node,way   power_source text         linear
63node,way   place        text         linear
64node,way   railway      text         linear
65node,way   ref          text         linear
66node,way   religion     text         nocache
67node,way   residence    text         linear
68node,way   route        text         linear
69node,way   sport        text         polygon
70node,way   tourism      text         polygon
71way        tracktype    text         linear
72node,way   tunnel       text         linear
73node,way   waterway     text         polygon
74node,way   width        text         linear
75node,way   wood         text         linear
76node,way   z_order      int4         linear # This is calculated during import
77way        way_area     real                # This is calculated during import
78
79# If you're interested in bicycle routes, you may want the following fields
80# To make these work you need slim mode or the necessary data won't be remembered.
81#way       lcn_ref      text     linear
82#way       rcn_ref      text     linear
83#way       ncn_ref      text     linear
84#way       lcn          text     linear
85#way       rcn          text     linear
86#way       ncn          text     linear
87#way       lwn_ref      text     linear
88#way       rwn_ref      text     linear
89#way       nwn_ref          text     linear
90#way       lwn              text     linear
91#way       rwn              text     linear
92#way       nwn              text     linear
93#way       route_pref_color text     linear
94#way       route_name       text     linear
95
Note: See TracBrowser for help on using the repository browser.