This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
terra4d:osmserver [2023/04/21 13:33] editor created |
terra4d:osmserver [2026/02/12 15:46] (current) editor |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== OpenStreetMap tile server ====== | ====== OpenStreetMap tile server ====== | ||
| + | |||
| + | For a detailed instruction please check her: [[https:// | ||
| ===== Installation ===== | ===== Installation ===== | ||
| Line 6: | Line 8: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| - | * Download the OSM data (.osm.pbf) from [[https:// | ||
| * Check the documentation of the [[https:// | * Check the documentation of the [[https:// | ||
| - | * Create a docker volume for the OSM data: '' | + | |
| - | | + | * Download the OSM data (.osm.pbf) from [[https:// |
| - | -v / | + | * Import the downloaded .osm.pbf: |
| - | -v osm-data:/ | + | docker run \ |
| - | overv/ | + | -v / |
| - | import'' | + | -v osm-data:/ |
| - | | + | overv/ |
| - | -p 8080:80 | + | import |
| - | -v osm-data:/ | + | </ |
| - | -d overv/ | + | |
| + | docker | ||
| + | -e DOWNLOAD_PBF=https:// | ||
| + | -e DOWNLOAD_POLY=https:// | ||
| + | -v osm-data:/ | ||
| + | overv/ | ||
| + | import | ||
| + | </ | ||
| + | * The processing can take a long time (depending on assign/used CPU/ | ||
| + | * Note: The import is limited to one dataset (one pbf file). If you need more than one country/ | ||
| + | * using [[https:// | ||
| + | osmium merge washington.pbf oregon.pbf california.pbf -o westcoast.pbf | ||
| + | </ | ||
| + | * using [[https:// | ||
| + | osmconvert washington.pbf --out-o5m | osmconvert - oregon.pbf -o=westcoast.pbf | ||
| + | </ | ||
| + | * Finally start the tile server: < | ||
| + | --name osm-tile-server \ | ||
| + | -p 8080: | ||
| + | -v osm-data:/ | ||
| + | -d overv/ | ||
| run | run | ||
| - | | + | |
| + | |||
| + | ====== Styles ====== | ||
| + | * [[https:// | ||
| + | ====== Internal documentation ====== | ||
| + | * [[https:// | ||