Skip to content

Commit 2aa6268

Browse files
authored
add scenario to fix bug in GeoPackage exports in OSM Schema (#5765)
1 parent cbc20d7 commit 2aa6268

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

node-export-server/server.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ function zipOutput(hash,output,outFile,outDir,outZip,isFile,format,cb) {
390390
*/
391391
function buildCommand(params, style, queryOverrideTags, querybbox, querypoly, isFile, input, outDir, outFile, doCrop, ignoreSourceIds, ignoreConf) {
392392
var paramschema = params.schema;
393+
var paramformat = params.format;
393394
var command = '', overrideTags = null;
394395
if (queryOverrideTags) {
395396
if (queryOverrideTags === 'true') { //if it's true
@@ -435,6 +436,12 @@ function buildCommand(params, style, queryOverrideTags, querybbox, querypoly, is
435436
}
436437
command += ' -D schema.translation.override=' + overrideTags;
437438
}
439+
if (paramschema === 'OSM' && paramformat === 'GeoPackage') {
440+
convertOpts.push('SchemaTranslationOp')
441+
command += ' -D schema.translation.script=' + hootHome + '/' + config.schemas[paramschema];
442+
// Set per schema config options
443+
if (config.schema_options[paramschema]) command += ' -D ' + config.schema_options[paramschema];
444+
}
438445
if (paramschema !== 'OSM' && config.schemas[paramschema] !== '') {
439446
convertOpts.push('SchemaTranslationOp')
440447
command += ' -D schema.translation.script=' + hootHome + '/' + config.schemas[paramschema];

0 commit comments

Comments
 (0)