yeesian / ArchGDAL.jl

A high level API for GDAL - Geospatial Data Abstraction Library
https://yeesian.github.io/ArchGDAL.jl/stable/
Other
141 stars 27 forks source link

support imview for Unsigned besides UInt8 #268

Closed visr closed 2 years ago

visr commented 2 years ago

The single argument normedview is only for UInt8. This assumes that the full range will be used to go from 0 to 1.

https://juliaimages.org/stable/function_reference/#ImageCore.normedview

I ran into this with a UInt16 landsat image, and with this change I can imread it. Though I see that the tests only cover UInt8.

EDIT: added a second commit to make imread work on RasterDataset