Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi ranges #94

Merged
merged 26 commits into from
Mar 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6cea5e6
First implementation of a multi-range block requesting
constantinius May 16, 2019
094060c
Using LRU cache for fetched blocks
constantinius May 16, 2019
2a3ae31
Adding functions to deal with various HTTP related functionality: par…
constantinius May 16, 2019
7396cb5
Merge branch 'master' into multi-ranges
constantinius Mar 16, 2020
3a49429
Fixing block size
constantinius Mar 17, 2020
2c2e519
Merge branch 'master' into multi-ranges
constantinius Feb 15, 2021
3f129bb
Re-structuring sources to own modules/classes
constantinius Feb 16, 2021
0d7a01d
Fixing byte range parser
constantinius Feb 17, 2021
d984d7c
Fixing fetch source and blocked source semantics
constantinius Feb 17, 2021
967b725
Adding nginx Dockerfile/config to test multipart
constantinius Feb 17, 2021
241acca
Updating package-lock
constantinius Feb 17, 2021
1aba1a0
Fixing import in test spec
constantinius Feb 17, 2021
4a3a996
Fixing `fetch` of base source to await all sub fetches
constantinius Feb 17, 2021
d2c53c9
Using isomorphic-fetch in the test spec
constantinius Feb 17, 2021
3c0066c
Split remote source functionality in source/client
constantinius Feb 18, 2021
9b21445
Fixing typos
constantinius Feb 18, 2021
026404f
Small fixes in clients
constantinius Feb 18, 2021
4d1c9f8
Properly propagating the AbortSignal
constantinius Feb 18, 2021
11a26d9
Using custom error type for aborting requests
constantinius Feb 18, 2021
70fd823
Adding documentation for aborting via signal
constantinius Feb 18, 2021
baaa1e6
Missing check for optional signal
constantinius Feb 18, 2021
07ed101
Adding error handling on block requests
constantinius Feb 19, 2021
dd3b36f
In BlockedSource retry blocks if they were
constantinius Feb 22, 2021
dd72ff1
Merge branch 'master' into multi-ranges
constantinius Feb 22, 2021
cb7985b
Merge branch 'master' into multi-ranges
constantinius Mar 24, 2021
80687f3
Updating package-lock
constantinius Mar 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,23 @@ const multiTiff = await fromUrls(
);
```

### AbortController Support

Geotiff.js supports the use of [`AbortController`s](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). Calls to `getRasters`, `readRGB` and `getTileOrStrip` will throw an `Error` with name `AbortSignal` similar to the browser's `fetch` behavior.

```javascript
const abortController = new AbortController();
const { signal } = abortController;
abortController.abort();
try {
const data = await tiff.readRasters({ signal });
} catch(e) {
if (err.name === 'AbortError') {
// do stuff
}
}
```

### Writing GeoTIFFs (Beta Version)

You can create a binary representation of a GeoTIFF using `writeArrayBuffer`.
Expand Down
200 changes: 188 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading