scripts/mapping_geojson_to_osm_tags/refresh_data.sh

15 lines
614 B
Bash

#!/bin/bash
# get the updated geojson
#wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -P ./etalab_data -O latest.json
# 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
# filter its tags
nvm use stable
pnpm i
node convert_to_osm_tags.mjs
# convert the new geojson to osm file
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
echo "conversion faite"
# done