Opened 16 years ago
Last modified 15 years ago
#2511 closed defect
Gdal doesn't calculate stats correctly if it is negative number — at Initial Version
Reported by: | warmerdam | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.6.3 |
Component: | GDAL_Raster | Version: | 1.5.0 |
Severity: | normal | Keywords: | |
Cc: | yanchen gaopeng |
Description
(Gdal doesn't calculate stats correctly if the image is GDT_Byte with PIXELTYPE=SIGNEDINT. In gcore\gdalrasterband.cpp, function ::GDALRasterBand::ComputeStatistics(…)
{{
switch( poBlock->GetDataType() ) {
case GDT_Byte:
dfValue = ((GByte *) poBlock->GetDataRef())[iOffset]; break;
}}
Note:
See TracTickets
for help on using tickets.