Skip to content

Commit 873181c

Browse files
authored
Updates to the Visualisation and Remote Data Section (#183)
* - localised visualitation notebook * - localised remote section of the workshop - add paragraph with references about OGCAPI
1 parent 56cf0ae commit 873181c

6 files changed

Lines changed: 105 additions & 3903 deletions

File tree

workshop/jupyter/content/notebooks/07-visualization.ipynb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"source": [
4848
"import folium\n",
4949
"\n",
50-
"folium_map = folium.Map(location=[58.378025, 26.728493])"
50+
"folium_map = folium.Map(location=[-1.4563, -48.5013])"
5151
]
5252
},
5353
{
@@ -207,7 +207,7 @@
207207
"source": [
208208
"from ipyleaflet import *\n",
209209
"\n",
210-
"m = Map(center=(58.378025, 26.728493), zoom=10, basemap=basemaps.OpenStreetMap.Mapnik)\n",
210+
"m = Map(center=(-1.4563, -48.5013), zoom=10, basemap=basemaps.OpenStreetMap.Mapnik)\n",
211211
"m"
212212
]
213213
},
@@ -344,7 +344,7 @@
344344
"source": [
345345
"import ipywidgets\n",
346346
" \n",
347-
"ipywidgets.HBox([m, Map(center=[58.378025, 26.728493], zoom=8)])"
347+
"ipywidgets.HBox([m, Map(center=[-1.4563, -48.5013], zoom=8)])"
348348
]
349349
},
350350
{
@@ -364,12 +364,12 @@
364364
"source": [
365365
"from ipywidgets import HTML\n",
366366
"from ipyleaflet import Map, Marker, Popup\n",
367-
"center = (58.3734,26.716)\n",
367+
"center = (-1.4217175,-48.4921731)\n",
368368
"m = Map(center=center, zoom=17, close_popup_on_click=False)\n",
369-
"marker = Marker(location=(58.3734,26.716))\n",
369+
"marker = Marker(location=(-1.4217175,-48.4921731))\n",
370370
"m.add_layer(marker)\n",
371371
"message2 = HTML()\n",
372-
"message2.value = \"Hey!! I'm speaking at FOSS4GE 2024 🔥\"\n",
372+
"message2.value = \"Hey!! I'm speaking at FOSS4G 2025 🔥\"\n",
373373
"marker.popup = message2\n",
374374
"m"
375375
]
@@ -395,18 +395,18 @@
395395
"all_cities = gpd.read_file('../data/shape/populated_places.shp')\n",
396396
"all_countries = gpd.read_file('../data/ne_110m_admin_0_countries/ne_110m_admin_0_countries.shp')\n",
397397
"all_cities.dropna(subset=[\"NAME\",\"geometry\"])\n",
398-
"India = all_countries[all_countries['NAME'] == 'India']\n",
399-
"Indian_cities = all_cities[all_cities.within(India.squeeze().geometry)]\n",
400-
"Indian_cities\n",
398+
"Brazil = all_countries[all_countries['NAME'] == 'Brazil']\n",
399+
"Brazilian_cities = all_cities[all_cities.within(Brazil.squeeze().geometry)]\n",
400+
"Brazilian_cities\n",
401401
"\n",
402402
"# Creating Map\n",
403403
"from ipyleaflet import Map, Marker, Popup\n",
404404
"from ipywidgets import HTML\n",
405-
"center = (33.762918,68.637469)\n",
405+
"center = (-15.749997,-47.9499962)\n",
406406
"m = Map(center=center, zoom=3, close_popup_on_click=False)\n",
407407
"\n",
408408
"# Adding data as marker \n",
409-
"for index, row in Indian_cities.iterrows():\n",
409+
"for index, row in Brazilian_cities.iterrows():\n",
410410
" message2 = HTML()\n",
411411
" marker = Marker(location=(row['geometry'].y, row['geometry'].x))\n",
412412
" message2.value = row['NAME']\n",

workshop/jupyter/content/notebooks/10-remote-data.ipynb

Lines changed: 63 additions & 3105 deletions
Large diffs are not rendered by default.

workshop/jupyter/content/notebooks/test/07-folium-1.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<meta name="viewport" content="width=device-width,
2626
initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
2727
<style>
28-
#map_a4e2f2c32c5078b8180d56fb8b10611b {
28+
#map_c7fddfe3c865f88d51ab6768c05d2055 {
2929
position: relative;
3030
width: 100.0%;
3131
height: 100.0%;
@@ -39,16 +39,16 @@
3939
<body>
4040

4141

42-
<div class="folium-map" id="map_a4e2f2c32c5078b8180d56fb8b10611b" ></div>
42+
<div class="folium-map" id="map_c7fddfe3c865f88d51ab6768c05d2055" ></div>
4343

4444
</body>
4545
<script>
4646

4747

48-
var map_a4e2f2c32c5078b8180d56fb8b10611b = L.map(
49-
"map_a4e2f2c32c5078b8180d56fb8b10611b",
48+
var map_c7fddfe3c865f88d51ab6768c05d2055 = L.map(
49+
"map_c7fddfe3c865f88d51ab6768c05d2055",
5050
{
51-
center: [58.378025, 26.728493],
51+
center: [-1.4563, -48.5013],
5252
crs: L.CRS.EPSG3857,
5353
zoom: 10,
5454
zoomControl: true,
@@ -60,16 +60,16 @@
6060

6161

6262

63-
var tile_layer_44ca4ff4b66c51338a126bbd51a6d860 = L.tileLayer(
63+
var tile_layer_8f6dc75ca34a4b2c02e230561aa6d5e4 = L.tileLayer(
6464
"https://tile.openstreetmap.org/{z}/{x}/{y}.png",
6565
{"attribution": "\u0026copy; \u003ca href=\"https://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors", "detectRetina": false, "maxNativeZoom": 19, "maxZoom": 19, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
6666
);
6767

6868

69-
tile_layer_44ca4ff4b66c51338a126bbd51a6d860.addTo(map_a4e2f2c32c5078b8180d56fb8b10611b);
69+
tile_layer_8f6dc75ca34a4b2c02e230561aa6d5e4.addTo(map_c7fddfe3c865f88d51ab6768c05d2055);
7070

7171

72-
tile_layer_44ca4ff4b66c51338a126bbd51a6d860.addTo(map_a4e2f2c32c5078b8180d56fb8b10611b);
72+
tile_layer_8f6dc75ca34a4b2c02e230561aa6d5e4.addTo(map_c7fddfe3c865f88d51ab6768c05d2055);
7373

7474
</script>
7575
</html>

workshop/jupyter/content/notebooks/test/07-folium-2.html

Lines changed: 22 additions & 22 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)