up extractors

This commit is contained in:
Tykayn 2024-10-17 13:40:46 +02:00 committed by tykayn
parent 31d49102d2
commit 9c077791dc
6 changed files with 17744 additions and 17 deletions

View File

@ -7,14 +7,16 @@
echo -e "\n récupération de données depuis OpenStreetMap \n"
url='https://overpass-api.de/api/interpreter?data=[out:json][timeout:25];(node["harassment_prevention"="ask_angela"];>;);out;'
export_file="ask_angela_points_from_openstreetmap"
# Télécharger le fichier GeoJSON
curl -X GET -o "$export_file.geojson" -g $url
echo -e "\n OK \n"
date
echo -e "nombre de points extraits :"
jq '.elements | length' $export_file
jq '.elements | length' $export_file.geojson
mv "$export_file.geojson" "../../osm_output/$export_file.geojson"
python3 geojson_to_csv.py "../../osm_output/$export_file.geojson" -o "../../osm_output/$export_file.csv"

View File

@ -7,14 +7,15 @@
echo -e "\n récupération de données depuis OpenStreetMap \n"
url='https://overpass-api.de/api/interpreter?data=%5Bout%3Ajson%5D%5Btimeout%3A25%5D%3B%0Aarea(id%3A3602202162)-%3E.searchArea%3B%0Anode%5B%22amenity%22%3D%22charging_station%22%5D(area.searchArea)%3B%0Aout+geom%3B'
export_file="irve_zone_france_from_openstreetmap.geojson"
export_file="irve_zone_france_from_openstreetmap"
# Télécharger le fichier GeoJSON
curl -X GET -o $export_file -g $url
curl -X GET -o "$export_file.geojson" -g $url
echo -e "\n OK \n"
date
echo -e "nombre de points extraits :"
jq '.elements | length' $export_file
mv $export_file ../../osm_output/$export_file
jq '.elements | length' $export_file.geojson
mv "$export_file.geojson" "../../osm_output/$export_file.geojson"
python3 geojson_to_csv.py "../../osm_output/$export_file.geojson" -o "../../osm_output/$export_file.csv"

View File

@ -7,14 +7,16 @@
echo -e "\n récupération de données depuis OpenStreetMap \n"
url='https://overpass-api.de/api/interpreter?data=%5Bout%3Ajson%5D%5Btimeout%3A25%5D%3B%0Aarea(id%3A3602202162)-%3E.searchArea%3B%0Anode%5B%22tourism%22%3D%22museum%22%5D(area.searchArea)%3B%0Aout+geom%3B'
export_file="museum_zone_france_from_openstreetmap.geojson"
export_file="museum_zone_france_from_openstreetmap"
# Télécharger le fichier GeoJSON
curl -X GET -o $export_file -g $url
curl -X GET -o "$export_file.geojson" -g $url
echo -e "\n OK \n"
date
echo -e "nombre de points extraits :"
jq '.elements | length' $export_file
mv $export_file ../../osm_output/$export_file
jq '.elements | length' $export_file.geojson
mv "$export_file.geojson" "../../osm_output/$export_file.geojson"
python3 geojson_to_csv.py "../../osm_output/$export_file.geojson" -o "../../osm_output/$export_file.csv"

View File

@ -7,14 +7,16 @@
echo -e "\n récupération de données depuis OpenStreetMap \n"
url='https://overpass-api.de/api/interpreter?data=%5Bout%3Ajson%5D%5Btimeout%3A25%5D%3B%0Aarea(id%3A3602202162)-%3E.searchArea%3B%0Anode%5B%22man_made%22%3D%22surveillance%22%5D(area.searchArea)%3B%0Aout+geom%3B'
export_file="surveillance_zone_france_from_openstreetmap.geojson"
export_file="surveillance_zone_france_from_openstreetmap"
# Télécharger le fichier GeoJSON
curl -X GET -o $export_file -g $url
curl -X GET -o "$export_file.geojson" -g $url
echo -e "\n OK \n"
date
echo -e "nombre de points extraits :"
jq '.elements | length' $export_file
mv $export_file ../../osm_output/$export_file
jq '.elements | length' $export_file.geojson
mv "$export_file.geojson" "../../osm_output/$export_file.geojson"
python3 geojson_to_csv.py "../../osm_output/$export_file.geojson" -o "../../osm_output/$export_file.csv"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff