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 reading multi-band GeoTIFF files #13

Merged
merged 6 commits into from
Mar 25, 2024
Merged

✨ Support reading multi-band GeoTIFF files #13

merged 6 commits into from
Mar 25, 2024

Commits on Mar 17, 2024

  1. 📌 Use image-tiff fork with multi-band support

    Pulling from the `multi-band-geotiff` branch from my personal fork, that is currently in a pull request at image-rs/image-tiff#224.
    weiji14 committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    4fa1592 View commit details
    Browse the repository at this point in the history
  2. ✨ Support reading multi-band GeoTIFF files

    Count the number of bands or channels in the GeoTIFF file when decoding by looking at the ColorType. E.g. Gray = 1 band, Multiband = N bands. Added a unit test to read a 2-band float32 GeoTIFF file.
    weiji14 committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    867da21 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. ✅ Pytest check reading multi-band remote GeoTIFF

    Ensure that reading a multi-band GeoTIFF file from a remote URL works.
    weiji14 committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    124c2bf View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. 📝 Update note on multi-band support in main README.md

    Also clarify that the roadmap item on reading single-band GeoTIFFs is for different dtypes.
    weiji14 committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    d3caf4a View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2024

  1. 📌 Pin to image-tiff 0c54a18

    The Multi-band PR at image-rs/image-tiff#224 has been merged, so updating to use the main branch instead.
    weiji14 committed Mar 24, 2024
    Configuration menu
    Copy the full SHA
    6cb65cd View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. 🥅 Return TiffUnsupportedError instead of unimplemented panic

    Replace `unimplemented!` with a recoverable TiffError::UnsupportedError instead to allow for better exception handling. Moved the band counting logic in the ndarray method above the image dimension line, and added a unit test to ensure unsupported ColorType TIFFs are handled properly.
    weiji14 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    ae35a13 View commit details
    Browse the repository at this point in the history