From 8219bb6df6bdbd168e8c7e73b41261dee7d131b1 Mon Sep 17 00:00:00 2001 From: dennis chen Date: Fri, 22 Dec 2023 11:50:04 +0800 Subject: [PATCH] Update Task.js to get the tile path --- libs/Task.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/Task.js b/libs/Task.js index 1b7cebb..4414b2f 100644 --- a/libs/Task.js +++ b/libs/Task.js @@ -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);