File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,25 @@ module.exports = class Task{
8484 }
8585 } ,
8686
87+ cb => {
88+ // If we need to post process results
89+ // if cog is supported (build cloud optimized geotiffs)
90+ // we automatically add the cog option to the task options by default
91+ if ( this . skipPostProcessing ) cb ( ) ;
92+ else {
93+ odmInfo . supportsOption ( "cog" , ( err , supported ) => {
94+ if ( err ) {
95+ console . warn ( `Cannot check for supported option cog: ${ err } ` ) ;
96+ } else if ( supported ) {
97+ if ( ! this . options . find ( opt => opt . name === "cog" ) ) {
98+ this . options . push ( { name : 'cog' , value : true } ) ;
99+ }
100+ }
101+ cb ( ) ;
102+ } ) ;
103+ }
104+ } ,
105+
87106 // Read images info
88107 cb => {
89108 fs . readdir ( this . getImagesFolderPath ( ) , ( err , files ) => {
Original file line number Diff line number Diff line change 11{
22 "name" : " NodeODM" ,
3- "version" : " 2.1.6 " ,
3+ "version" : " 2.1.7 " ,
44 "description" : " REST API to access ODM" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments