-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.54..v0.2.55 changeset englishTDS_to_OSM.js
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/translations/englishTDS_to_OSM.js b/translations/englishTDS_to_OSM.js
index bbe36ae..8ac46dd 100644
--- a/translations/englishTDS_to_OSM.js
+++ b/translations/englishTDS_to_OSM.js
@@ -29,13 +29,13 @@
// Convert NFDD English back to OSM+
//
-hoot.require('etds40_osm')
+hoot.require('etds40_osm');
function initialize()
{
- // Turn off the TDS structure so we just get the raw feature
- hoot.Settings.set({"ogr.thematic.structure":"false"});
+ // Turn off the TDS structure so we just get the raw feature
+ hoot.Settings.set({'ogr.thematic.structure':'false'});
}
@@ -50,18 +50,18 @@ function initialize()
function translateAttributes(attrs, layerName, geometryType)
{
- // We use the temp var because nfdd_e.toEnglish returns "attrs" and "tableName"
- var output = etds40_osm.toOSM(attrs, layerName, geometryType);
+ // We use the temp var because nfdd_e.toEnglish returns "attrs" and "tableName"
+ var output = etds40_osm.toOSM(attrs, layerName, geometryType);
- // Make sure the returned value isn't NULL. This does occur
- if (output)
- {
- return output.attrs;
- }
- else
- {
- return null;
- }
+ // Make sure the returned value isn't NULL. This does occur
+ if (output)
+ {
+ return output.attrs;
+ }
+ else
+ {
+ return null;
+ }
} // End of Translate Attributes
@@ -71,7 +71,7 @@ function translateAttributes(attrs, layerName, geometryType)
// This version converts OSM+ tags to NFDD "English" attributes
function translateToOgr(tags, elementType, geometryType)
{
- return etds40_osm.toOSM(tags, elementType, geometryType)
+ return etds40_osm.toOSM(tags, elementType, geometryType);
} // End of translateToOgr