|
1 | | -Import program and scripts. |
| 1 | +# Import program and scripts. |
2 | 2 |
|
3 | | -Import program is using moodified libosmscout library that can be installed |
4 | | -by `install_deps.sh` script. |
| 3 | +Import program is using Nominatim database and filters the data using boundary |
| 4 | +given in GeoJSON file. |
5 | 5 |
|
6 | | -To generate larger amount of missing tags for the input map stylesheet |
7 | | -and whitelist, the scripts under `scripts/tags` (from main directory |
8 | | -of the project) can be used. |
| 6 | +The boundary file can be generated from POLY files as provided by Geofabrik or |
| 7 | +given in hierarchy folder of OSM Scout Server (see |
| 8 | +https://github.com/rinigus/osmscout-server/tree/master/scripts/import/hierarchy). |
| 9 | +As a converter, [poly2geojson](https://github.com/frafra/poly2geojson/) can be |
| 10 | +used. |
9 | 11 |
|
10 | | -Used: |
| 12 | +Data can be filtered using data/priority.list and data/skip.list files. Those |
| 13 | +list OSM tags in the form where tag type and its value are merged using `_`. Out |
| 14 | +of the lists, the priority one gives locations that would be kept in the |
| 15 | +database even without names associated with them for reverse geocoding. The |
| 16 | +"skip" list allows to specify locations that would be dropped by location type. |
| 17 | + |
| 18 | +To generate larger amount of tags for the priority list, the scripts |
| 19 | +under `scripts/tags` (from main directory of the project) can be used. |
| 20 | + |
| 21 | +## Used |
11 | 22 |
|
12 | 23 | - Nominatim Docker https://github.com/mediagis/nominatim-docker/ |
13 | | -- For testing: Nominatim-UI https://github.com/osm-search/nominatim-ui |
| 24 | +- For testing: Nominatim-UI https://github.com/osm-search/nominatim-ui |
| 25 | +- poly2geojson: https://github.com/frafra/poly2geojson |
0 commit comments