Scripts(offline): skip already existing columns

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

View file

@ -40,6 +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)
if (existsSync(this.getFilename(z, x, boundary))) {
// Skip this column, already exists
console.log("Skipping column ", x, "at zoom", z)