source: subversion/applications/utils/export/osm2pgsql-intarray/default.style @ 26438

Last change on this file since 26438 was 25944, checked in by ldp, 9 years ago

Add culvert,harbour,intermittent,population to be prepared for possible usage

File size: 5.7 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:housename      text  linear
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   brand        text         linear
42node,way   bridge       text         linear
43node,way   boundary     text         linear
44node,way   building     text         polygon
45node       capital      text         linear
46node,way   construction text         linear
47node,way   covered      text         linear
48node,way   culvert      text         linear
49node,way   cutting      text         linear
50node,way   denomination text         linear
51node,way   disused      text         linear
52node       ele          text         linear
53node,way   embankment   text         linear
54node,way   foot         text         linear
55node,way   generator:source    text  linear
56node,way   harbour      text         polygon
57node,way   highway      text         linear
58node,way   historic     text         polygon
59node,way   horse        text         linear
60node,way   intermittent text         linear
61node,way   junction     text         linear
62node,way   landuse      text         polygon
63node,way   layer        text         linear
64node,way   leisure      text         polygon
65node,way   lock         text         linear
66node,way   man_made     text         polygon
67node,way   military     text         polygon
68node,way   motorcar     text         linear
69node,way   name         text         linear
70node,way   natural      text         polygon  # natural=coastline tags are discarded by a hard coded rule in osm2pgsql
71node,way   oneway       text         linear
72node,way   operator     text         linear
73node       poi          text
74node,way   population   text         linear
75node,way   power        text         polygon
76node,way   power_source text         linear
77node,way   place        text         polygon
78node,way   railway      text         linear
79node,way   ref          text         linear
80node,way   religion     text         nocache
81node,way   route        text         linear
82node,way   service      text         linear
83node,way   shop         text         polygon
84node,way   sport        text         polygon
85node,way   surface      text         linear
86node,way   toll         text         linear
87node,way   tourism      text         polygon
88node,way   tower:type   text         linear
89way        tracktype    text         linear
90node,way   tunnel       text         linear
91node,way   water        text         polygon
92node,way   waterway     text         polygon
93node,way   wetland      text         polygon
94node,way   width        text         linear
95node,way   wood         text         linear
96node,way   z_order      int4         linear # This is calculated during import
97way        way_area     real                # This is calculated during import
98
99# If you're interested in bicycle routes, you may want the following fields
100# To make these work you need slim mode or the necessary data won't be remembered.
101#way       lcn_ref      text     linear
102#way       rcn_ref      text     linear
103#way       ncn_ref      text     linear
104#way       lcn          text     linear
105#way       rcn          text     linear
106#way       ncn          text     linear
107#way       lwn_ref      text     linear
108#way       rwn_ref      text     linear
109#way       nwn_ref          text     linear
110#way       lwn              text     linear
111#way       rwn              text     linear
112#way       nwn              text     linear
113#way       route_pref_color text     linear
114#way       route_name       text     linear
115
116# The following entries can be used with the --extra-attributes option
117# to include the username, userid, version & timstamp in the DB
118#node,way  osm_user       text
119#node,way  osm_uid        text
120#node,way  osm_version    text
121#node,way  osm_timestamp  text
Note: See TracBrowser for help on using the repository browser.