Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sparse tiff files #305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

otfried
Copy link

@otfried otfried commented May 24, 2022

This adds support for sparse tiff files, where the tiff file contains tiles or strips with both index and byte count set to zero.

When reading such a tile, we create an array of the appropriate type and size, and fill it with the GDAL nodata value if that is set, or otherwise with zero, as specified in https://gdal.org/drivers/raster/gtiff.html#sparse-files.

Includes some tests with 8-bit and 16-bit sparse tiff files.

Closes #304

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.

geotiff files with empty tiles or strips cannot be read
2 participants