Browse Source

Add latest imposm release.

feature/opening-hours.rb
Bèr Kessels 1 year ago
parent
commit
ea82674cc3

+ 231
- 0
vendor/imposm-0.6.0-alpha.4-linux-x86-64/README.md View File

@@ -0,0 +1,231 @@
1
+Imposm
2
+======
3
+
4
+Imposm is an importer for OpenStreetMap data. It reads PBF files and imports the data into PostgreSQL/PostGIS. It can also automatically update the database with the latest changes from OSM.
5
+
6
+It is designed to create databases that are optimized for rendering (i.e. generating tiles or for WMS services).
7
+
8
+Imposm >=3 is written in Go and it is a complete rewrite of the previous Python implementation.
9
+Configurations/mappings and cache files are not compatible with Imposm 2, but they share a similar architecture.
10
+
11
+The development of Imposm is sponsored by [Omniscale](https://omniscale.com/).
12
+
13
+
14
+Features
15
+--------
16
+
17
+* High-performance
18
+* Diff support
19
+* Custom database schemas
20
+* Generalized geometries
21
+
22
+
23
+### In detail
24
+
25
+
26
+- High performance:
27
+  Parallel from the ground up. It distributes parsing and processing to all available CPU cores.
28
+
29
+- Custom database schemas:
30
+  Creates tables for different data types. This allows easier styling and better performance for rendering in WMS or tile services.
31
+
32
+- Unify values:
33
+  For example, the boolean values `1`, `on`, `true` and `yes` all become ``TRUE``.
34
+
35
+- Filter by tags and values:
36
+  Only import data you are going to render/use.
37
+
38
+- Efficient nodes cache:
39
+  It is necessary to store all nodes to build ways and relations. Imposm uses a file-based key-value database to cache this data.
40
+
41
+- Generalized tables:
42
+  Automatically creates tables with lower spatial resolutions, perfect for rendering large road networks in low resolutions.
43
+
44
+- Limit to polygons:
45
+  Limit imported geometries to polygons from GeoJSON, for city/state/country imports.
46
+
47
+- Easy deployment:
48
+  Single binary with only runtime dependencies to common libs (GEOS and LevelDB).
49
+
50
+- Automatic OSM updates:
51
+  Includes background service (`imposm run`) that automatically downloads and imports the latest OSM changes.
52
+
53
+- Route relations:
54
+  Import all relation types including routes.
55
+
56
+- Support for table namespace (PostgreSQL schema)
57
+
58
+
59
+Performance
60
+-----------
61
+
62
+* Imposm makes full use of all available CPU cores
63
+* Imposm uses bulk inserts into PostgreSQL with `COPY FROM`
64
+* Imposm uses efficient intermediate caches for reduced IO load during ways and relations building
65
+
66
+
67
+An import in diff-mode on a Hetzner PX121-SSD server (Intel Xeon E5-1650 v3 Hexa-Core, 256GB RAM and SSD RAID 1) of a 36GB planet PBF (2017-08-10) with generalized tables and spatial indices, etc. takes around 6:30h. This is for an import that is ready for minutely updates. The non-diff mode is even faster.
68
+
69
+It's recommended that the memory size of the server is roughly twice the size of the PBF extract you are importing. For example: You should have 64GB RAM or more for a current (2017) 36GB planet file, 8GB for a 4GB regional extract, etc.
70
+Imports without SSDs will take longer.
71
+
72
+Current status
73
+--------------
74
+
75
+Imposm is used in production but there is no official 3.0 release yet.
76
+Imposm >=3, successor of Imposm 2, was called "Imposm 3" and binaries were named `imposm3` during development. Since April 2018 the project is only called Imposm to allow semantic versioning beyond version 3.
77
+The repository will be renamed to github.com/omniscale/imposm in the future.
78
+
79
+### Planned features ###
80
+
81
+There are a few features we like to see in Imposm:
82
+
83
+* Support for other projections than EPSG:3857 or EPSG:4326
84
+* Custom field/filter functions
85
+* Official releases with binaries for more platforms
86
+
87
+There is no roadmap however, as the implementation of these features largely depends on external funding.
88
+
89
+Installation
90
+------------
91
+
92
+### Binary
93
+
94
+[Binary releases are available at GitHub.](https://github.com/omniscale/imposm3/releases)
95
+
96
+These builds are for x86 64bit Linux and require *no* further dependencies. Download, untar and start `imposm`.
97
+Binaries are compatible with Debian 8, Ubuntu 14.04 and SLES 12 (and newer versions). Older Imposm binaries (<=0.4) also support Debian 6, RHEL 6 and SLES 11.
98
+Older versions are available at <http://imposm.org/static/rel/>.
99
+
100
+### Source
101
+
102
+There are some dependencies:
103
+
104
+#### Compiler
105
+
106
+You need [Go >=1.6](http://golang.org).
107
+
108
+#### C/C++ libraries
109
+
110
+Other dependencies are [libleveldb][] and [libgeos][].
111
+Imposm was tested with recent versions of these libraries, but you might succeed with older versions.
112
+GEOS >=3.2 is recommended, since it became much more robust when handling invalid geometries.
113
+
114
+
115
+[libleveldb]: https://github.com/google/leveldb/
116
+[libgeos]: http://trac.osgeo.org/geos/
117
+
118
+#### Compile
119
+
120
+Create a [Go workspace](http://golang.org/doc/code.html) by creating the `GOPATH` directory for all your Go code, if you don't have one already:
121
+
122
+    mkdir -p go
123
+    cd go
124
+    export GOPATH=`pwd`
125
+
126
+Get the code and install Imposm:
127
+
128
+    go get github.com/omniscale/imposm3
129
+    go install github.com/omniscale/imposm3/cmd/imposm
130
+
131
+Done. You should now have an imposm binary in `$GOPATH/bin`.
132
+
133
+Go compiles to static binaries and so Imposm has no runtime dependencies to Go.
134
+Just copy the `imposm` binary to your server for deployment. The C/C++ libraries listed above are still required though.
135
+
136
+See also `packaging.sh` for instructions on how to build binary packages for Linux.
137
+
138
+#### LevelDB
139
+
140
+For better performance you can either use [HyperLevelDB][libhyperleveldb] as an in-place replacement for libleveldb or you can use LevelDB >1.21. You need to build Imposm with ``go build -tags="ldbpost121"`` or ``LEVELDB_POST_121=1 make build`` to enable optimizations available with LevelDB 1.21 and higher.
141
+
142
+[libhyperleveldb]: https://github.com/rescrv/HyperLevelDB
143
+
144
+Usage
145
+-----
146
+
147
+`imposm` has multiple subcommands. Use `imposm import` for basic imports.
148
+
149
+For a simple import:
150
+
151
+    imposm import -connection postgis://user:password@host/database \
152
+        -mapping mapping.json -read /path/to/osm.pbf -write
153
+
154
+You need a JSON file with the target database mapping. See `example-mapping.json` to get an idea what is possible with the mapping.
155
+
156
+Imposm creates all new tables inside the `import` table schema. So you'll have `import.osm_roads` etc. You can change the tables to the `public` schema:
157
+
158
+    imposm import -connection postgis://user:passwd@host/database \
159
+        -mapping mapping.json -deployproduction
160
+
161
+
162
+You can write some options into a JSON configuration file:
163
+
164
+    {
165
+        "cachedir": "/var/local/imposm",
166
+        "mapping": "mapping.json",
167
+        "connection": "postgis://user:password@localhost:port/database"
168
+    }
169
+
170
+To use that config:
171
+
172
+    imposm import -config config.json [args...]
173
+
174
+For more options see:
175
+
176
+    imposm import -help
177
+
178
+
179
+Note: TLS/SSL support is disabled by default due to the lack of renegotiation support in Go's TLS implementation. You can re-enable encryption by setting the `PGSSLMODE` environment variable or the `sslmode` connection option to `require` or `verify-full`, eg: `-connect postgis://host/dbname?sslmode=require`. You will need to disable renegotiation support on your server to prevent connection errors on larger imports. You can do this by setting `ssl_renegotiation_limit` to 0 in your PostgreSQL server configuration.
180
+
181
+
182
+Documentation
183
+-------------
184
+
185
+The latest documentation can be found here: <http://imposm.org/docs/imposm3/latest/>
186
+
187
+Support
188
+-------
189
+
190
+There is a [mailing list at Google Groups](http://groups.google.com/group/imposm) for all questions. You can subscribe by sending an email to: `imposm+subscribe@googlegroups.com`
191
+
192
+For commercial support [contact Omniscale](http://omniscale.com/contact).
193
+
194
+Development
195
+-----------
196
+
197
+The source code is available at: <https://github.com/omniscale/imposm3/>
198
+
199
+You can report any issues at: <https://github.com/omniscale/imposm3/issues>
200
+
201
+License
202
+-------
203
+
204
+Imposm is released as open source under the Apache License 2.0. See LICENSE.
205
+
206
+All dependencies included as source code are released under a BSD-ish license. See LICENSE.dep.
207
+
208
+All dependencies included in binary releases are released under a BSD-ish license except the GEOS package.
209
+The GEOS package is released as LGPL3 and is linked dynamically. See LICENSE.bin.
210
+
211
+
212
+### Test ###
213
+
214
+#### Unit tests ####
215
+
216
+To run all unit tests:
217
+
218
+    make test-unit
219
+
220
+
221
+#### System tests ####
222
+
223
+There are system test that import and update OSM data and verify the database content.
224
+You need `osmosis` to create the test PBF files.
225
+There is a Makefile that creates all test files if necessary and then runs the test itself.
226
+
227
+    make test
228
+
229
+Call `make test-system` to skip the unit tests.
230
+
231
+WARNING: It uses your local PostgreSQL database (`imposm_test_import`, `imposm_test_production` and `imposm_test_backup` schema). Change the database with the standard `PGDATABASE`, `PGHOST`, etc. environment variables.

BIN
vendor/imposm-0.6.0-alpha.4-linux-x86-64/imposm View File


+ 1
- 0
vendor/imposm-0.6.0-alpha.4-linux-x86-64/imposm3 View File

@@ -0,0 +1 @@
1
+imposm

+ 1
- 0
vendor/imposm-0.6.0-alpha.4-linux-x86-64/lib/libgeos-3.6.2.so View File

@@ -0,0 +1 @@
1
+libgeos.so

BIN
vendor/imposm-0.6.0-alpha.4-linux-x86-64/lib/libgeos.so View File


BIN
vendor/imposm-0.6.0-alpha.4-linux-x86-64/lib/libgeos_c.so View File


+ 1
- 0
vendor/imposm-0.6.0-alpha.4-linux-x86-64/lib/libgeos_c.so.1 View File

@@ -0,0 +1 @@
1
+libgeos_c.so

BIN
vendor/imposm-0.6.0-alpha.4-linux-x86-64/lib/libleveldb.so View File


+ 890
- 0
vendor/imposm-0.6.0-alpha.4-linux-x86-64/mapping.json View File

@@ -0,0 +1,890 @@
1
+{
2
+    "areas": {
3
+        "area_tags": [
4
+            "buildings",
5
+            "landuse",
6
+            "leisure",
7
+            "natural",
8
+            "aeroway"
9
+        ],
10
+        "linear_tags": [
11
+            "highway",
12
+            "barrier"
13
+        ]
14
+    },
15
+    "generalized_tables": {
16
+        "waterareas_gen1": {
17
+            "source": "waterareas",
18
+            "sql_filter": "ST_Area(geometry)>50000.000000",
19
+            "tolerance": 50.0
20
+        },
21
+        "waterareas_gen0": {
22
+            "source": "waterareas_gen1",
23
+            "sql_filter": "ST_Area(geometry)>500000.000000",
24
+            "tolerance": 200.0
25
+        },
26
+        "roads_gen0": {
27
+            "source": "roads_gen1",
28
+            "sql_filter": null,
29
+            "tolerance": 200.0
30
+        },
31
+        "roads_gen1": {
32
+            "source": "roads",
33
+            "sql_filter": "type IN ('motorway', 'motorway_link', 'trunk', 'trunk_link', 'primary', 'primary_link', 'secondary', 'secondary_link', 'tertiary', 'tertiary_link') OR class IN('railway')",
34
+            "tolerance": 50.0
35
+        },
36
+        "waterways_gen0": {
37
+            "source": "waterways_gen1",
38
+            "sql_filter": null,
39
+            "tolerance": 200
40
+        },
41
+        "waterways_gen1": {
42
+            "source": "waterways",
43
+            "sql_filter": null,
44
+            "tolerance": 50.0
45
+        },
46
+        "landusages_gen1": {
47
+            "source": "landusages",
48
+            "sql_filter": "ST_Area(geometry)>50000.000000",
49
+            "tolerance": 50.0
50
+        },
51
+        "landusages_gen0": {
52
+            "source": "landusages_gen1",
53
+            "sql_filter": "ST_Area(geometry)>500000.000000",
54
+            "tolerance": 200.0
55
+        }
56
+    },
57
+    "tables": {
58
+        "landusages": {
59
+            "columns": [
60
+                {
61
+                    "type": "id",
62
+                    "name": "osm_id",
63
+                    "key": null
64
+                },
65
+                {
66
+                    "type": "geometry",
67
+                    "name": "geometry",
68
+                    "key": null
69
+                },
70
+                {
71
+                    "type": "string",
72
+                    "name": "name",
73
+                    "key": "name"
74
+                },
75
+                {
76
+                    "type": "mapping_value",
77
+                    "name": "type",
78
+                    "key": null
79
+                },
80
+                {
81
+                    "type": "webmerc_area",
82
+                    "name": "area",
83
+                    "key": null
84
+                },
85
+                {
86
+                    "args": {
87
+                        "values": [
88
+                            "land",
89
+                            "island",
90
+                            "heath",
91
+                            "railway",
92
+                            "industrial",
93
+                            "commercial",
94
+                            "retail",
95
+                            "residential",
96
+                            "quarry",
97
+                            "zoo",
98
+                            "vineyard",
99
+                            "orchard",
100
+                            "scrub",
101
+                            "hospital",
102
+                            "place_of_worship",
103
+                            "theatre",
104
+                            "cinema",
105
+                            "nature_reserve",
106
+                            "parking",
107
+                            "fuel",
108
+                            "baracks",
109
+                            "library",
110
+                            "college",
111
+                            "school",
112
+                            "university",
113
+                            "golf_course",
114
+                            "allotments",
115
+                            "common",
116
+                            "pitch",
117
+                            "sports_centre",
118
+                            "garden",
119
+                            "recreation_ground",
120
+                            "village_green",
121
+                            "wetland",
122
+                            "grass",
123
+                            "meadow",
124
+                            "wood",
125
+                            "farmland",
126
+                            "farm",
127
+                            "farmyard",
128
+                            "cemetery",
129
+                            "forest",
130
+                            "park",
131
+                            "playground",
132
+                            "footway",
133
+                            "pedestrian"
134
+                        ]
135
+                    },
136
+                    "type": "enumerate",
137
+                    "name": "z_order"
138
+                }
139
+            ],
140
+            "type": "polygon",
141
+            "mapping": {
142
+                "amenity": [
143
+                    "university",
144
+                    "school",
145
+                    "college",
146
+                    "library",
147
+                    "fuel",
148
+                    "parking",
149
+                    "cinema",
150
+                    "theatre",
151
+                    "place_of_worship",
152
+                    "hospital"
153
+                ],
154
+                "barrier": [
155
+                    "hedge"
156
+                ],
157
+                "leisure": [
158
+                    "park",
159
+                    "garden",
160
+                    "playground",
161
+                    "golf_course",
162
+                    "sports_centre",
163
+                    "pitch",
164
+                    "stadium",
165
+                    "common",
166
+                    "nature_reserve"
167
+                ],
168
+                "tourism": [
169
+                    "zoo"
170
+                ],
171
+                "natural": [
172
+                    "wood",
173
+                    "land",
174
+                    "scrub",
175
+                    "wetland",
176
+                    "heath"
177
+                ],
178
+                "man_made": [
179
+                    "pier"
180
+                ],
181
+                "aeroway": [
182
+                    "runway",
183
+                    "taxiway"
184
+                ],
185
+                "place": [
186
+                    "island"
187
+                ],
188
+                "military": [
189
+                    "barracks"
190
+                ],
191
+                "landuse": [
192
+                    "park",
193
+                    "forest",
194
+                    "residential",
195
+                    "retail",
196
+                    "commercial",
197
+                    "industrial",
198
+                    "railway",
199
+                    "cemetery",
200
+                    "grass",
201
+                    "farmyard",
202
+                    "farm",
203
+                    "farmland",
204
+                    "orchard",
205
+                    "vineyard",
206
+                    "wood",
207
+                    "meadow",
208
+                    "village_green",
209
+                    "recreation_ground",
210
+                    "allotments",
211
+                    "quarry"
212
+                ],
213
+                "highway": [
214
+                    "pedestrian",
215
+                    "footway"
216
+                ]
217
+            }
218
+        },
219
+        "buildings": {
220
+            "columns": [
221
+                {
222
+                    "type": "id",
223
+                    "name": "osm_id",
224
+                    "key": null
225
+                },
226
+                {
227
+                    "type": "geometry",
228
+                    "name": "geometry",
229
+                    "key": null
230
+                },
231
+                {
232
+                    "type": "string",
233
+                    "name": "name",
234
+                    "key": "name"
235
+                },
236
+                {
237
+                    "type": "mapping_value",
238
+                    "name": "type",
239
+                    "key": null
240
+                }
241
+            ],
242
+            "type": "polygon",
243
+            "mapping": {
244
+                "building": [
245
+                    "__any__"
246
+                ]
247
+            }
248
+        },
249
+        "places": {
250
+            "columns": [
251
+                {
252
+                    "type": "id",
253
+                    "name": "osm_id",
254
+                    "key": null
255
+                },
256
+                {
257
+                    "type": "geometry",
258
+                    "name": "geometry",
259
+                    "key": null
260
+                },
261
+                {
262
+                    "type": "string",
263
+                    "name": "name",
264
+                    "key": "name"
265
+                },
266
+                {
267
+                    "type": "mapping_value",
268
+                    "name": "type",
269
+                    "key": null
270
+                },
271
+                {
272
+                    "args": {
273
+                        "values": [
274
+                            "locality",
275
+                            "suburb",
276
+                            "hamlet",
277
+                            "village",
278
+                            "town",
279
+                            "city",
280
+                            "county",
281
+                            "region",
282
+                            "state",
283
+                            "country"
284
+                        ]
285
+                    },
286
+                    "type": "enumerate",
287
+                    "name": "z_order"
288
+                },
289
+                {
290
+                    "type": "integer",
291
+                    "name": "population",
292
+                    "key": "population"
293
+                }
294
+            ],
295
+            "type": "point",
296
+            "mapping": {
297
+                "place": [
298
+                    "country",
299
+                    "state",
300
+                    "region",
301
+                    "county",
302
+                    "city",
303
+                    "town",
304
+                    "village",
305
+                    "hamlet",
306
+                    "suburb",
307
+                    "locality"
308
+                ]
309
+            }
310
+        },
311
+        "transport_areas": {
312
+            "columns": [
313
+                {
314
+                    "type": "id",
315
+                    "name": "osm_id",
316
+                    "key": null
317
+                },
318
+                {
319
+                    "type": "geometry",
320
+                    "name": "geometry",
321
+                    "key": null
322
+                },
323
+                {
324
+                    "type": "string",
325
+                    "name": "name",
326
+                    "key": "name"
327
+                },
328
+                {
329
+                    "type": "mapping_value",
330
+                    "name": "type",
331
+                    "key": null
332
+                }
333
+            ],
334
+            "type": "polygon",
335
+            "mapping": {
336
+                "railway": [
337
+                    "station",
338
+                    "platform"
339
+                ],
340
+                "aeroway": [
341
+                    "aerodrome",
342
+                    "terminal",
343
+                    "helipad",
344
+                    "apron"
345
+                ]
346
+            }
347
+        },
348
+        "admin": {
349
+            "columns": [
350
+                {
351
+                    "type": "id",
352
+                    "name": "osm_id",
353
+                    "key": null
354
+                },
355
+                {
356
+                    "type": "geometry",
357
+                    "name": "geometry",
358
+                    "key": null
359
+                },
360
+                {
361
+                    "type": "string",
362
+                    "name": "name",
363
+                    "key": "name"
364
+                },
365
+                {
366
+                    "type": "mapping_value",
367
+                    "name": "type",
368
+                    "key": null
369
+                },
370
+                {
371
+                    "type": "integer",
372
+                    "name": "admin_level",
373
+                    "key": "admin_level"
374
+                }
375
+            ],
376
+            "type": "polygon",
377
+            "mapping": {
378
+                "boundary": [
379
+                    "administrative"
380
+                ]
381
+            }
382
+        },
383
+        "aeroways": {
384
+            "columns": [
385
+                {
386
+                    "type": "id",
387
+                    "name": "osm_id",
388
+                    "key": null
389
+                },
390
+                {
391
+                    "type": "geometry",
392
+                    "name": "geometry",
393
+                    "key": null
394
+                },
395
+                {
396
+                    "type": "string",
397
+                    "name": "name",
398
+                    "key": "name"
399
+                },
400
+                {
401
+                    "type": "mapping_value",
402
+                    "name": "type",
403
+                    "key": null
404
+                }
405
+            ],
406
+            "type": "linestring",
407
+            "mapping": {
408
+                "aeroway": [
409
+                    "runway",
410
+                    "taxiway"
411
+                ]
412
+            }
413
+        },
414
+        "waterways": {
415
+            "columns": [
416
+                {
417
+                    "type": "id",
418
+                    "name": "osm_id",
419
+                    "key": null
420
+                },
421
+                {
422
+                    "type": "geometry",
423
+                    "name": "geometry",
424
+                    "key": null
425
+                },
426
+                {
427
+                    "type": "string",
428
+                    "name": "name",
429
+                    "key": "name"
430
+                },
431
+                {
432
+                    "type": "mapping_value",
433
+                    "name": "type",
434
+                    "key": null
435
+                }
436
+            ],
437
+            "type": "linestring",
438
+            "mapping": {
439
+                "waterway": [
440
+                    "stream",
441
+                    "river",
442
+                    "canal",
443
+                    "drain",
444
+                    "ditch"
445
+                ],
446
+                "barrier": [
447
+                    "ditch"
448
+                ]
449
+            }
450
+        },
451
+        "barrierways": {
452
+            "columns": [
453
+                {
454
+                    "type": "id",
455
+                    "name": "osm_id",
456
+                    "key": null
457
+                },
458
+                {
459
+                    "type": "geometry",
460
+                    "name": "geometry",
461
+                    "key": null
462
+                },
463
+                {
464
+                    "type": "string",
465
+                    "name": "name",
466
+                    "key": "name"
467
+                },
468
+                {
469
+                    "type": "mapping_value",
470
+                    "name": "type",
471
+                    "key": null
472
+                }
473
+            ],
474
+            "type": "linestring",
475
+            "mapping": {
476
+                "barrier": [
477
+                    "city_wall",
478
+                    "fence",
479
+                    "hedge",
480
+                    "retaining_wall",
481
+                    "wall",
482
+                    "bollard",
483
+                    "gate",
484
+                    "spikes",
485
+                    "lift_gate",
486
+                    "kissing_gate",
487
+                    "embankment",
488
+                    "yes",
489
+                    "wire_fence"
490
+                ]
491
+            }
492
+        },
493
+        "transport_points": {
494
+            "columns": [
495
+                {
496
+                    "type": "id",
497
+                    "name": "osm_id",
498
+                    "key": null
499
+                },
500
+                {
501
+                    "type": "geometry",
502
+                    "name": "geometry",
503
+                    "key": null
504
+                },
505
+                {
506
+                    "type": "string",
507
+                    "name": "name",
508
+                    "key": "name"
509
+                },
510
+                {
511
+                    "type": "mapping_value",
512
+                    "name": "type",
513
+                    "key": null
514
+                },
515
+                {
516
+                    "type": "string",
517
+                    "name": "ref",
518
+                    "key": "ref"
519
+                }
520
+            ],
521
+            "type": "point",
522
+            "mapping": {
523
+                "railway": [
524
+                    "station",
525
+                    "halt",
526
+                    "tram_stop",
527
+                    "crossing",
528
+                    "level_crossing",
529
+                    "subway_entrance"
530
+                ],
531
+                "aeroway": [
532
+                    "aerodrome",
533
+                    "terminal",
534
+                    "helipad",
535
+                    "gate"
536
+                ],
537
+                "highway": [
538
+                    "motorway_junction",
539
+                    "turning_circle",
540
+                    "bus_stop"
541
+                ]
542
+            }
543
+        },
544
+        "amenities": {
545
+            "columns": [
546
+                {
547
+                    "type": "id",
548
+                    "name": "osm_id",
549
+                    "key": null
550
+                },
551
+                {
552
+                    "type": "geometry",
553
+                    "name": "geometry",
554
+                    "key": null
555
+                },
556
+                {
557
+                    "type": "string",
558
+                    "name": "name",
559
+                    "key": "name"
560
+                },
561
+                {
562
+                    "type": "mapping_value",
563
+                    "name": "type",
564
+                    "key": null
565
+                }
566
+            ],
567
+            "type": "point",
568
+            "mapping": {
569
+                "amenity": [
570
+                    "university",
571
+                    "school",
572
+                    "library",
573
+                    "fuel",
574
+                    "hospital",
575
+                    "fire_station",
576
+                    "police",
577
+                    "townhall"
578
+                ]
579
+            }
580
+        },
581
+        "barrierpoints": {
582
+            "columns": [
583
+                {
584
+                    "type": "id",
585
+                    "name": "osm_id",
586
+                    "key": null
587
+                },
588
+                {
589
+                    "type": "geometry",
590
+                    "name": "geometry",
591
+                    "key": null
592
+                },
593
+                {
594
+                    "type": "string",
595
+                    "name": "name",
596
+                    "key": "name"
597
+                },
598
+                {
599
+                    "type": "mapping_value",
600
+                    "name": "type",
601
+                    "key": null
602
+                }
603
+            ],
604
+            "type": "point",
605
+            "mapping": {
606
+                "barrier": [
607
+                    "block",
608
+                    "bollard",
609
+                    "cattle_grid",
610
+                    "chain",
611
+                    "cycle_barrier",
612
+                    "entrance",
613
+                    "horse_stile",
614
+                    "gate",
615
+                    "spikes",
616
+                    "lift_gate",
617
+                    "kissing_gate",
618
+                    "fence",
619
+                    "yes",
620
+                    "wire_fence",
621
+                    "toll_booth",
622
+                    "stile"
623
+                ]
624
+            }
625
+        },
626
+        "housenumbers_interpolated": {
627
+            "columns": [
628
+                {
629
+                    "type": "id",
630
+                    "name": "osm_id",
631
+                    "key": null
632
+                },
633
+                {
634
+                    "type": "geometry",
635
+                    "name": "geometry",
636
+                    "key": null
637
+                },
638
+                {
639
+                    "type": "string",
640
+                    "name": "name",
641
+                    "key": "name"
642
+                },
643
+                {
644
+                    "type": "mapping_value",
645
+                    "name": "type",
646
+                    "key": null
647
+                },
648
+                {
649
+                    "type": "string",
650
+                    "name": "addr:street",
651
+                    "key": "addr:street"
652
+                },
653
+                {
654
+                    "type": "string",
655
+                    "name": "addr:postcode",
656
+                    "key": "addr:postcode"
657
+                },
658
+                {
659
+                    "type": "string",
660
+                    "name": "addr:city",
661
+                    "key": "addr:city"
662
+                },
663
+                {
664
+                    "type": "string",
665
+                    "name": "addr:inclusion",
666
+                    "key": "addr:inclusion"
667
+                }
668
+            ],
669
+            "type": "linestring",
670
+            "mapping": {
671
+                "addr:interpolation": [
672
+                    "__any__"
673
+                ]
674
+            }
675
+        },
676
+        "roads": {
677
+            "columns": [
678
+                {
679
+                    "type": "id",
680
+                    "name": "osm_id",
681
+                    "key": null
682
+                },
683
+                {
684
+                    "type": "geometry",
685
+                    "name": "geometry",
686
+                    "key": null
687
+                },
688
+                {
689
+                    "type": "mapping_value",
690
+                    "name": "type",
691
+                    "key": null
692
+                },
693
+                {
694
+                    "type": "string",
695
+                    "name": "name",
696
+                    "key": "name"
697
+                },
698
+                {
699
+                    "type": "boolint",
700
+                    "name": "tunnel",
701
+                    "key": "tunnel"
702
+                },
703
+                {
704
+                    "type": "boolint",
705
+                    "name": "bridge",
706
+                    "key": "bridge"
707
+                },
708
+                {
709
+                    "type": "direction",
710
+                    "name": "oneway",
711
+                    "key": "oneway"
712
+                },
713
+                {
714
+                    "type": "string",
715
+                    "name": "ref",
716
+                    "key": "ref"
717
+                },
718
+                {
719
+                    "type": "wayzorder",
720
+                    "name": "z_order",
721
+                    "key": "layer"
722
+                },
723
+                {
724
+                    "type": "string",
725
+                    "name": "access",
726
+                    "key": "access"
727
+                },
728
+                {
729
+                    "type": "string",
730
+                    "name": "service",
731
+                    "key": "service"
732
+                },
733
+                {
734
+                    "type": "mapping_key",
735
+                    "name": "class",
736
+                    "key": null
737
+                }
738
+            ],
739
+            "type": "linestring",
740
+            "filters": {
741
+                "reject": {
742
+                    "area": [ "yes" ]
743
+                }
744
+            },
745
+            "mappings": {
746
+                "railway": {
747
+                    "mapping": {
748
+                        "railway": [
749
+                            "rail",
750
+                            "tram",
751
+                            "light_rail",
752
+                            "subway",
753
+                            "narrow_gauge",
754
+                            "preserved",
755
+                            "funicular",
756
+                            "monorail",
757
+                            "disused"
758
+                        ]
759
+                    }
760
+                },
761
+                "roads": {
762
+                    "mapping": {
763
+                        "man_made": [
764
+                            "pier",
765
+                            "groyne"
766
+                        ],
767
+                        "highway": [
768
+                            "motorway",
769
+                            "motorway_link",
770
+                            "trunk",
771
+                            "trunk_link",
772
+                            "primary",
773
+                            "primary_link",
774
+                            "secondary",
775
+                            "secondary_link",
776
+                            "tertiary",
777
+                            "tertiary_link",
778
+                            "road",
779
+                            "path",
780
+                            "track",
781
+                            "service",
782
+                            "footway",
783
+                            "bridleway",
784
+                            "cycleway",
785
+                            "steps",
786
+                            "pedestrian",
787
+                            "living_street",
788
+                            "unclassified",
789
+                            "residential",
790
+                            "raceway"
791
+                        ]
792
+                    }
793
+                }
794
+            }
795
+        },
796
+        "housenumbers": {
797
+            "columns": [
798
+                {
799
+                    "type": "id",
800
+                    "name": "osm_id",
801
+                    "key": null
802
+                },
803
+                {
804
+                    "type": "geometry",
805
+                    "name": "geometry",
806
+                    "key": null
807
+                },
808
+                {
809
+                    "type": "string",
810
+                    "name": "name",
811
+                    "key": "name"
812
+                },
813
+                {
814
+                    "type": "mapping_value",
815
+                    "name": "type",
816
+                    "key": null
817
+                },
818
+                {
819
+                    "type": "string",
820
+                    "name": "addr:street",
821
+                    "key": "addr:street"
822
+                },
823
+                {
824
+                    "type": "string",
825
+                    "name": "addr:postcode",
826
+                    "key": "addr:postcode"
827
+                },
828
+                {
829
+                    "type": "string",
830
+                    "name": "addr:city",
831
+                    "key": "addr:city"
832
+                }
833
+            ],
834
+            "type": "point",
835
+            "mapping": {
836
+                "addr:housenumber": [
837
+                    "__any__"
838
+                ]
839
+            }
840
+        },
841
+        "waterareas": {
842
+            "columns": [
843
+                {
844
+                    "type": "id",
845
+                    "name": "osm_id",
846
+                    "key": null
847
+                },
848
+                {
849
+                    "type": "geometry",
850
+                    "name": "geometry",
851
+                    "key": null
852
+                },
853
+                {
854
+                    "type": "string",
855
+                    "name": "name",
856
+                    "key": "name"
857
+                },
858
+                {
859
+                    "type": "mapping_value",
860
+                    "name": "type",
861
+                    "key": null
862
+                },
863
+                {
864
+                    "type": "webmerc_area",
865
+                    "name": "area",
866
+                    "key": null
867
+                }
868
+            ],
869
+            "type": "polygon",
870
+            "mapping": {
871
+                "waterway": [
872
+                    "riverbank"
873
+                ],
874
+                "landuse": [
875
+                    "basin",
876
+                    "reservoir"
877
+                ],
878
+                "natural": [
879
+                    "water"
880
+                ],
881
+                "amenity": [
882
+                    "swimming_pool"
883
+                ],
884
+                "leisure": [
885
+                    "swimming_pool"
886
+                ]
887
+            }
888
+        }
889
+    }
890
+}

Loading…
Cancel
Save