[gdal-dev] gdalbuildvrt and band descriptions

Javier Jimenez Shaw j1 at jimenezshaw.com
Sat Mar 27 05:42:23 PDT 2021


Thanks Even, very useful.

I didn't check the parent class, GDALMajorObject, my fault.

I use two sources (example for raster band):
- https://gdal.org/doxygen/classGDALRasterBand.html where I have to click
on the parent class(es), and study them recursively. Oh, now I realize that
the small arrow in front is a toggle (|> Public Member Functions inherited
from GDALMajorObject), that doesn't work (chromium and firefox). The
browser console says:
  classGDALRasterBand.html:246 Uncaught ReferenceError: toggleInherit is
not defined
      at HTMLTableCellElement.onclick (classGDALRasterBand.html:246)
- https://gdal.org/api/gdalrasterband_cpp.html where the name of the parent
class is not a link. Actually I do not find the parent class in the API
section. BTW, this page has a strange formatting, without spaces in the
function declarations, that makes complicated to read it.

My subconscious was expecting the list of all public methods, including
those that come from the ancestor classes, in the class documentation.

Cheers,
Javier.
.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__
Entre dos pensamientos racionales
hay infinitos pensamientos irracionales.



On Sat, 27 Mar 2021 at 12:58, Even Rouault <even.rouault at spatialys.com>
wrote:

> 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)
> 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/1dc6e46d/attachment.html>


More information about the gdal-dev mailing list