chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2025-03-17 02:54:12 +01:00
parent 92352ed274
commit 535e36a006
68 changed files with 2734 additions and 382 deletions

View file

@ -497,7 +497,10 @@ export default class SimpleMetaTaggers {
continue
}
const value = feature.properties[key]
const denom: [string, Denomination] = unit.findDenomination(value, () => feature.properties["_country"])
const denom: [string, Denomination] = unit.findDenomination(
value,
() => feature.properties["_country"]
)
if (denom === undefined) {
// no valid value found
break
@ -515,7 +518,12 @@ export default class SimpleMetaTaggers {
if (canonical === value) {
break
}
console.log("Rewritten ", key, ` from '${value}' into '${canonical}' due to denomination`, denomination)
console.log(
"Rewritten ",
key,
` from '${value}' into '${canonical}' due to denomination`,
denomination
)
if (canonical === undefined && !unit.eraseInvalid) {
break
}