Skip to content

Commit

Permalink
🐛 Replace UNOSAT link with Wayback Machine permalink
Browse files Browse the repository at this point in the history
The UNOSAT link doesn't support range requests, resulting in a `DataSourceError: Range downloading not supported by this server!` error. Using the Internet Archive's permalink instead.
  • Loading branch information
weiji14 committed Apr 12, 2024
1 parent 3b25ca0 commit 5f8fc9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/stacking.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ we'll first load the digitized landslide polygons from a vector file 📁 using

```{code-cell}
# https://gdal.org/user/virtual_file_systems.html#vsizip-zip-archives
shape_url = "/vsizip/vsicurl/https://unosat.org/static/unosat_filesystem/3064/LS20220308IDN_SHP.zip/LS20220308IDN_SHP/S2_20220304_LandslideExtent_MountTalakmau.shp"
shape_url = "/vsizip/vsicurl/https://web.archive.org/web/20240202034335/https://unosat.org/static/unosat_filesystem/3064/LS20220308IDN_SHP.zip/LS20220308IDN_SHP/S2_20220304_LandslideExtent_MountTalakmau.shp"
dp_shapes = torchdata.datapipes.iter.IterableWrapper(iterable=[shape_url])
dp_pyogrio = dp_shapes.read_from_pyogrio()
Expand Down

0 comments on commit 5f8fc9f

Please sign in to comment.