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

Last change on this file since 26708 was 26594, checked in by giggls, 8 years ago

2 minor changes:

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