[Gdal-dev] Display help

Frank Warmerdam warmerdam at pobox.com
Thu Sep 20 11:49:25 EDT 2007


Christiaan Janssen wrote:
> Could anyone give me some suggestions on what would be the appropriate 
> method for displaying raster data with GDAL. I'm currently using openGL 
> which is all fine but I have an issue dealing with imagery thats over 8 
> bit. Is there a way to have GDAL scale the sample values or is this 
> something I would have to do manually. Thanks

Christiaan,

Generally speaking I'd suggest you rescale the data as a post processing
step after reading it with GDALRasterIO().  There are GDAL calls to get
min/max and stats information that may be helpful to you in deciding on
a scaling strategy.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list