Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
openstreetmap [2025/07/21 09:26] jango |
openstreetmap [2025/07/21 09:29] (aktuell) jango |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | Siehe auch [[https:// | + | Siehe auch [[https:// |
| [[https:// | [[https:// | ||
| [[https:// | [[https:// | ||
| + | < | ||
| + | curl https:// | ||
| + | curl https:// | ||
| + | </ | ||
| =====Python===== | =====Python===== | ||
| Zeile 321: | Zeile 325: | ||
| </ | </ | ||
| - | =====Tileserver===== | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | <code yaml> | ||
| - | services: | ||
| - | |||
| - | tiles: | ||
| - | restart: unless-stopped | ||
| - | container_name: | ||
| - | image: overv/ | ||
| - | volumes: | ||
| - | - ./ | ||
| - | - ./ | ||
| - | ports: | ||
| - | - " | ||
| - | environment: | ||
| - | THREADS: 2 | ||
| - | ALLOW_CORS: " | ||
| - | command: " | ||
| - | shm_size: 64m | ||
| - | |||
| - | tiles-import: | ||
| - | container_name: | ||
| - | image: overv/ | ||
| - | volumes: | ||
| - | - ./ | ||
| - | - ./ | ||
| - | - ./ | ||
| - | environment: | ||
| - | THREADS: 10 | ||
| - | ALLOW_CORS: " | ||
| - | command: " | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | #!/bin/bash | ||
| - | |||
| - | set -e | ||
| - | |||
| - | PBF_DIR=" | ||
| - | PBF_AT=" | ||
| - | PBF_WIEN=" | ||
| - | mkdir -p " | ||
| - | |||
| - | # Bounding Box Wien | ||
| - | BBOX=" | ||
| - | |||
| - | # PBF herunterladen | ||
| - | if [ ! -f " | ||
| - | echo "Lade Österreich Daten herunter..." | ||
| - | wget -O " | ||
| - | fi | ||
| - | |||
| - | # Osmium prüfen | ||
| - | if ! command -v osmium &>/ | ||
| - | sudo apt install -y osmium-tool | ||
| - | fi | ||
| - | |||
| - | # Wien erzeugen | ||
| - | echo " | ||
| - | osmium extract --bbox=" | ||
| - | |||
| - | # Info | ||
| - | echo "" | ||
| - | echo " | ||
| - | echo " | ||
| - | echo "" | ||
| - | echo " | ||
| - | echo "" | ||
| - | echo "Achte darauf, dass dein docker-compose.yaml diesen Mount hat:" | ||
| - | echo "" | ||
| - | echo " | ||
| - | echo "" | ||
| - | echo " | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | docker compose up tiles-import | ||
| - | docker compose up -d tiles | ||
| - | </ | ||