up makefile for irve

This commit is contained in:
Tykayn 2025-04-11 15:58:12 +02:00 committed by tykayn
parent a732edc228
commit 2956a3ffee
2 changed files with 5 additions and 6 deletions

View file

@ -18,11 +18,13 @@ get_files:
echo "fichiers récupérés"
irve:
bash ./update_scripts/convert_irve.sh
wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -O "latest.json"
mv latest.json etalab_data/irve_bornes_recharge/
ts-node convert_to_osm_tags.ts --source="etalab_data/irve_bornes_recharge/latest.json" --output-file="_irve-latest-etalab.geojson" --engine-config=mappingConfigIRVE
echo " DONE "
echo " "
echo "you can open the IRVE converted osm file in JOSM : osm_output/bornes-irve-filetered_latest.osm "
echo "you can open the IRVE converted osm file in JOSM : output/bornes-irve-filetered_latest.osm "
echo "you can open the existing IRVE referenced in OSM : osm_output/bornes-irve-filetered_latest.osm "
osmose_irve:
pnpm i

View file

@ -8,15 +8,12 @@ overpass_website="https://overpass-api.de/api/interpreter"
output_file_name='irve_osm_latest'
echo " - mapping du fichier IRVE publié par Etalab "
ts-node convert_to_osm_tags.ts --source="etalab_data/irve_bornes_recharge/latest.json" --output-file="_irve-latest-etalab.geojson" --engine-config=mappingConfigIRVE
ts-node convert_to_osm_tags.ts --source="etalab_data/irve_bornes_recharge/latest.json" --output-file="irve-latest-etalab.geojson" --engine-config=mappingConfigIRVE
echo " - mapping des analyses Osmose sur l'item 8411 (charging_station)"
ts-node convert_to_osm_tags.ts --osmose=true --source="etalab_data/irve_bornes_recharge/osmose-item-irve-8411-intégrables.json" --output-file="irve-latest-osmose.geojson" --engine-config=mappingConfigIRVE
echo "fichier généré: $PWD/output/converted__irve-latest-etalab.json"
cd update_scripts