add base point
This commit is contained in:
parent
f2861c50b6
commit
c099f827a6
@ -25,7 +25,7 @@ const MappingIRVE: MappingConfigType = {
|
||||
telephone_operateur: 'phone',
|
||||
contact_operateur: 'email', // ici, on souhaite convertir la clé contact_operateur=bidule en email=bidule
|
||||
|
||||
id_station_itinerance: 'ref:EU:EVSE',
|
||||
// id_station_itinerance: 'ref:EU:EVSE',
|
||||
id_station_local: 'ref',
|
||||
|
||||
gratuit: 'fee',
|
||||
@ -35,7 +35,7 @@ const MappingIRVE: MappingConfigType = {
|
||||
convert_to_boolean_value: true, // convertit en yes ou no
|
||||
},
|
||||
// observations: 'note',
|
||||
nom_station: 'name',
|
||||
// nom_station: 'name',
|
||||
nom_enseigne: 'network',
|
||||
|
||||
// ******* dates
|
||||
|
@ -95,13 +95,14 @@ export default class {
|
||||
debugLog('mapElementFromConf: ============= keys mappingKeys:', this.mapping_config.tags.length, mappingKeys.length)
|
||||
debugLog('mapElementFromConf: ============= keys featurePointPropertiesKeys :', featurePoint.properties.length, featurePointPropertiesKeys.length)
|
||||
|
||||
let newProperties = Object.create(this.mapping_config.default_properties_of_point)
|
||||
let newProperties = {...this.mapping_config.default_properties_of_point}
|
||||
|
||||
|
||||
// reinit properties of current point
|
||||
let basePoint = Object.create(featurePoint)
|
||||
basePoint.type = featurePoint.type
|
||||
basePoint.geometry = featurePoint.geometry
|
||||
basePoint.properties = {...this.mapping_config.default_properties_of_point}
|
||||
|
||||
// apply new properties if found in mapping config
|
||||
featurePointPropertiesKeys.forEach(pointKeyName => {
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -12,6 +12,8 @@
|
||||
"scripts": {
|
||||
"start": "ts-node convert_to_osm_tags.ts --engine",
|
||||
"start:91": "ts-node convert_to_osm_tags.ts --engine=true --department=91 --source=\"./etalab_data/all.json\"",
|
||||
"start:76": "ts-node convert_to_osm_tags.ts --engine=true --department=76 --source=\"./etalab_data/all.json\"",
|
||||
"start:974": "ts-node convert_to_osm_tags.ts --engine=true --department=974 --source=\"./etalab_data/all.json\"",
|
||||
"simple": "ts-node convert_to_osm_tags.ts",
|
||||
"filter": "node convert_to_osm_tags.ts --department=76 --engine=true",
|
||||
"test": "jest --coverage --watch"
|
||||
|
@ -17,10 +17,19 @@ pnpm start:91
|
||||
geojsontoosm etalab_data/all.json > osm_output/bornes-irve-all-from-etalab-opendata.osm
|
||||
geojsontoosm output/my_converted_data_set_filtered_zipcode_91.json > osm_output/bornes-irve-filetered-from-etalab-opendata.osm
|
||||
|
||||
|
||||
echo ' conversion faite.'
|
||||
du -sch osm_output/bornes-irve-filetered-from-etalab-opendata.osm
|
||||
echo ""
|
||||
echo " vous pouvez ouvrir JOSM et mettre dedans les fichiers osm pour tenter une conflation
|
||||
|
||||
osm_output/bornes-irve-filetered-from-etalab-opendata.osm
|
||||
osm_output/bornes-présentes-dans-osm.osm
|
||||
|
||||
|
||||
pour mettre en valeur les données manquantes, vous pouvez sélectionner toutes les données existantes et rendre actif le calque de nouvelles données.
|
||||
Cela fera des points de couleur sur fond de ronds plus gros en gris. Les points de couleur non entourés sur le fond de ronds plus gros sont à importer.
|
||||
|
||||
vérifiez ensuite les données du fichier osm en cliquant sur un point du calque bornes-irve-filetered-from-etalab-opendata.osm
|
||||
"
|
||||
# done
|
Loading…
Reference in New Issue
Block a user