up extractors
This commit is contained in:
parent
31d49102d2
commit
9c077791dc
@ -7,14 +7,16 @@
|
|||||||
echo -e "\n récupération de données depuis OpenStreetMap \n"
|
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;'
|
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"
|
export_file="ask_angela_points_from_openstreetmap"
|
||||||
|
|
||||||
# Télécharger le fichier GeoJSON
|
# Télécharger le fichier GeoJSON
|
||||||
curl -X GET -o "$export_file.geojson" -g $url
|
curl -X GET -o "$export_file.geojson" -g $url
|
||||||
|
|
||||||
echo -e "\n OK \n"
|
echo -e "\n OK \n"
|
||||||
date
|
date
|
||||||
echo -e "nombre de points extraits :"
|
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"
|
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"
|
python3 geojson_to_csv.py "../../osm_output/$export_file.geojson" -o "../../osm_output/$export_file.csv"
|
||||||
|
@ -7,14 +7,15 @@
|
|||||||
echo -e "\n récupération de données depuis OpenStreetMap \n"
|
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'
|
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
|
# 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"
|
echo -e "\n OK \n"
|
||||||
date
|
date
|
||||||
echo -e "nombre de points extraits :"
|
echo -e "nombre de points extraits :"
|
||||||
jq '.elements | length' $export_file
|
jq '.elements | length' $export_file.geojson
|
||||||
mv $export_file ../../osm_output/$export_file
|
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"
|
||||||
|
@ -7,14 +7,16 @@
|
|||||||
echo -e "\n récupération de données depuis OpenStreetMap \n"
|
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'
|
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
|
# 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"
|
echo -e "\n OK \n"
|
||||||
date
|
date
|
||||||
echo -e "nombre de points extraits :"
|
echo -e "nombre de points extraits :"
|
||||||
jq '.elements | length' $export_file
|
jq '.elements | length' $export_file.geojson
|
||||||
mv $export_file ../../osm_output/$export_file
|
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"
|
||||||
|
@ -7,14 +7,16 @@
|
|||||||
echo -e "\n récupération de données depuis OpenStreetMap \n"
|
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'
|
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
|
# 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"
|
echo -e "\n OK \n"
|
||||||
date
|
date
|
||||||
echo -e "nombre de points extraits :"
|
echo -e "nombre de points extraits :"
|
||||||
jq '.elements | length' $export_file
|
jq '.elements | length' $export_file.geojson
|
||||||
mv $export_file ../../osm_output/$export_file
|
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"
|
||||||
|
15118
osm_output/irve_zone_france_from_openstreetmap.csv
Normal file
15118
osm_output/irve_zone_france_from_openstreetmap.csv
Normal file
File diff suppressed because it is too large
Load Diff
2602
osm_output/museum_zone_france_from_openstreetmap.csv
Normal file
2602
osm_output/museum_zone_france_from_openstreetmap.csv
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user