scripts/mapping_geojson_to_osm_tags/mappings/infer_domain_from_csv.mjs

32 lines
563 B
JavaScript
Raw Normal View History

2023-07-31 19:09:48 +02:00
let show_debug = 0
/**
* faire un log
* @param message
*/
function debugLog (message) {
2023-07-31 19:27:17 +02:00
if (!show_debug) {
return
}
console.log('debug: ', ...message)
2023-07-31 19:09:48 +02:00
}
/**
2023-07-31 19:27:17 +02:00
* 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.
2023-07-31 19:09:48 +02:00
* @param pointKeyName
* @returns {boolean}
*/
2023-07-31 19:27:17 +02:00
function openCSV (filePath) {
2023-07-31 19:09:48 +02:00
2023-07-31 19:27:17 +02:00
console.log('open csv filePath')
return
2023-07-31 19:09:48 +02:00
}
2023-07-31 19:27:17 +02:00
export default {
debugLog,
isBooleanKey
2023-07-31 19:09:48 +02:00
}