Skip to content

v0.2.54..v0.2.55 changeset OSM_to_englishGGDM30.js

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/translations/OSM_to_englishGGDM30.js b/translations/OSM_to_englishGGDM30.js
index 09ee51d..0ef8f4c 100644
--- a/translations/OSM_to_englishGGDM30.js
+++ b/translations/OSM_to_englishGGDM30.js
@@ -30,49 +30,49 @@
 //
 
 // For the OSM+ to NFDD translation
-hoot.require('SchemaTools')
-hoot.require('ggdm30')
-hoot.require('ggdm30_schema')
-hoot.require('ggdm30_rules')
-hoot.require('fcode_common')
+hoot.require('SchemaTools');
+hoot.require('ggdm30');
+hoot.require('ggdm30_schema');
+hoot.require('ggdm30_rules');
+hoot.require('fcode_common');
 
 // The main translation functions
-hoot.require('eggdm30')
-hoot.require('eggdm30_rules')
+hoot.require('eggdm30');
+hoot.require('eggdm30_rules');
 
-hoot.require('config')
-hoot.require('translate')
+hoot.require('config');
+hoot.require('translate');
 
 // Create the output Schema - This is not used here. We _do_ use it in the etds functions but
 // we don't need to expose it to the main Hoot program
 function getDbSchema()
 {
-     return ggdm30.getDbSchema();
+  return ggdm30.getDbSchema();
 }
 
 // Get raw schema directly from translations/schema
 function getRawDbSchema()
 {
-     return ggdm30.schema.getDbSchema();
+  return ggdm30.schema.getDbSchema();
 }
 
 
 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'});
 
-        // Turn off the tds extra function
-    hoot.Settings.set({"ogr.note.extra":"none"});
+  // Turn off the tds extra function
+  hoot.Settings.set({'ogr.note.extra':'none'});
 
-    // Turn off the ESRI FCSUBTYPE
-    hoot.Settings.set({"ogr.esri.fcsubtype":"false"});
+  // Turn off the ESRI FCSUBTYPE
+  hoot.Settings.set({'ogr.esri.fcsubtype':'false'});
 
-    // Throw errors instead of returning partial translations/o2s_X features
-    hoot.Settings.set({"ogr.throw.error":"true"});
+  // Throw errors instead of returning partial translations/o2s_X features
+  hoot.Settings.set({'ogr.throw.error':'true'});
 
-    // Set the schema type for the export
-    hoot.Settings.set({"osm.map.writer.schema":"GGDMv30"});
+  // Set the schema type for the export
+  hoot.Settings.set({'osm.map.writer.schema':'GGDMv30'});
 
 }
 
@@ -87,18 +87,18 @@ function initialize()
 //
 function translateAttributes(attrs, layerName, geometryType)
 {
-    // We use the temp var because etds.toEnglish returns "attrs" and "tableName"
-    var output = eggdm30.toEnglish(attrs,layerName,geometryType);
-
-    // Make sure the returned value isn't NULL. This does occur
-    if (output)
-    {
-        return output.attrs;
-    }
-    else
-    {
-        return null;
-    }
+  // We use the temp var because etds.toEnglish returns "attrs" and "tableName"
+  var output = eggdm30.toEnglish(attrs,layerName,geometryType);
+
+  // Make sure the returned value isn't NULL. This does occur
+  if (output)
+  {
+    return output.attrs;
+  }
+  else
+  {
+    return null;
+  }
 } // End of Translate Attributes
 
 
@@ -107,7 +107,7 @@ function translateAttributes(attrs, layerName, geometryType)
 //    This version converts OSM+ tags to NFDD "English" attributes
 function translateToOgr(tags, elementType, geometryType)
 {
-        return eggdm30.toEnglish(tags, elementType, geometryType)
+  return eggdm30.toEnglish(tags, elementType, geometryType);
 } // End of translateToOgr
 
 
Clone this wiki locally