From 1bfe062595b10f322631aec5c1d37f33c2f96361 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 31 Jul 2025 12:07:25 +0200 Subject: [PATCH] Scripts(offline): skip already existing columns: add log --- scripts/generatePmTilesExtracts.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/generatePmTilesExtracts.ts b/scripts/generatePmTilesExtracts.ts index 45679ae174..03464aaabd 100644 --- a/scripts/generatePmTilesExtracts.ts +++ b/scripts/generatePmTilesExtracts.ts @@ -40,13 +40,14 @@ class GeneratePmTilesExtracts extends Script { private* generateField(z: number, maxzoom?: number): Generator> { const boundary = 2 << (z - 1) for (let x = 0; x < boundary; x++) { - if (existsSync(this.targetDir + "/" + this.getFilename(z, x, boundary - 1))) { + const lastFileForColumn = this.getFilename(z, x, boundary - 1) + if (existsSync(this.targetDir + "/" + lastFileForColumn)) { // Skip this column, already exists console.log("Skipping column ", x, "at zoom", z) this.skipped += boundary continue } else { - console.log("Starting column", x, "at zoom", z) + console.log("Starting column", x, "at zoom", z, "as", lastFileForColumn, "does not exist") } for (let y = 0; y < boundary; y++) {