[gdal-dev] gdalbuildvrt and band descriptions

Even Rouault even.rouault at spatialys.com
Sat Mar 27 04:58:01 PDT 2021


Javier,

Le 27/03/2021 à 12:44, Javier Jimenez Shaw a écrit :
> Hi,
>
> Is there any way in C++ to set the band description?

GDALMajorObject::Description()


> I know only SetColorInterpretation 
> <https://gdal.org/doxygen/classGDALRasterBand.html#a10346d2761b6cd4def98e0430305d5d5> that 
> has a limited number of options 
> (https://gdal.org/doxygen/gdal_8h.html#ace76452d94514561fffa8ea1d2a5968c 
> <https://gdal.org/doxygen/gdal_8h.html#ace76452d94514561fffa8ea1d2a5968c>) 
> none of them for near infrared.

Yes, the enumeration doesn't include infrared. Currently a few drivers 
use custom metadata items like NITF that can report 
BandName=NearInfrared/Infrared. Some also report wavelengths min/max in 
other metadata items.

Even

-- 

http://www.spatialys.com
My software is free, but my time generally not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210327/f76f3633/attachment.html>


More information about the gdal-dev mailing list