wololo/makefile

36 lines
2 KiB
Makefile
Raw Normal View History

2025-01-15 22:20:14 +01:00
default: irve
get_files:
bash ./update_scripts/get_datasets.sh
2025-03-31 13:46:03 +02:00
##################
# moving datasets to the source folder etalab_data
##################
echo " - déplacement des datasets des IRVE dans le dossier etalab_data/irve_bornes_recharge"
mv latest.json etalab_data/irve_bornes_recharge/
mv latest.csv etalab_data/irve_bornes_recharge/
mv irve_osm_latest.geojson etalab_data/irve_bornes_recharge/
mv clean_french_irve.csv etalab_data/irve_bornes_recharge/
mv osmose-item-irve-8411-intégrables.json etalab_data/irve_bornes_recharge/
mv "issy_les_mx_arbres.json" etalab_data/arbres/
mv "issy_les_mx_cyclabilité.json" etalab_data/cyclabilité/
mv "rouen_parking_velos.json" etalab_data/cyclabilité/rouen_parking_velos.json
2025-01-15 22:20:14 +01:00
echo "fichiers récupérés"
irve:
bash ./update_scripts/convert_irve.sh
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 existing IRVE referenced in OSM : osm_output/bornes-irve-filetered_latest.osm "
osmose_irve:
pnpm i
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 "output/my_converted_data_set__irve-latest-osmose.json" > "osm_output/my_converted_data_set__irve-latest-osmose.osm"
2025-03-31 13:46:03 +02:00
panneaux:
npx ts-node unzip_csv.ts -u https://www.data.gouv.fr/fr/datasets/r/16a20f4e-0c06-40ff-adda-54f214099e5f -o panneaux_limite_de_vitesse_fr_panoramax_detections.csv -z
npx ts-node csv_to_geojson.ts -d etalab_data/panneaux -f panneaux_limite_de_vitesse_fr_panoramax_detections.csv --latColumn 'GPSLatitude' --lonColumn 'GPSLongitude' -h
ts-node convert_to_osm_tags.ts --source etalab_data/panneaux/panneaux_limite_de_vitesse_fr_panoramax_detections.csv.geojson --output-file=panneaux_maxspeed_panoramax.json --engine-config=MappingPanneauxMaxSpeed