Opened 15 years ago
Closed 15 years ago
#2715 closed defect (fixed)
Missing ERDAS histogram
Reported by: | gaopeng | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.7.0 |
Component: | GDAL_Raster | Version: | 1.6.0 |
Severity: | normal | Keywords: | HFA |
Cc: | rprinceley |
Description
Attached IMG image contains an internal histogram. But the driver failed to read and return it.
Attachments (1)
Change History (4)
by , 15 years ago
Attachment: | lnsoils.img added |
---|
comment:1 by , 15 years ago
Keywords: | HFA added |
---|---|
Status: | new → assigned |
I have determined that the histogram on this file is read fine, but is not returned by GetDefaultHistogram(). The histogram is available in the metadata.
{{[
STATISTICS_MINIMUM=1 STATISTICS_MAXIMUM=35 STATISTICS_MEAN=25.386867523193 STATISTICS_MEDIAN=27 STATISTICS_MODE=25 STATISTICS_STDDEV=7.3383615229582 LAYER_TYPE=thematic STATISTICS_HISTOBINVALUES=184|249|2339|3167|403|5931|891|2592|7625|463|16|1726|4569|339|43|113|243|3795|1225|2693|9223|20064|15250|47480|172|2839|27841|22|42925|25326|3991|35|28349|21|
}}}
Hmm, the problem seems to be that STATISTICS_HISTOMIN and STATISTICS_HISTOMAX are missing so the HFARasterBand::GetDefaultHistogram() specialization isn't returning the known histogram ... investigating.
comment:2 by , 15 years ago
Cc: | added |
---|
comment:3 by , 15 years ago
Milestone: | 1.6.2 → 1.7.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
This appears to have been corrected as a side effect of r17462.
An IMG containing internal histogram.