Porównaj commity

..

No commits in common. "eb2ea1bbab0ae3c60950c94796ed3a9f24fd0389" and "d3ee44dfeec45f34fca47ee585f8a8a57fff7455" have entirely different histories.

4 zmienionych plików z 29 dodań i 17 usunięć

Wyświetl plik

@ -118,32 +118,44 @@ module.exports = class Task{
}
setPostProcessingOptsSteps(){
const autoSet = (opt) => {
return cb => {
return [
cb => {
// If we need to post process results
// if opt is supported
// we automatically add the opt to the task options by default
// if pc-ept is supported (build entwine point cloud)
// we automatically add the pc-ept option to the task options by default
if (this.skipPostProcessing) cb();
else{
odmInfo.supportsOption(opt, (err, supported) => {
odmInfo.supportsOption("pc-ept", (err, supported) => {
if (err){
console.warn(`Cannot check for supported option ${opt}: ${err}`);
console.warn(`Cannot check for supported option pc-ept: ${err}`);
}else if (supported){
if (!this.options.find(o => o.name === opt)){
this.options.push({ name: opt, value: true });
if (!this.options.find(opt => opt.name === "pc-ept")){
this.options.push({ name: 'pc-ept', value: true });
}
}
cb();
});
}
},
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();
});
}
}
};
return [
autoSet("pc-ept"),
autoSet("cog"),
autoSet("gltf")
];
}

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "NodeODM",
"version": "2.2.2",
"version": "2.2.1",
"description": "REST API to access ODM",
"main": "index.js",
"scripts": {

File diff suppressed because one or more lines are too long