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

EXTRA_SAMPLES TIFF tag fails on data type BYTE #296

Open
MichiHo opened this issue Feb 19, 2024 · 0 comments
Open

EXTRA_SAMPLES TIFF tag fails on data type BYTE #296

MichiHo opened this issue Feb 19, 2024 · 0 comments

Comments

@MichiHo
Copy link

MichiHo commented Feb 19, 2024

The EXTRA_SAMPLES tag in tiff is mostly documented as being of type SHORT, but in page 118 of the specification the type BYTE is also noted.
In our company, we received files from our customer which in fact have this tag stored as BYTE, and while adding it to Geoserver (which uses this library), reading the metadata failed at this location with the message Data not char[], short[], or int[]!.

Given that the spec mentions BYTE for this tag, and it can actually appear in practice, my initial proposal would be to add BYTE support to the getAsInts method - or use a different method that also supports BYTE. As I'm not well acquainted with the codebase of this library, this is of course only a wild guess of a solution.

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

No branches or pull requests

1 participant