Scripts(offline): skip already existing columns

This commit is contained in:
Pieter Vander Vennet 2025-07-31 12:02:35 +02:00
parent 6a842031b2
commit 072f3f1140

View file

@ -41,7 +41,7 @@ class GeneratePmTilesExtracts extends Script {
const boundary = 2 << (z - 1) const boundary = 2 << (z - 1)
for (let x = 0; x < boundary; x++) { for (let x = 0; x < boundary; x++) {
console.log("Checking ", this.getFilename(z, x, boundary - 1)) console.log("Checking ", this.getFilename(z, x, boundary - 1))
if (existsSync(this.getFilename(z, x, boundary - 1))) { if (existsSync(this.targetDir + "/" + this.getFilename(z, x, boundary - 1))) {
// Skip this column, already exists // Skip this column, already exists
console.log("Skipping column ", x, "at zoom", z) console.log("Skipping column ", x, "at zoom", z)
continue continue