#5159 closed defect (fixed)
gdalinfo -hist reports negative counts
Reported by: | peifer | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.0.0 |
Component: | Utilities | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description
I used gdalinfo -hist on a byte-type GeoTIFF with 65000 x 46000 pixel.
The count for value 0 is: -1652904589.
The correct count is actually 2642062707 (as given by GRASS r.stats). This looks pretty much like an integer overflow.
Change History (5)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Thanks for taking care. So in the meantime we'll just wait for GDAL version 2, correct?
comment:4 by , 9 years ago
Milestone: | → 2.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Implemented in r28899
Note:
See TracTickets
for help on using tickets.
Yes, and the annoying thing is that it is an API bug. The histogram array is of type int...
I've added a section about that in http://trac.osgeo.org/gdal/wiki/GDAL20Changes