Skip to content

Commit

Permalink
init this global at the top (#5673)
Browse files Browse the repository at this point in the history
it is also called via the /schema code path
which in rare cases may be called before /translateFrom
  • Loading branch information
brianhatchl authored Jun 16, 2023
1 parent b62edfc commit 10cc50b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion translations/TranslationServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 || '');
Expand Down

0 comments on commit 10cc50b

Please sign in to comment.