diff --git a/scripts/generatePmTilesExtracts.ts b/scripts/generatePmTilesExtracts.ts index 45679ae17..03464aaab 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++) {