Skip to content

Commit

Permalink
Improve the add_raster method (opengeos#675)
Browse files Browse the repository at this point in the history
* Improve the add_raster method

* Update sample raster datasets

* Clean up notebook
  • Loading branch information
giswqs authored Feb 12, 2024
1 parent c6afb50 commit 8644195
Show file tree
Hide file tree
Showing 35 changed files with 7,020 additions and 7,021 deletions.
994 changes: 497 additions & 497 deletions docs/notebooks/00_key_features.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/notebooks/03_cog_stac.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"metadata": {},
"outputs": [],
"source": [
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'"
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'"
]
},
{
Expand Down Expand Up @@ -182,7 +182,7 @@
"metadata": {},
"outputs": [],
"source": [
"url2 = 'https://opendata.digitalglobe.com/events/california-fire-2020/post-event/2020-08-14/pine-gulch-fire20/10300100AAC8DD00.tif'"
"url2 = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-09-13.tif'"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/32_local_tile.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"metadata": {},
"outputs": [],
"source": [
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'"
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/38_plotly.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
"outputs": [],
"source": [
"m = leafmap.Map()\n",
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
"m.add_cog_layer(url, name=\"Fire (pre-event)\")\n",
"m"
]
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/49_split_control.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
"outputs": [],
"source": [
"m = leafmap.Map(height=600, center=[39.4948, -108.5492], zoom=12)\n",
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
"url2 = 'https://opendata.digitalglobe.com/events/california-fire-2020/post-event/2020-08-14/pine-gulch-fire20/10300100AAC8DD00.tif'\n",
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
"url2 = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-09-13.tif'\n",
"m.split_map(url, url2)\n",
"m"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/58_bokeh.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"outputs": [],
"source": [
"m = leafmap.Map()\n",
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/post-event/2020-08-14/pine-gulch-fire20/10300100AAC8DD00.tif'\n",
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-09-13.tif'\n",
"m.add_cog_layer(url)\n",
"m"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/63_arcgis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"metadata": {},
"outputs": [],
"source": [
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'"
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions docs/notebooks/65_sagemaker.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"outputs": [],
"source": [
"m = leafmap.Map()\n",
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
"m.add_cog_layer(url, name=\"COG\")\n",
"m"
]
Expand All @@ -150,8 +150,8 @@
"outputs": [],
"source": [
"m = leafmap.Map()\n",
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
"url2 = 'https://opendata.digitalglobe.com/events/california-fire-2020/post-event/2020-08-14/pine-gulch-fire20/10300100AAC8DD00.tif'\n",
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
"url2 = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-09-13.tif'\n",
"m.split_map(left_layer=url, right_layer=url2)\n",
"m"
]
Expand Down
6 changes: 3 additions & 3 deletions docs/notebooks/66_gradio.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
" return m.to_gradio()\n",
"\n",
"\n",
"left_url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
"right_url = 'https://opendata.digitalglobe.com/events/california-fire-2020/post-event/2020-08-14/pine-gulch-fire20/10300100AAC8DD00.tif'\n",
"left_url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
"right_url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-09-13.tif'\n",
"left_input = gr.Textbox(value=left_url, label=\"Left Layer URL\")\n",
"right_input = gr.Textbox(value=right_url, label=\"Right Layer URL\")\n",
"\n",
Expand Down Expand Up @@ -86,7 +86,7 @@
" return m\n",
"\n",
"\n",
"url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'\n",
"url = 'https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif'\n",
"\n",
"demo = gr.Interface(\n",
" fn=viz_cog,\n",
Expand Down
Loading

0 comments on commit 8644195

Please sign in to comment.