Skip to content

Commit

Permalink
Added code to look for a conf file when exporting. (#5528)
Browse files Browse the repository at this point in the history
refs: #5527
  • Loading branch information
mattjdnv authored and jordanmurray35 committed Feb 1, 2023
1 parent 645a4e2 commit eaa58f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node-export-server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,12 @@ function buildCommand(params, queryOverrideTags, querybbox, querypoly, isFile, i
if (convertOpts.length > 0)
command += ' -D convert.ops="' + convertOpts.join(';') + '"';

// Add a conf file if it exists
var eConf = hootHome + '/' + config.schemas[paramschema].replace('.js','') + 'Export.conf';
if (fs.existsSync(eConf)) {
command += ' -C "' + eConf + '"';
}

command += ' ' + input + ' ' + outFile;

//if (!isFile) command += ' --trans ' + config.schemas[req.params.schema];
Expand Down

0 comments on commit eaa58f4

Please sign in to comment.