2023-07-29 17:24:34 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# get the updated geojson
|
2023-08-03 22:25:36 +02:00
|
|
|
wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -P ./etalab_data -O all.json
|
2023-07-29 18:47:20 +02:00
|
|
|
# https://www.data.gouv.fr/fr/datasets/r/8d9398ae-3037-48b2-be19-412c24561fbb pour le jeu de données irve schema v2, non utilisé dans ce script
|
2023-07-29 17:24:34 +02:00
|
|
|
# filter its tags
|
|
|
|
nvm use stable
|
|
|
|
pnpm i
|
|
|
|
node convert_to_osm_tags.mjs
|
|
|
|
# convert the new geojson to osm file
|
2023-07-29 18:47:20 +02:00
|
|
|
geojsontoosm etalab_data/latest.json > osm_output/bornes-irve_all.osm
|
|
|
|
geojsontoosm output/my_converted_data_set.json > osm_output/bornes-irve-filetered-from-etalab-opendata.osm
|
2023-07-29 17:24:34 +02:00
|
|
|
|
|
|
|
echo "conversion faite"
|
|
|
|
# done
|