forked from MapComplete/MapComplete
Scripts(offline): debugging
This commit is contained in:
parent
327ee18dda
commit
601de0b624
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class GeneratePmTilesExtracts extends Script {
|
|||
|
||||
startProcess(script: string): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const child = spawn("node", [script],
|
||||
const child = spawn("./pmtiles", [script],
|
||||
{ stdio: "inherit", cwd: this.targetDir })
|
||||
|
||||
child.on("close", (code) => {
|
||||
|
@ -33,7 +33,7 @@ class GeneratePmTilesExtracts extends Script {
|
|||
if(maxzoom !== undefined){
|
||||
maxzoomflag = " --maxzoom="+maxzoom
|
||||
}
|
||||
return this.startProcess(`./pmtiles extract planet-latest.pmtiles --download-threads=1 --minzoom=${z}${maxzoomflag} --bbox=${[min_lon, min_lat + 0.0001, max_lon, max_lat].join(",")} ${z}-${x}-${y}.pmtiles`)
|
||||
return this.startProcess(`extract planet-latest.pmtiles --download-threads=1 --minzoom=${z}${maxzoomflag} --bbox=${[min_lon, min_lat + 0.0001, max_lon, max_lat].join(",")} ${z}-${x}-${y}.pmtiles`)
|
||||
}
|
||||
|
||||
private* generateField(z: number, maxzoom?: number): Generator<Promise<void>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue