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

Last change on this file since 15118 was 14703, checked in by stevechilton, 11 years ago

service added for parking_aisle

File size: 4.8 KB
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   addr:flats   text         polygon
32node,way   addr:housenumber    text  linear
33node,way   addr:interpolation  text  linear
34node,way   admin_level  text         linear
35node,way   aerialway    text         linear
36node,way   aeroway      text         polygon
37node,way   amenity      text         nocache,polygon
38node,way   area         text         # hard coded support for area=1/yes => polygon is in osm2pgsql
39node,way   barrier      text         linear
40node,way   bicycle      text         nocache
41node,way   bridge       text         linear
42node,way   boundary     text         linear
43node,way   building     text         polygon
44node         capital      text         linear
45node,way   construction text         linear
46node,way   cutting      text         linear
47node,way   disused      text         linear
48node       ele          text         linear
49node,way   embankment   text         linear
50node,way   foot         text         linear
51node,way   highway      text         linear
52node,way   historic     text         polygon
53node,way   horse        text         linear
54node,way   junction     text         linear
55node,way   landuse      text         polygon
56node,way   layer        text         linear
57node,way   learning     text         linear
58node,way   leisure      text         polygon
59node,way   lock         text         linear
60node,way   man_made     text         polygon
61node,way   military     text         polygon
62node,way   motorcar     text         linear
63node,way   name         text         linear
64node,way   natural      text         polygon  # natural=coastline tags are discarded by a hard coded rule in osm2pgsql
65node,way   oneway       text         linear
66node       poi          text
67node,way   power        text         polygon
68node,way   power_source text         linear
69node,way   place        text         linear
70node,way   railway      text         linear
71node,way   ref          text         linear
72node,way   religion     text         nocache
73node,way   residence    text         linear
74node,way   route        text         linear
75node,way   service      text         linear
76node,way   sport        text         polygon
77node,way   tourism      text         polygon
78way        tracktype    text         linear
79node,way   tunnel       text         linear
80node,way   waterway     text         polygon
81node,way   width        text         linear
82node,way   wood         text         linear
83node,way   z_order      int4         linear # This is calculated during import
84way        way_area     real                # This is calculated during import
85
86# If you're interested in bicycle routes, you may want the following fields
87# To make these work you need slim mode or the necessary data won't be remembered.
88#way       lcn_ref      text     linear
89#way       rcn_ref      text     linear
90#way       ncn_ref      text     linear
91#way       lcn          text     linear
92#way       rcn          text     linear
93#way       ncn          text     linear
94#way       lwn_ref      text     linear
95#way       rwn_ref      text     linear
96#way       nwn_ref          text     linear
97#way       lwn              text     linear
98#way       rwn              text     linear
99#way       nwn              text     linear
100#way       route_pref_color text     linear
101#way       route_name       text     linear
102
Note: See TracBrowser for help on using the repository browser.