locationtech / locationtech/geotrellis
GeoTiffReader can not read striped tiffs without the StripByteCount information
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.4k
- Forks
- 360
- Avg merge
- 6h 57m
- Merged PRs (30d)
- 12
Description
It is not possible to read the following tiff with our GeoTiffReader:
GeoTiffRasterSource("NE2_HR_LC_SR_W_DR.tif").read()
The sample data lives here: http://naciscdn.org/naturalearth/10m/raster/NE2_HR_LC_SR_W_DR.zip
In this case GDAL considers the entire TIFF as a stripe: https://github.com/OSGeo/gdal/blob/2299c134f0ee795f57717eae9c8622167a0b89bb/gdal/frmts/gtiff/libtiff/tif_dirread.c#L4219-L4229
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with GeoTiffReader and reproduce the failure using GeoTiffRasterSource("NE2_HR_LC_SR_W_DR.tif").read() and the sample TIFF from the linked Natural Earth archive. Compare the reader's handling with the linked GDAL StripByteCount logic; done means the striped TIFF without StripByteCount can be read successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100