Update wien-ogd.ipynb

datathon
Anita Graser 2022-12-07 20:51:55 +01:00 zatwierdzone przez GitHub
rodzic 23d9044d32
commit d36a5f567f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 8 dodań i 5 usunięć

Wyświetl plik

@ -26,14 +26,17 @@
"source": [
"import hvplot.pandas\n",
"from utils.dataaccess import get_gdf_from_wfs\n",
"from utils.plotting import hvplot_with_buffer"
"from utils.plotting import hvplot_with_buffer\n",
"from holoviews import opts\n",
"\n",
"opts.defaults(opts.Overlay(active_tools=['wheel_zoom'], frame_width=500, frame_height=400))\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"For example, Citybike stations:"
"For example, transport bicycle sharing stations:"
]
},
{
@ -42,7 +45,7 @@
"metadata": {},
"outputs": [],
"source": [
"gdf = get_gdf_from_wfs('CITYBIKEOGD')"
"gdf = get_gdf_from_wfs('RADGRAETZELOGD')"
]
},
{
@ -51,7 +54,7 @@
"metadata": {},
"outputs": [],
"source": [
"gdf.hvplot(geo=True, tiles='OSM', hover_cols=['STATION']).opts(active_tools=['wheel_zoom'])"
"gdf.hvplot(geo=True, tiles='OSM', hover_cols='all')"
]
},
{
@ -102,7 +105,7 @@
"outputs": [],
"source": [
"election_districts = get_gdf_from_wfs('WAHLSPRGR2020OGD')\n",
"election_districts.hvplot(geo=True, tiles='OSM', alpha=0.5).opts(active_tools=['wheel_zoom'])"
"election_districts.hvplot(geo=True, tiles='OSM', alpha=0.5)"
]
},
{