[gdal-dev] GDALComputeRasterMinMax and 'nodata value'.
Michele Sanges
michele.sanges at otomelara.it
Thu Jun 5 10:04:34 EDT 2008
Hi,
why the function GDALComputeRasterMinMax() computes the two values
taking in account also the 'nodata value'?
For example:
# gdalinfo E020N40.DEM
Driver: EHdr/ESRI .hdr Labelled
Files: E020N40.DEM
E020N40.HDR
E020N40.STX
E020N40.PRJ
Size is 4800, 6000
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AXIS["Lat",NORTH],
AXIS["Long",EAST],
AUTHORITY["EPSG","4326"]]
Origin = (20.000000000000004,39.999999999999993)
Pixel Size = (0.008333333333330,-0.008333333333330)
Corner Coordinates:
Upper Left ( 20.0000000, 40.0000000) ( 20d 0'0.00"E, 40d 0'0.00"N)
Lower Left ( 20.0000000, -10.0000000) ( 20d 0'0.00"E, 10d 0'0.00"S)
Upper Right ( 60.0000000, 40.0000000) ( 60d 0'0.00"E, 40d 0'0.00"N)
Lower Right ( 60.0000000, -10.0000000) ( 60d 0'0.00"E, 10d 0'0.00"S)
Center ( 40.0000000, 15.0000000) ( 40d 0'0.00"E, 15d 0'0.00"N)
Band 1 Block=4800x1 Type=UInt16, ColorInterp=Undefined
Min=-9999.000 Max=5825.000
Minimum=-9999.000, Maximum=5825.000, Mean=-2347.600, StdDev=4873.500
NoData Value=-9999
Regards.
Michele
More information about the gdal-dev
mailing list