diff --git a/scripts/rebuild-overview-tiles.sh b/scripts/rebuild-overview-tiles.sh index a339837..cbdc665 100644 --- a/scripts/rebuild-overview-tiles.sh +++ b/scripts/rebuild-overview-tiles.sh @@ -110,30 +110,7 @@ mc mv "${MINIO_ALIAS}/${MINIO_BUCKET}/overview_new.pmtiles" "${MINIO_ALIAS}/${MI echo "[$(date -Iseconds)] Upload complete." -# ── Step 4: Warm nginx tile cache (detail layers only — overview served from PMTiles) ── -TILE_CACHE="${TILE_CACHE_URL:-http://10.10.10.166:3010}" -echo "[$(date -Iseconds)] Warming tile cache for detail layers..." -# Warm popular z14-z16 tiles for Bucharest + Cluj (Martin-served detail layers) -for z in 14 15; do - for source in gis_terenuri gis_cladiri; do - # Bucharest - for x in $(seq 9200 9220); do - for y in $(seq 5960 5975); do - echo "${TILE_CACHE}/${source}/${z}/${x}/${y}" - done - done - # Cluj - for x in $(seq 9058 9068); do - for y in $(seq 5842 5852); do - echo "${TILE_CACHE}/${source}/${z}/${x}/${y}" - done - done - done -done | xargs -P 8 -I {} curl -sf -o /dev/null {} 2>/dev/null || true - -echo "[$(date -Iseconds)] Cache warming complete." - -# ── Step 5: Cleanup ── +# ── Step 4: Cleanup ── rm -f uats_z0.fgb uats_z5.fgb uats_z8.fgb uats_z12.fgb administrativ.fgb \ terenuri_overview.fgb cladiri_overview.fgb "$OUTPUT_FILE" echo "[$(date -Iseconds)] Rebuild finished successfully."