Skip to content

Support non-tiled images#7

Draft
tylere wants to merge 2 commits into
mainfrom
feat/non-tiled-tiff-support
Draft

Support non-tiled images#7
tylere wants to merge 2 commits into
mainfrom
feat/non-tiled-tiff-support

Conversation

@tylere

@tylere tylere commented May 27, 2026

Copy link
Copy Markdown

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.

@tylere tylere marked this pull request as draft May 27, 2026 20:16
@tylere tylere requested a review from alukach May 27, 2026 20:17
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>
Comment thread README.md
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`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could at least expose readStrip in @developmentseed/geotiff so you don't have to bring in a second GeoTIFF parser

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fwiw this is wrong

Some valid COGs are nonetheless stripped:
small enough that GDAL writes a single strip and omits TileWidth/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uncaught Error: Tiff is not tiled

2 participants