source: subversion/applications/utils/export/osm2pgsql/ @ 12445

Last change on this file since 12445 was 12383, checked in by jonb, 11 years ago

Add ele column as used by latest osm.xml

File size: 4.4 KB
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:
8# 1. Generate this file directly from the mapnik XML config, so it's always
9# optimal
11# 2. Extend it so it can understand that highway=tertiary is for ways and
12# highway=bus_stop is for nodes
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!
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)
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
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   bicycle      text         nocache
37node,way   bridge       text         linear
38node,way   boundary     text         linear
39node,way   building     text         polygon
40node,way   cutting      text         linear
41node,way   disused      text         linear
42node       ele          text         linear
43node,way   embankment   text         linear
44node,way   foot         text         linear
45node,way   highway      text         linear
46node,way   historic     text         polygon
47node,way   horse        text         linear
48node,way   junction     text         linear
49node,way   landuse      text         polygon
50node,way   layer        text         linear
51node,way   learning     text         linear
52node,way   leisure      text         polygon
53node,way   man_made     text         polygon
54node,way   military     text         polygon
55node,way   motorcar     text         linear
56node,way   name         text         linear
57node,way   natural      text         polygon  # natural=coastline tags are discarded by a hard coded rule in osm2pgsql
58node,way   oneway       text         linear
59node       poi          text
60node,way   power        text         polygon
61node,way   power_source text         linear
62node,way   place        text         linear
63node,way   railway      text         linear
64node,way   ref          text         linear
65node,way   religion     text         nocache
66node,way   residence    text         linear
67node,way   route        text         linear
68node,way   sport        text         polygon
69node,way   tourism      text         polygon
70way        tracktype    text         linear
71node,way   tunnel       text         linear
72node,way   waterway     text         polygon
73node,way   width        text         linear
74node,way   wood         text         linear
75node,way   z_order      int4         linear # This is calculated during import
76way        way_area     real                # This is calculated during import
78# If you're interested in bicycle routes, you may want the following fields
79# To make these work you need slim mode or the necessary data won't be remembered.
80#way       lcn_ref      text     linear
81#way       rcn_ref      text     linear
82#way       ncn_ref      text     linear
83#way       lcn          text     linear
84#way       rcn          text     linear
85#way       ncn          text     linear
86#way       lwn_ref      text     linear
87#way       rwn_ref      text     linear
88#way       nwn_ref          text     linear
89#way       lwn              text     linear
90#way       rwn              text     linear
91#way       nwn              text     linear
92#way       route_pref_color text     linear
93#way       route_name       text     linear
Note: See TracBrowser for help on using the repository browser.