User Tools

Site Tools


terra4d:osmserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
terra4d:osmserver [2026/02/11 08:12]
editor
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://switch2osm.org/serving-tiles/using-a-docker-container/]]
  
 ===== Installation ===== ===== Installation =====
Line 24: Line 26:
     import     import
 </code> </code>
 +  * The processing can take a long time (depending on assign/used CPU/disk/memory). The processing of Italy (about 2G of PBF data) takes about 2 hours.
   * Note: The import is limited to one dataset (one pbf file). If you need more than one country/dataset you have to combine the datasets first, there are two options:   * Note: The import is limited to one dataset (one pbf file). If you need more than one country/dataset you have to combine the datasets first, there are two options:
       * using [[https://docs.osmcode.org/osmium/latest/osmium-merge.html|osmium-merge]]: <code>       * using [[https://docs.osmcode.org/osmium/latest/osmium-merge.html|osmium-merge]]: <code>
Line 31: Line 34:
 osmconvert washington.pbf --out-o5m | osmconvert - oregon.pbf -o=westcoast.pbf osmconvert washington.pbf --out-o5m | osmconvert - oregon.pbf -o=westcoast.pbf
 </code> </code>
-  * Finally start the tile server: <code>docker run  +  * Finally start the tile server: <code>docker run \ 
-    --name osm-tile-server +    --name osm-tile-server \ 
-    -p 8080:80  +    -p 8080:80  \ 
-    -v osm-data:/data/database/  +    -v osm-data:/data/database/ \ 
-    -d overv/openstreetmap-tile-server +    -d overv/openstreetmap-tile-server \
     run     run
     </code>     </code>
  
  
 +
 +====== Styles ======
 +  * [[https://openmaptiles.org/styles/]]
 +
 +====== Internal documentation ======
 + * [[https://gitlab.fn.terra4d.de/gitlab/fastprotect/terra3d/-/wikis/OpenStreetMap]]
  
terra4d/osmserver.1770797576.txt.gz · Last modified: 2026/02/11 08:12 by editor