Support non-tiled images#7
Draft
tylere wants to merge 2 commits into
Draft
Conversation
Update README to cover the whole-file render path added in "Support non-tiled images": the geotiff.js fallback, reprojection via RasterLayer, the size guard, auto-behavior/limitations, source-layout additions (read-strips.ts, reproject.ts), the architecture branch, and the upstream #573 retirement condition. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
kylebarron
reviewed
May 28, 2026
Comment on lines
+75
to
+79
| `@developmentseed/geotiff` only reads *tiled* images — `image.fetchTile()` | ||
| expects `TileOffsets`, which stripped TIFFs don't have (its non-tiled | ||
| `GeoTIFFLayer` is unexported and still a stub; see | ||
| [deck.gl-raster#573][issue-573]). Some valid COGs are nonetheless stripped: | ||
| small enough that GDAL writes a single strip and omits `TileWidth`/`TileLength`. |
There was a problem hiding this comment.
I think we could at least expose readStrip in @developmentseed/geotiff so you don't have to bring in a second GeoTIFF parser
There was a problem hiding this comment.
Also fwiw this is wrong
Some valid COGs are nonetheless stripped:
small enough that GDAL writes a single strip and omitsTileWidth/TileLength
There are two different things. One, where the image is tiled and omits the tile width and tile length tags because the full image is small enough.
This is not that case. The image is not tiled, it is stripped. The internal keys storing the image byte offsets are in strip tags not tile tags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for non-tiled images.
Fixes #5
Unfortunately it adds several dependencies and branching logic.
A simpler alternative would be to display an informative message about not being able to render the TIF, and then wait until developmentseed/deck.gl-raster#573 is implemented.