kopia lustrzana https://github.com/OpenDroneMap/NodeODM
rodzic
d80ec213c6
commit
e809c96d7b
19
libs/Task.js
19
libs/Task.js
|
@ -84,6 +84,25 @@ module.exports = class Task{
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
cb => {
|
||||||
|
// If we need to post process results
|
||||||
|
// if cog is supported (build cloud optimized geotiffs)
|
||||||
|
// we automatically add the cog option to the task options by default
|
||||||
|
if (this.skipPostProcessing) cb();
|
||||||
|
else{
|
||||||
|
odmInfo.supportsOption("cog", (err, supported) => {
|
||||||
|
if (err){
|
||||||
|
console.warn(`Cannot check for supported option cog: ${err}`);
|
||||||
|
}else if (supported){
|
||||||
|
if (!this.options.find(opt => opt.name === "cog")){
|
||||||
|
this.options.push({ name: 'cog', value: true });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cb();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// Read images info
|
// Read images info
|
||||||
cb => {
|
cb => {
|
||||||
fs.readdir(this.getImagesFolderPath(), (err, files) => {
|
fs.readdir(this.getImagesFolderPath(), (err, files) => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "NodeODM",
|
"name": "NodeODM",
|
||||||
"version": "2.1.6",
|
"version": "2.1.7",
|
||||||
"description": "REST API to access ODM",
|
"description": "REST API to access ODM",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Ładowanie…
Reference in New Issue