3 Star 0 Fork 0

mirrors_ReneNyffenegger/defi_data

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run_queries.sh 8.67 KB
一键复制 编辑 原始数据 按行查看 历史
Christian Nüssli 提交于 2021-09-12 18:39 . Update run_queries.sh
#!/bin/bash
set -e
set -o pipefail
function cleanup {
exit $?
}
trap "cleanup" EXIT
DIR="$(cd "$(dirname "$0")" && pwd)"
# Schweiz
# Defibrillatoren ganze Schweiz
echo -ne "Query Defibrillatoren ganze Schweiz... "
cat $DIR/queries/defis_switzerland.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_switzerland.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren ganze Schweiz 24h
echo -ne "Query Defibrillatoren ganze Schweiz 24h... "
cat $DIR/queries/defis_ch_24h.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_ch_24h.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren ganze Schweiz NICHT 24h
echo -ne "Query Defibrillatoren ganze Schweiz, nicht 24h... "
cat $DIR/queries/defis_ch_not_24h.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_ch_not_24h.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Notrufzentralen
# Defibrillatoren Dispogebiet SRZ
echo -ne "Query Defibrillatoren Dispogebiet SRZ... "
cat $DIR/queries/defis_dispo_srz.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_dispo_srz.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren KNZ St.Gallen
echo -ne "Query Defibrillatoren KNZ St. Gallen... "
cat $DIR/queries/defis_dispo_knzsg.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_dispo_knzsg.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Kantone
# Defibrillatoren Kanton Aargau
echo -ne "Query Defibrillatoren Aargau... "
cat $DIR/queries/defis_kt_ag.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_ag.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Appenzell Innerhoden
echo -ne "Query Defibrillatoren Appenzell Innerhoden... "
cat $DIR/queries/defis_kt_ai.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_ai.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Appenzell Ausserhoden
echo -ne "Query Defibrillatoren Appenzell Ausserhoden... "
cat $DIR/queries/defis_kt_ar.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_ar.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Bern
echo -ne "Query Defibrillatoren Bern... "
cat $DIR/queries/defis_kt_be.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_be.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Basel Land
echo -ne "Query Defibrillatoren Basel Land... "
cat $DIR/queries/defis_kt_bl.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_bl.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Basel Stadt
echo -ne "Query Defibrillatoren Basel Stadt... "
cat $DIR/queries/defis_kt_bs.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_bs.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Fribourg
echo -ne "Query Defibrillatoren Fribourg... "
cat $DIR/queries/defis_kt_fr.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_fr.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Genf
echo -ne "Query Defibrillatoren Genf... "
cat $DIR/queries/defis_kt_ge.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_ge.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Glarus
echo -ne "Query Defibrillatoren Glarus... "
cat $DIR/queries/defis_kt_gl.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_gl.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Graubünden
echo -ne "Query Defibrillatoren Graubünden... "
cat $DIR/queries/defis_kt_gr.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_gr.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Jura
echo -ne "Query Defibrillatoren Jura... "
cat $DIR/queries/defis_kt_ju.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_ju.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Luzern
echo -ne "Query Defibrillatoren Luzern... "
cat $DIR/queries/defis_kt_lu.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_lu.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Neuenburg
echo -ne "Query Defibrillatoren Neuenburg... "
cat $DIR/queries/defis_kt_ne.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_ne.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Nidwalden
echo -ne "Query Defibrillatoren Nidwalden... "
cat $DIR/queries/defis_kt_nw.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_nw.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Obdwalden
echo -ne "Query Defibrillatoren Obwalden... "
cat $DIR/queries/defis_kt_ow.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_ow.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton St. Gallen
echo -ne "Query Defibrillatoren Kanton St.Gallen... "
cat $DIR/queries/defis_kt_sg.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_sg.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Schaffhausen
echo -ne "Query Defibrillatoren Schaffhausen... "
cat $DIR/queries/defis_kt_sh.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_sh.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Solothurn
echo -ne "Query Defibrillatoren Solothurn... "
cat $DIR/queries/defis_kt_so.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_so.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Schwyz
echo -ne "Query Defibrillatoren Schwyz... "
cat $DIR/queries/defis_kt_sz.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_sz.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Thurgau
echo -ne "Query Defibrillatoren Appenzell Thurgau... "
cat $DIR/queries/defis_kt_tg.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_tg.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Tessin
echo -ne "Query Defibrillatoren Tessin... "
cat $DIR/queries/defis_kt_ti.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_ti.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Uri
echo -ne "Query Defibrillatoren Uri... "
cat $DIR/queries/defis_kt_ur.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_ur.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Waadt
echo -ne "Query Defibrillatoren Waadt... "
cat $DIR/queries/defis_kt_vd.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_vd.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Wallis
echo -ne "Query Defibrillatoren Wallis... "
cat $DIR/queries/defis_kt_vs.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_vs.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Zug
echo -ne "Query Defibrillatoren Zug... "
cat $DIR/queries/defis_kt_zg.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_zg.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren Kanton Zürich
echo -ne "Query Defibrillatoren Kanton Zürich... "
cat $DIR/queries/defis_kt_zh.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_kt_zh.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Städte
# Defibrillatoren Stadt Zürich
echo -ne "Query Defibrillatoren Stadt Zürich... "
cat $DIR/queries/defis_stadt_zh.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_stadt_zh.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Liechtenstein
# Defibrillatoren ganz Liechtenstein
echo -ne "Query Defibrillatoren ganz Liechtenstein... "
cat $DIR/queries/defis_liechtenstein.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_liechtenstein.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren ganz Liechtenstein 24h
echo -ne "Query Defibrillatoren ganze Schweiz 24h... "
cat $DIR/queries/defis_li_24h.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_li_24h.geojson
echo -ne "\t\t - Done.\r"
echo ""
# Defibrillatoren ganz Liechtenstein NICHT 24h
echo -ne "Query Defibrillatoren ganze Schweiz, nicht 24h... "
cat $DIR/queries/defis_li_not_24h.txt | python $DIR/overpass_query.py | osmtogeojson > $DIR/data/json/defis_li_not_24h.geojson
echo -ne "\t\t - Done.\r"
echo ""
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_ReneNyffenegger/defi_data.git
git@gitee.com:mirrors_ReneNyffenegger/defi_data.git
mirrors_ReneNyffenegger
defi_data
defi_data
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385