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

4/4 Support GeoTIFF data in TIFF #586

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

don-vip
Copy link

@don-vip don-vip commented Jun 19, 2022

This is the fourth and final step towards solving #278

It includes:

  1. ports of commits from Add GeoTIFF support metadata-extractor-dotnet#307
  2. some bug fixes (I'll open a PR in metadata-extractor-dotnet)
  3. a new unit test to check GeoTIFF parsing, using data set taken from OSGEO/libgeotiff
  4. addition of new EPSG codes used in the libgeotiff samples

It is based on #585. Feel free to close the three others if you prefer to merge all my work in this PR :)

… than passing TIFF header offsets around everywhere.
Note that while BigTIFF supports files greater than 2 GiB in size, our current implementation does not due to the pervasive use of Int32 throughout the code to represent offsets into the data.
This will only ever be a 16-bit value.
This allows combining the add and test operations into a single lookup.
@don-vip don-vip force-pushed the geotiff-support branch 4 times, most recently from c8ff8fe to d0da84a Compare June 19, 2022 23:01
If the byte order changes during extraction, a new reader is made via WithByteOrder.
That new reader is naturally scoped to the sub-reading operation, and the byte order
does not need to be reverted.
We have been steadily adding parameters to members of ITiffHandler. We are about to add more to support GeoTIFF. Rather than do that, introduce a new type that encapsulates this common state. This makes the API simpler, and means we can add members in future without it being a breaking change.
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.

None yet

1 participant