Update Task.js to get the tile path

pull/209/head
dennis chen 2023-12-22 11:50:04 +08:00 zatwierdzone przez GitHub
rodzic 5cf8e65e56
commit 8219bb6df6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -204,6 +204,11 @@ module.exports = class Task{
return path.join(this.getProjectFolderPath(), filename);
}
//get the tile path
getTilePath(z,x,y){
return path.join(this.getProjectFolderPath(), "orthophoto_tiles",z,x,y+".png");
}
// Deletes files and folders related to this task
cleanup(cb){
if (this.initialized) rmdir(this.getProjectFolderPath(), cb);