[Gdal-dev] Dataset questions
Ray Gardener
rayg at daylongraphics.com
Thu Sep 29 17:00:23 EDT 2005
My apologies if these issues are covered in a FAQ somewhere. I looked
but couldn't find anything related.
I was wondering how to identify elevation rasterbands -- should I
just iterate through all the channels available in a file, and
treat the first one to return CV_Undefined for
CGDALRasterBand::GetColorInterpretation() as the elevation block? I
could ask the user which band (in a multichannel file) to load, but want
the app to automatically handle cases where only a single elevation
channel exists.
CGDALRasterBand::GetRasterDataType() returns the pixel
datatype such as int vs. float, but I was wondering if there
was a method to return the band's meaning, like elevation vs.
color vs. mask etc.
Ray
More information about the Gdal-dev
mailing list