]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/server/dist/share/gdal/osmconf.ini
Adding pkg-precompiled tileserver-mapnik to avoid npm install
[simantics/district.git] / org.simantics.maps.server / server / dist / share / gdal / osmconf.ini
1 #
2 # Configuration file for OSM import
3 #
4
5 # put here the name of keys for ways that are assumed to be polygons if they are closed
6 # see http://wiki.openstreetmap.org/wiki/Map_Features
7 closed_ways_are_polygons=aeroway,amenity,boundary,building,craft,geological,historic,landuse,leisure,military,natural,office,place,shop,sport,tourism
8
9 # comment to avoid laundering of keys ( ':' turned into '_' )
10 attribute_name_laundering=yes
11
12 # uncomment to report all nodes, including the ones without any (significant) tag
13 #report_all_nodes=yes
14
15 # uncomment to report all ways, including the ones without any (significant) tag
16 #report_all_ways=yes
17
18 [points]
19 # common attributes
20 osm_id=yes
21 osm_version=no
22 osm_timestamp=no
23 osm_uid=no
24 osm_user=no
25 osm_changeset=no
26
27 # keys to report as OGR fields
28 attributes=name,barrier,highway,ref,address,is_in,place,man_made
29 # keys that, alone, are not significant enough to report a node as a OGR point
30 unsignificant=created_by,converted_by,source,time,ele,attribution
31 # keys that should NOT be reported in the "other_tags" field
32 ignore=created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
33 # uncomment to avoid creation of "other_tags" field
34 #other_tags=no
35 # uncomment to create "all_tags" field. "all_tags" and "other_tags" are exclusive
36 #all_tags=yes
37
38 [lines]
39 # common attributes
40 osm_id=yes
41 osm_version=no
42 osm_timestamp=no
43 osm_uid=no
44 osm_user=no
45 osm_changeset=no
46
47 # keys to report as OGR fields
48 attributes=name,highway,waterway,aerialway,barrier,man_made
49
50 # type of attribute 'foo' can be changed with something like
51 #foo_type=Integer/Real/String/DateTime
52
53 # keys that should NOT be reported in the "other_tags" field
54 ignore=created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
55 # uncomment to avoid creation of "other_tags" field
56 #other_tags=no
57 # uncomment to create "all_tags" field. "all_tags" and "other_tags" are exclusive
58 #all_tags=yes
59
60 #computed_attributes must appear before the keywords _type and _sql
61 computed_attributes=z_order
62 z_order_type=Integer
63 # Formula based on https://github.com/openstreetmap/osm2pgsql/blob/master/style.lua#L13
64 # [foo] is substituted by value of tag foo. When substitution is not wished, the [ character can be escaped with \[ in literals
65 z_order_sql="SELECT (CASE [highway] WHEN 'minor' THEN 3 WHEN 'road' THEN 3 WHEN 'unclassified' THEN 3 WHEN 'residential' THEN 3 WHEN 'tertiary_link' THEN 4 WHEN 'tertiary' THEN 4 WHEN 'secondary_link' THEN 6 WHEN 'secondary' THEN 6 WHEN 'primary_link' THEN 7 WHEN 'primary' THEN 7 WHEN 'trunk_link' THEN 8 WHEN 'trunk' THEN 8 WHEN 'motorway_link' THEN 9 WHEN 'motorway' THEN 9 ELSE 0 END) + (CASE WHEN [bridge] IN ('yes', 'true', '1') THEN 10 ELSE 0 END) + (CASE WHEN [tunnel] IN ('yes', 'true', '1') THEN -10 ELSE 0 END) + (CASE WHEN [railway] IS NOT NULL THEN 5 ELSE 0 END) + (CASE WHEN [layer] IS NOT NULL THEN 10 * CAST([layer] AS INTEGER) ELSE 0 END)"
66
67 [multipolygons]
68 # common attributes
69 # note: for multipolygons, osm_id=yes instantiates a osm_id field for the id of relations
70 # and a osm_way_id field for the id of closed ways. Both fields are exclusively set.
71 osm_id=yes
72 osm_version=no
73 osm_timestamp=no
74 osm_uid=no
75 osm_user=no
76 osm_changeset=no
77
78 # keys to report as OGR fields
79 attributes=name,type,aeroway,amenity,admin_level,barrier,boundary,building,craft,geological,historic,land_area,landuse,leisure,man_made,military,natural,office,place,shop,sport,tourism
80 # keys that should NOT be reported in the "other_tags" field
81 ignore=area,created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
82 # uncomment to avoid creation of "other_tags" field
83 #other_tags=no
84 # uncomment to create "all_tags" field. "all_tags" and "other_tags" are exclusive
85 #all_tags=yes
86
87 [multilinestrings]
88 # common attributes
89 osm_id=yes
90 osm_version=no
91 osm_timestamp=no
92 osm_uid=no
93 osm_user=no
94 osm_changeset=no
95
96 # keys to report as OGR fields
97 attributes=name,type
98 # keys that should NOT be reported in the "other_tags" field
99 ignore=area,created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
100 # uncomment to avoid creation of "other_tags" field
101 #other_tags=no
102 # uncomment to create "all_tags" field. "all_tags" and "other_tags" are exclusive
103 #all_tags=yes
104
105 [other_relations]
106 # common attributes
107 osm_id=yes
108 osm_version=no
109 osm_timestamp=no
110 osm_uid=no
111 osm_user=no
112 osm_changeset=no
113
114 # keys to report as OGR fields
115 attributes=name,type
116 # keys that should NOT be reported in the "other_tags" field
117 ignore=area,created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
118 # uncomment to avoid creation of "other_tags" field
119 #other_tags=no
120 # uncomment to create "all_tags" field. "all_tags" and "other_tags" are exclusive
121 #all_tags=yes