gwaldron/osgearth — pull request #240 by aurelien35 (2012-10-02 13:10:36+00:00)
Title: The GDAL driver now use the first FLOAT_32 raster band (if available) to create heightfields

I've renamed the method "findBand" to "findBandByColorInterp" and added "findBandByDataType" method.

The "findBandByDataType" method is used to find the first FLOAT_32 band if available.

I did this because I have some GRD files which contains R,G,B and elevation band.

So with these files, the HeightFields should be created using the 4th band.

I think there is no regression for current users, because if no FLOAT_32 band is found, the first band is used as before.