From f5516432e3516c7aa9fc17116afb9577cdc37568 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 31 Jul 2025 12:01:23 +0200 Subject: [PATCH] Scripts(offline): skip already existing columns --- scripts/generatePmTilesExtracts.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/generatePmTilesExtracts.ts b/scripts/generatePmTilesExtracts.ts index ecde64b897..1db5b4772a 100644 --- a/scripts/generatePmTilesExtracts.ts +++ b/scripts/generatePmTilesExtracts.ts @@ -41,11 +41,12 @@ class GeneratePmTilesExtracts extends Script { const boundary = 2 << (z - 1) for (let x = 0; x < boundary; x++) { console.log("Checking ", this.getFilename(z, x, boundary), z, x, boundary) - if (existsSync(this.getFilename(z, x, boundary))) { + if (existsSync(this.getFilename(z, x, boundary - 1))) { // Skip this column, already exists console.log("Skipping column ", x, "at zoom", z) continue } + for (let y = 0; y < boundary; y++) { yield this.generateArchive(z, x, y, maxzoom) }