diff --git a/node-export-server/server.js b/node-export-server/server.js index eb27a85321..9ac4c7e374 100644 --- a/node-export-server/server.js +++ b/node-export-server/server.js @@ -390,6 +390,7 @@ function zipOutput(hash,output,outFile,outDir,outZip,isFile,format,cb) { */ function buildCommand(params, style, queryOverrideTags, querybbox, querypoly, isFile, input, outDir, outFile, doCrop, ignoreSourceIds, ignoreConf) { var paramschema = params.schema; + var paramformat = params.format; var command = '', overrideTags = null; if (queryOverrideTags) { if (queryOverrideTags === 'true') { //if it's true @@ -435,6 +436,12 @@ function buildCommand(params, style, queryOverrideTags, querybbox, querypoly, is } command += ' -D schema.translation.override=' + overrideTags; } + if (paramschema === 'OSM' && paramformat === 'GeoPackage') { + convertOpts.push('SchemaTranslationOp') + command += ' -D schema.translation.script=' + hootHome + '/' + config.schemas[paramschema]; + // Set per schema config options + if (config.schema_options[paramschema]) command += ' -D ' + config.schema_options[paramschema]; + } if (paramschema !== 'OSM' && config.schemas[paramschema] !== '') { convertOpts.push('SchemaTranslationOp') command += ' -D schema.translation.script=' + hootHome + '/' + config.schemas[paramschema];