Tiles: DACH + alle Anrainer (15 Länder) + Einzel-PBFs nach Merge freigeben
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.
This commit is contained in:
parent
c7201aa07b
commit
d11794355c
1 changed files with 6 additions and 2 deletions
8
Makefile
8
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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue