Commit 860a701
authored
feat: Overhaul to use our
This is a really big PR, but unfortunately it really had to be a big PR
because we effectively had to change our geotiff reader _and_ our
TileMatrixSet traversal at the same time.
### Change list
- Fully removes `geotiff.js` as a dependency. We now only use
`@developmentseed/geotiff` and the underlying `@cogeotiff/core` for
reading data.
- The `TileMatrixSetTileset` now accepts an _arbitrary_,
_spec-compliant_, OGC TileMatrixSet instance. This will make it much
more interoperable. Closes
#216. This
should make it easier for Lonboard to generate a TMS from async-geotiff,
pass the TMS definition to JS, and then have it auto-fetch tiles from
Python according to that tiling system.
- Removes `GeoTIFFLayer` from our public API for now, since our geotiff
implementation doesn't support fetching the entire full-resolution image
and stitching tiles together. (And it's probably a candidate to fully
remove in the future in favor of `COGLayer`)
- Define new projection resolver `epsgResolver`. Our default
implementation caches all fetched projections in our
`PROJECTION_REGISTRY` (closes
#185). But users
can easily override this behavior by passing a custom `epsgResolver`
- Removes multiple copies of affine handling, ensuring we put all affine
transformation handling into `@developmentseed/affine`
- Update `cog-basic` example for latest changes. (Other examples haven't
been updated yet)
`@cogeotiff/core` is _very_ pleasant to use. It's nice to use Typescript
Enums instead of hard-coding integer matching.
### Todo
- [ ] Ensure request cancellation (needs
blacha/cogeotiff#1400 upstream). Should make the
deck.gl visualization quite a bit faster.
- [ ] Move image decoding onto a thread pool in workers.
Closes #216geotiff package & generic TileMatrixSet support (#208)1 parent cb1106e commit 860a701
48 files changed
Lines changed: 964 additions & 1940 deletions
File tree
- examples/cog-basic
- src
- packages
- affine/src
- deck.gl-geotiff
- src
- geotiff
- tests
- deck.gl-raster
- src
- raster-tileset
- geotiff
- src
- tests
- morecantile
- src
- tests
- raster-reproject
- src/affine
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 15 | + | |
| 16 | + | |
30 | 17 | | |
31 | 18 | | |
32 | 19 | | |
33 | 20 | | |
34 | | - | |
35 | | - | |
| 21 | + | |
| 22 | + | |
36 | 23 | | |
37 | 24 | | |
38 | 25 | | |
| |||
62 | 49 | | |
63 | 50 | | |
64 | 51 | | |
65 | | - | |
66 | 52 | | |
67 | 53 | | |
68 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | | - | |
53 | | - | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
0 commit comments