Skip to content

Commit 361438a

Browse files
authored
Improve the add_raster method (opengeos#675)
* Improve the add_raster method * Update sample raster datasets * Clean up notebook
1 parent 7af0ef8 commit 361438a

35 files changed

+7020
-7021
lines changed

docs/notebooks/00_key_features.ipynb

+497-497
Large diffs are not rendered by default.

docs/notebooks/03_cog_stac.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"metadata": {},
9494
"outputs": [],
9595
"source": [
96-
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'"
96+
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'"
9797
]
9898
},
9999
{
@@ -182,7 +182,7 @@
182182
"metadata": {},
183183
"outputs": [],
184184
"source": [
185-
"url2 = 'https://opendata.digitalglobe.com/events/california-fire-2020/post-event/2020-08-14/pine-gulch-fire20/10300100AAC8DD00.tif'"
185+
"url2 = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-09-13.tif'"
186186
]
187187
},
188188
{

docs/notebooks/32_local_tile.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"metadata": {},
161161
"outputs": [],
162162
"source": [
163-
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'"
163+
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'"
164164
]
165165
},
166166
{

docs/notebooks/38_plotly.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
"outputs": [],
257257
"source": [
258258
"m = leafmap.Map()\n",
259-
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
259+
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
260260
"m.add_cog_layer(url, name=\"Fire (pre-event)\")\n",
261261
"m"
262262
]

docs/notebooks/49_split_control.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
"outputs": [],
8787
"source": [
8888
"m = leafmap.Map(height=600, center=[39.4948, -108.5492], zoom=12)\n",
89-
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
90-
"url2 = 'https://opendata.digitalglobe.com/events/california-fire-2020/post-event/2020-08-14/pine-gulch-fire20/10300100AAC8DD00.tif'\n",
89+
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
90+
"url2 = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-09-13.tif'\n",
9191
"m.split_map(url, url2)\n",
9292
"m"
9393
]

docs/notebooks/58_bokeh.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"outputs": [],
116116
"source": [
117117
"m = leafmap.Map()\n",
118-
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/post-event/2020-08-14/pine-gulch-fire20/10300100AAC8DD00.tif'\n",
118+
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-09-13.tif'\n",
119119
"m.add_cog_layer(url)\n",
120120
"m"
121121
]

docs/notebooks/63_arcgis.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"metadata": {},
6363
"outputs": [],
6464
"source": [
65-
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'"
65+
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'"
6666
]
6767
},
6868
{

docs/notebooks/65_sagemaker.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"outputs": [],
139139
"source": [
140140
"m = leafmap.Map()\n",
141-
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
141+
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
142142
"m.add_cog_layer(url, name=\"COG\")\n",
143143
"m"
144144
]
@@ -150,8 +150,8 @@
150150
"outputs": [],
151151
"source": [
152152
"m = leafmap.Map()\n",
153-
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
154-
"url2 = 'https://opendata.digitalglobe.com/events/california-fire-2020/post-event/2020-08-14/pine-gulch-fire20/10300100AAC8DD00.tif'\n",
153+
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
154+
"url2 = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-09-13.tif'\n",
155155
"m.split_map(left_layer=url, right_layer=url2)\n",
156156
"m"
157157
]

docs/notebooks/66_gradio.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
" return m.to_gradio()\n",
4848
"\n",
4949
"\n",
50-
"left_url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
51-
"right_url = 'https://opendata.digitalglobe.com/events/california-fire-2020/post-event/2020-08-14/pine-gulch-fire20/10300100AAC8DD00.tif'\n",
50+
"left_url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
51+
"right_url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-09-13.tif'\n",
5252
"left_input = gr.Textbox(value=left_url, label=\"Left Layer URL\")\n",
5353
"right_input = gr.Textbox(value=right_url, label=\"Right Layer URL\")\n",
5454
"\n",
@@ -86,7 +86,7 @@
8686
" return m\n",
8787
"\n",
8888
"\n",
89-
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
89+
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
9090
"\n",
9191
"demo = gr.Interface(\n",
9292
" fn=viz_cog,\n",

0 commit comments

Comments
 (0)