[Gdal-dev] Do we need to specifically set band's min, max on writting?

Frank Warmerdam warmerdam at pobox.com
Tue Jun 12 23:25:35 EDT 2007


Joaquim Luis wrote:
> Frank,
> 
> After my post I found out that the cause was due to fact that the file 
> (a geotiff DEM, e.g. a float) has NaNs.
> That is on purpose, as they correspond to nodata values.
> Do you mean that all files that have NaNs cannot have their min/max 
> computed?

Joaquim,

It means that NaNs are not currently ignored by the min/max computation
code.  If you wish you could file that as a bug, though I'd claim putting
"special" values like NaN and Inf in floating point images is asking
for trouble.

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