Closed JesJehle closed 3 months ago
To clarify, this is the metadata header of the original file, not the COG.
Based on the deadtree_db_planning.docs
we should distinguish between RGB and NIRRGB
we could check for bands.
RGB if has 3 bands and red, green, blue in it.
if it has more then 3 bands, NIRRGB.
What could go wrong? :)
of course we would need to assume, that this is true. Since we are only interested in RGB for now. All other bands are optional. So we basically only need to be sure, that RGB bands are present. if NIRRGB is false for some wired reason, it's not too important.
The spectral information needs to be user-supplied. There is no standard for how the band interpretation is encoded in the GeoTiff.
Also 4 bands dont necessarily mean RGB+NIR. The 4th band can also be an alpha channel generated during orthophoto generation (alpha channels shall be ignored).
So I close this issue here, as the API already takes this as a user-input
@JesJehle do you know how I can automatically obtain this info? The Tiff header for 3 randomly checked Tiffs had no info in color space in their header. Here is on of the outputs:
Or is is part of the profile metadata tag? How would ColorInterp look like if the spectral properties are not RGB?