remove some logs

This commit is contained in:
Tykayn 2023-10-07 23:19:17 +02:00 committed by tykayn
parent 9d8f687809
commit 882996a720
4 changed files with 415951 additions and 7 deletions

View File

@ -12,5 +12,5 @@ irve:
echo "you can open the irve converted osm file in JOSM : osm_output/bornes-irve-filetered_latest.osm "
osmose_irve:
ts-node convert_to_osm_tags.ts --osmose=true --engine=true --source="etalab_data/irve_bornes_recharge/osmose-item-irve-8411-intégrables.json" --outname="_irve-latest-osmose"
geojson2osm "etalab_data/irve_bornes_recharge/osmose-item-irve-8411-intégrables.json" > "osm_output/osmose-item-irve-8411-intégrables.osm"
#geojson2osm "etalab_data/irve_bornes_recharge/osmose-item-irve-8411-intégrables.json" > "osm_output/osmose-item-irve-8411-intégrables.osm"
geojson2osm "output/my_converted_data_set__irve-latest-osmose.json" > "osm_output/my_converted_data_set__irve-latest-osmose.osm"

View File

@ -1,5 +1,6 @@
import custom_utils from './utils'
import MappingConfigType from "./mapping-config.type";
import {debuglog} from "util";
const {debugLog} = custom_utils
@ -113,9 +114,8 @@ export default class {
if (this.mapping_config.osmose) {
// only creation of new points are handled by now [2023-10-07]
featurePointPropertiesKeys = Object.keys(featurePoint.properties.fixes[0][0].create)
console.log('featurePointPropertiesKeys', featurePointPropertiesKeys)
//
// return;
// debugLog('featurePointPropertiesKeys', featurePointPropertiesKeys)
} else {
featurePointPropertiesKeys = Object.keys(featurePoint.properties)
}
@ -349,7 +349,7 @@ export default class {
if (has_prise_type_2 && prise_type_e) {
newProperties['socket:type_2:output'] = out;
this.stats.power_output++
console.log('2 prises, attribuer la plus haute valeur à la type 2', out)
debugLog('2 prises, attribuer la plus haute valeur à la type 2', out)
}
if (countOfSockets === 1) {
@ -377,7 +377,7 @@ export default class {
this.stats.power_output++
}
} else {
console.log('no sockets', this.current_geojson_point.properties.ref)
debugLog('no sockets', this.current_geojson_point.properties.ref)
// console.log('sockets', countOfSockets, this.current_geojson_point.properties)
}
}
@ -387,7 +387,7 @@ export default class {
}
if (configObject.invert_boolean_value) {
convertedValue = !this.convertToBoolean(originalValue) ? 'yes' : 'no'
console.log('invert boolean', convertedValue, originalValue)
debugLog('invert boolean', convertedValue, originalValue)
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff