Opened 16 years ago
Closed 14 years ago
#2511 closed defect (fixed)
Gdal doesn't calculate stats correctly if it is negative number
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 (last modified by )
(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;
Change History (3)
comment:1 by , 16 years ago
Description: | modified (diff) |
---|---|
Status: | new → assigned |
comment:2 by , 14 years ago
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Frank, I've fixed that recently as #3151