Opened 9 years ago

Closed 9 years ago

#5918 closed defect (duplicate)

gdalinfo Stats Overflow?

Reported by: rbarnes Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

I run gdalinfo -approx_stats FILE where FILE is 161190x104424.

In the metadata, I get the following output:

STATISTICS_HISTOBINVALUES=-2147483648|0|0|0|0|0|0|0|0|0|0|469012527|1599206|0 ...

That first value is the minimum value of an unsigned 4-byte integer. My expectation is that there would be a positive number here, or a zero. Is this negative value meant to indicate something? If so, is it possible to choose an easier-to-recognize negative number?

Change History (1)

comment:1 by Even Rouault, 9 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #5159 that is addressed by https://trac.osgeo.org/gdal/wiki/rfc57_histogram_64bit_count which should be adopted in next few days.

Note: See TracTickets for help on using tickets.