scripts/mapping_geojson_to_osm_tags/mappings/infer_domain_from_csv.mjs
2023-07-31 19:27:17 +02:00

32 lines
563 B
JavaScript

let show_debug = 0
/**
* faire un log
* @param message
*/
function debugLog (message) {
if (!show_debug) {
return
}
console.log('debug: ', ...message)
}
/**
* TODO
* find the domain of all columns in a csv,
* take the header and the values, return only the unique values for each column, save a new csv,
and build a config for the mapping engine listing all the possible values.
* @param pointKeyName
* @returns {boolean}
*/
function openCSV (filePath) {
console.log('open csv filePath')
return
}
export default {
debugLog,
isBooleanKey
}