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

Joaquim Luis jluis at ualg.pt
Tue Jun 12 22:47:59 EDT 2007


Frank Warmerdam wrote:
> 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.

Frank,

If you accept this as a reference ...
This has always been the practice within GMT grids and I don't know of 
any complains about this practice.

Other opinions?

Joaquim Luis




More information about the Gdal-dev mailing list