Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Oct 4, 2024
1 parent 49fbcad commit ed4cd96
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions packages/spatial-uploads-handler/src/processRasterUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,19 +233,24 @@ async function createPMTiles(
}
}

await logger.exec(
[
"gdaladdo",
// Skip building overviews if already at level 0
if (overviews.length > 1) {
await logger.exec(
[
"-r",
presentation === SuggestedRasterPresentation.rgb ? "cubic" : "nearest",
mbtilesPath,
...overviews.map((o) => o.toString()),
"gdaladdo",
[
"-r",
presentation === SuggestedRasterPresentation.rgb
? "cubic"
: "nearest",
mbtilesPath,
...overviews.map((o) => o.toString()),
],
],
],
"Problem adding overviews to mbtiles",
4 / 30
);
"Problem adding overviews to mbtiles",
4 / 30
);
}

// Convert to pmtiles
const pmtilesPath = pathJoin(workingDirectory, jobId + ".pmtiles");
Expand Down

0 comments on commit ed4cd96

Please sign in to comment.