Scripts(offline): skip already existing columns

This commit is contained in:
Pieter Vander Vennet 2025-07-31 11:59:57 +02:00
parent 6896b21bb4
commit 5e89c80f29

View file

@ -40,7 +40,7 @@ class GeneratePmTilesExtracts extends Script {
private* generateField(z: number, maxzoom?: number): Generator<Promise<void>> {
const boundary = 2 << (z - 1)
for (let x = 0; x < boundary; x++) {
console.log("Checking ", this.getFilename(z, x, boundary), z, x, y)
console.log("Checking ", this.getFilename(z, x, boundary), z, x, boundary)
if (existsSync(this.getFilename(z, x, boundary))) {
// Skip this column, already exists
console.log("Skipping column ", x, "at zoom", z)