About Band name VS Band Description
Note: I don't have the answer to the question.
name VS description
While playing with MDStr::BandName
meta data, I've observed it isn't used anywhere else (outside of OTB). It seems to be a metadata exclusive to OTB.
Yet, bands have a description. It can be accessed through GetDescription()
and changed with SetDescription()
. I haven't seen any way to set this description from OTB API.
Shouldn't MDStr::BandName
used to fill the description? Or is it meant to be used for other purposes? Or could there be some side effects? Which would explain why this possibility has been discarded by design?
Redundancy
On the subject, I've observed the band NoData
value appears twice.
- Once as the official nodata value that other tools like qgis will use
- Once as an extra textual metadata
e.g.
Band 1 Block=10980x1 Type=Float32, ColorInterp=Gray
NoData Value=-32768
Metadata:
BandName=sin(LIA)
NoData=-32768
Isn't the second appearance pointless?
Note: If I ask the question, it's because the same issue will appear with band name/description.