How can you know the sequence/names of the bands of a GeoTIFF/TIFF file in Java?

997 views Asked by At

I want to know the sequence of the bands (4 and more) of a GeoTIFF file for example whether the sequence is blue, green, red, near infra red, temperature, etc or green, blue, ...

How can I know that in Java, for example in GeoTools library? And by the way, are there specific tags in the GeoTIFF that indicates that (like TIFFTAG_IMAGEDESCRIPTION) or it is up to the image reader software to interpret the bands (even if it assumes the sequence mistakenly and considers blue instead of red and so forth).

1

There are 1 answers

0
Mosab Shaheen On

As I concluded, you can't know because you may create a band that doesn't have any meaning, also you can create any number of bands. Therefore, there are no standard names for the bands and there is no way to track the bands' names or sequence, rather it is up to the image reader software to interpret.