From 10cc50b0d419b059a06a8840f175e83454000ade Mon Sep 17 00:00:00 2001 From: Brian Hatchl Date: Fri, 16 Jun 2023 15:12:26 -0400 Subject: [PATCH] init this global at the top (#5673) it is also called via the /schema code path which in rare cases may be called before /translateFrom --- translations/TranslationServer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/translations/TranslationServer.js b/translations/TranslationServer.js index b9aeffcde7..f8cf370238 100644 --- a/translations/TranslationServer.js +++ b/translations/TranslationServer.js @@ -33,6 +33,10 @@ if (typeof hoot === 'undefined') { //Tests should set hashseedzero to true for consistent results if( typeof hashseedzero !== 'undefined' && hashseedzero == true ) hoot.Settings.set({"hash.seed.zero": "true"}); + + // This is called in the supported translation files toOsm methods + createUuid = hoot.UuidHelper.createUuid; + } // Setup the lists of schema @@ -460,7 +464,6 @@ var ogr2osm = function(params) { //Get OSM tags for F_CODE // var osm = translateToOsm.toosm[params.translation].toOSM({ // 'FCODE': params.fcode - createUuid = hoot.UuidHelper.createUuid; var osm = fcodeLookup[params.translation].toOsm({ 'FCODE': params.fcode }, '', params.geom || '');