From d11794355c08054eb426b65d13fa8cd5cf36ed2b Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 5 Jun 2026 16:15:20 +0200 Subject: [PATCH] =?UTF-8?q?Tiles:=20DACH=20+=20alle=20Anrainer=20(15=20L?= =?UTF-8?q?=C3=A4nder)=20+=20Einzel-PBFs=20nach=20Merge=20freigeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TILES_REGIONS auf germany/austria/switzerland + france/italy/czech-republic/ poland/slovakia/hungary/slovenia/netherlands/belgium/luxembourg/denmark/ liechtenstein erweitert. Output bleibt dach.pmtiles (Frontend-Name stabil). Nach time-filter werden History + Einzel-PBFs gelöscht → ~27 GB weniger Spitzen-Plattenplatz vor planetiler. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f1db7cd..e8d24b1 100644 --- a/Makefile +++ b/Makefile @@ -150,7 +150,10 @@ staging-db: check-ssh # NICHT im Image — wird per Range-Route (/tiles) ausgeliefert. # ---------------------------------------------------------- TILES_DIR := tiles/build -TILES_REGIONS := germany austria switzerland +# DACH + alle angrenzenden Länder (15). Reihenfolge egal — osmium merge -H + time-filter +# dedupliziert Grenz-Nodes. Output bleibt dach.pmtiles (Frontend referenziert den Namen). +TILES_REGIONS := germany austria switzerland france italy czech-republic poland \ + slovakia hungary slovenia netherlands belgium luxembourg denmark liechtenstein PLANETILER_IMAGE := ghcr.io/onthegomap/planetiler:latest TILES_TARGET := $(if $(filter prod,$(ENV)),$(DS_PATH),$(DS_PATH_STAGING)) @@ -166,7 +169,8 @@ tiles: @# liefert genau eine Version pro ID (planetiler braucht eindeutige, sortierte IDs). @osmium merge -H $(foreach r,$(TILES_REGIONS),$(TILES_DIR)/$(r).osm.pbf) -o $(TILES_DIR)/dach-hist.osm.pbf --overwrite @osmium time-filter $(TILES_DIR)/dach-hist.osm.pbf -o $(TILES_DIR)/dach.osm.pbf --overwrite - @rm -f $(TILES_DIR)/dach-hist.osm.pbf + @# History + Einzel-PBFs jetzt freigeben (spart ~Quellsumme an Spitzen-Plattenplatz vor planetiler). + @rm -f $(TILES_DIR)/dach-hist.osm.pbf $(foreach r,$(TILES_REGIONS),$(TILES_DIR)/$(r).osm.pbf) @echo "→ planetiler → dach.pmtiles (disk-backed mmap)..." @docker run --rm -v "$(CURDIR)/$(TILES_DIR):/data" $(PLANETILER_IMAGE) \ --osm-path=/data/dach.osm.pbf --download --output=/data/dach.pmtiles --force \