Support for reading TILE-interleaved COG

Open
#247 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

Start by examining the existing Pixel and Band interleaving data-fetching paths and their tests, then create a TILE-interleaved file in geotiff-test-data. Add a reading test for that fixture, update fetching for bands,height,width ordering, and document the downstream band order.

Written by the indexing model from the issue text.

Description

The GDAL COG driver supports three interleaving strategies: Band, pixel and tile.

  • Pixel: Stores a contiguous chunk for all data of the tile, ordered as height, width, bands
  • Band: stores every band separately in the COG. This means that in order to fetch all bands, you need to make one fetch per band.
  • Tile: Stores a contiguous chunk for all data of the tile, but ordered bands, height, width

We currently support Pixel and Band interleaving, but should also support Tile interleaving.

Todo:

  • Create a new file in geotiff-test-data with tile interleaving
  • Create a new test case here for reading that file.
  • Update data fetching code to support reading an entire chunk for tile interleaved.
  • Update docs for downstream code to interpret the data in correct band order
Dominant language
Rust
Stars
125
Forks
17
Avg merge
7h 33m
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/async-tiff

All issues in developmentseed/async-tiff

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.