-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.54..v0.2.55 changeset WorldPortIndex.js
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/translations/WorldPortIndex.js b/translations/WorldPortIndex.js
index f745c9e..f107222 100644
--- a/translations/WorldPortIndex.js
+++ b/translations/WorldPortIndex.js
@@ -37,28 +37,28 @@ hoot.require('wpi_rules');
// IMPORT
function translateToOsm(attrs, layerName, geometryType)
{
- var tags = {};
+ var tags = {};
- // Debug:
- if (config.getOgrDebugDumptags() == 'true') translate.debugOutput(attrs,layerName,geometryType,'','In attrs: ');
+ // Debug:
+ if (config.getOgrDebugDumptags() == 'true') translate.debugOutput(attrs,layerName,geometryType,'','In attrs: ');
- translate.applySimpleNumBiased(attrs, tags, wpi.numRules, 'forward',[]);
- translate.applySimpleTxtBiased(attrs, tags, wpi.txtRules, 'forward');
+ translate.numToOSM(attrs, tags, wpi.numRules);
+ translate.txtToOsm(attrs, tags, wpi.txtRules);
- // NOTE: The one2one rules have been converted to JSON
- translate.applyOne2OneQuiet(attrs, tags, wpi.one2one);
+ // NOTE: The one2one rules have been converted to JSON
+ translate.applyOne2OneQuiet(attrs, tags, wpi.one2one,{'k':'v'});
- tags.port = 'yes';
- tags.source = 'worldportindex';
+ tags.port = 'yes';
+ tags.source = 'worldportindex';
- // Add a UUID
- tags.uuid = createUuid();
+ // Add a UUID
+ tags.uuid = createUuid();
- // Debug:
- if (config.getOgrDebugDumptags() == 'true')
- {
- translate.debugOutput(tags,layerName,geometryType,'','Out tags: ');
- print('');
- }
- return tags;
+ // Debug:
+ if (config.getOgrDebugDumptags() == 'true')
+ {
+ translate.debugOutput(tags,layerName,geometryType,'','Out tags: ');
+ print('');
+ }
+ return tags;
} // End of Translate Attributes