kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Allow orthophoto assets to be downloaded in test mode
rodzic
e117c6e6cc
commit
41b0d3cb6a
|
@ -131,13 +131,15 @@ module.exports = class Task{
|
||||||
case "orthophoto.png":
|
case "orthophoto.png":
|
||||||
case "orthophoto.tif":
|
case "orthophoto.tif":
|
||||||
// Append missing pieces to the path
|
// Append missing pieces to the path
|
||||||
filename = path.join('odm_orthophoto', `odm_${filename}`);
|
filename = !config.test ?
|
||||||
|
path.join('odm_orthophoto', `odm_${filename}`) :
|
||||||
|
path.join('..', '..', 'processing_results', 'odm_orthophoto', `odm_${filename}`);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Invalid
|
// Invalid
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
console.log(path.join(this.getProjectFolderPath(), filename))
|
||||||
return path.join(this.getProjectFolderPath(), filename);
|
return path.join(this.getProjectFolderPath(), filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue