2023-08-30 11:38:36 +02:00
|
|
|
#!/bin/bash
|
2023-10-12 16:06:56 +02:00
|
|
|
echo "convertir les fichiers de données depuis etalab_data/irve_bornes_recharge en fichier osm "
|
2023-08-30 11:38:36 +02:00
|
|
|
overpass_website="https://overpass-api.de/api/interpreter"
|
2023-09-01 11:12:54 +02:00
|
|
|
# personnaliser les scripts:
|
|
|
|
# aire Essonne: id 3600007401
|
|
|
|
# aire IDF: id 3600008649
|
|
|
|
# aire FR: id 3602202162
|
2023-08-30 11:38:36 +02:00
|
|
|
|
2023-10-01 10:42:27 +02:00
|
|
|
output_file_name='irve_osm_latest'
|
2023-08-30 11:38:36 +02:00
|
|
|
|
2023-10-12 15:45:31 +02:00
|
|
|
bash ./get_datasets.sh
|
|
|
|
|
2023-10-01 11:23:07 +02:00
|
|
|
cd ..
|
2024-09-26 12:15:24 +02:00
|
|
|
pwd
|
2023-10-12 16:06:56 +02:00
|
|
|
echo " - mapping du fichier IRVE publié par Etalab "
|
2023-10-12 15:45:31 +02:00
|
|
|
ts-node convert_to_osm_tags.ts --engine=true --source="etalab_data/irve_bornes_recharge/latest.json" --outname="_irve-latest-etalab"
|
2023-10-12 16:06:56 +02:00
|
|
|
geojson2osm "$PWD/output/my_converted_data_set__irve-latest-etalab.json" > "$PWD/osm_output/bornes-irve-filetered_latest.osm"
|
2023-10-12 15:45:31 +02:00
|
|
|
|
2023-10-12 17:06:06 +02:00
|
|
|
# convert existing data
|
|
|
|
geojson2osm "$PWD/data_other/irve_osm_latest.geojson" > "$PWD/osm_output/osm-existing-bornes-irve.osm"
|
|
|
|
|
|
|
|
|
2023-10-12 16:06:56 +02:00
|
|
|
echo " - mapping des analyses Osmose sur l'item 8411 (charging_station)"
|
|
|
|
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 "$PWD/output/my_converted_data_set__irve-latest-osmose.json" > "osm_output/my_converted_data_set__irve-latest-osmose.osm"
|
2023-10-12 15:45:31 +02:00
|
|
|
|
2023-10-12 16:17:56 +02:00
|
|
|
#ts-node convert_to_osm_tags.ts --osmose=true --engine=true --source="etalab_data/défibrillateurs/dae-osmose-8370.json" --outname="_dae-osmose-8370-latest-osmose"
|
|
|
|
#geojson2osm "$PWD/output/my_converted_data_set__dae-osmose-8370-latest-osmose.json" > "osm_output/my_converted_data_set__dae-osmose-8370-latest-osmose.osm"
|
2023-10-01 10:42:27 +02:00
|
|
|
|
2023-10-12 15:45:31 +02:00
|
|
|
echo "fichier généré: $PWD/output/converted__irve-latest-etalab.json"
|
2023-10-01 11:23:07 +02:00
|
|
|
|
2023-10-12 16:06:56 +02:00
|
|
|
|
2023-10-01 10:42:27 +02:00
|
|
|
|
2024-09-26 12:15:24 +02:00
|
|
|
cd update_scripts
|