typo name of export file
This commit is contained in:
parent
0e1ff7b04b
commit
4a4cfc0441
@ -1,14 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# export depuis OSM des points
|
||||
# cargo_bike=*
|
||||
# leisure=hackerspace
|
||||
# en France
|
||||
|
||||
echo -e "\n récupération de données depuis OpenStreetMap \n"
|
||||
|
||||
url='https://overpass-api.de/api/interpreter?data=[out:json][timeout:300];area(id:3602202162)->.searchArea;nwr["leisure"="hackerspace"](area.searchArea);out+geom;'
|
||||
|
||||
export_file="cargo_bike_zone_france_from_openstreetmap"
|
||||
export_file="hackerspace_zone_france_from_openstreetmap"
|
||||
|
||||
echo -e "\n récupération de données depuis OpenStreetMap \n"
|
||||
echo " export osm de: $export_file"
|
||||
@ -32,7 +32,7 @@ mv "$export_file.geojson" "../../osm_output/$export_file.geojson"
|
||||
echo " -> fichier placé dans ../../osm_output/$export_file.geojson "
|
||||
|
||||
# on convertit le geojson en csv
|
||||
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"
|
||||
rm "$export_file.json"
|
||||
echo "nombre de features dans l'export geojson :"
|
||||
jq '.features | length' "../../osm_output/$export_file.geojson"
|
||||
|
@ -7,7 +7,7 @@ echo -e "\n récupération de données depuis OpenStreetMap \n"
|
||||
|
||||
url='https://overpass-api.de/api/interpreter?data=[out:json][timeout:300];area(id:3602202162)->.searchArea;nwr["amenity"="hospital"](area.searchArea);out+geom;'
|
||||
|
||||
export_file="museum_zone_france_from_openstreetmap"
|
||||
export_file="hopitaux_zone_france_from_openstreetmap"
|
||||
|
||||
echo -e "\n récupération de données depuis OpenStreetMap \n"
|
||||
echo " export osm de: $export_file"
|
||||
|
@ -7,7 +7,7 @@ echo -e "\n récupération de données depuis OpenStreetMap \n"
|
||||
|
||||
url='https://overpass-api.de/api/interpreter?data=[out:json][timeout:300];area(id:3602202162)->.searchArea;nwr["amenity"="restaurant"](area.searchArea);out+geom;'
|
||||
|
||||
export_file="toilets_zone_france_from_openstreetmap"
|
||||
export_file="restaurant_zone_france_from_openstreetmap"
|
||||
|
||||
echo -e "\n récupération de données depuis OpenStreetMap \n"
|
||||
echo " export osm de: $export_file"
|
||||
|
10723
osm_output/hackerspace_zone_france_from_openstreetmap.geojson
Normal file
10723
osm_output/hackerspace_zone_france_from_openstreetmap.geojson
Normal file
File diff suppressed because it is too large
Load Diff
6882
osm_output/hackerspace_zone_france_from_openstreetmap.osm.json
Normal file
6882
osm_output/hackerspace_zone_france_from_openstreetmap.osm.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user