Skip to content

feat: Add 3-band ZSTD compressed, predictor=2 and band interleaved COG - #78

Merged
kylebarron merged 1 commit into
mainfrom
pred2_bandinterleave
Oct 9, 2026
Merged

kylebarron merged 1 commit into
mainfrom
pred2_bandinterleave

Conversation

@weiji14

@weiji14 weiji14 commented Oct 9, 2026

Copy link
Copy Markdown
Member

New 3-band (RGB), tiled, ZSTD compressed GeoTIFF with uint16 dtype, horizontal predictor (2), and band interleave (planar configuration).

Needed for developmentseed/async-tiff#346.

New 3-band (RGB), tiled, ZSTD compressed GeoTIFF with uint16 dtype, horizontal predictor (2), and band interleave (planar configuration). Needed for developmentseed/async-tiff#346.

@kylebarron kylebarron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm thanks!

@kylebarron
kylebarron merged commit f100c9e into main Oct 9, 2026
1 check passed
@weiji14
weiji14 deleted the pred2_bandinterleave branch October 9, 2026 18:41
kylebarron pushed a commit to developmentseed/async-tiff that referenced this pull request Oct 13, 2026
…iff (#348)

* Add regression test for #346 using uint16_3band_zstd_predictor2.tif file

Add test to ensure a multi-band, band-interleaved GeoTIFF with predictor=2 can be read properly. Using sample file at developmentseed/geotiff-test-data#78.

* fix: use stride of 1 when reversing predictor for planar config tiffs

Planar configuration TIFFs should have reverse predictor applied using stride of 1, while chunky config keeps using stride=samples_per_pixel.

* Update ifd and tile sizes for uint16_1band_lzw_block128_predictor2

Xref developmentseed/geotiff-test-data#77

* Update fixtures/geotiff-test-data from 39d4a9a to f100c9e
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.

2 participants