Opened 11 years ago
Last modified 10 years ago
#5176 closed defect
HFA driver: re-writing existing histogram in HFA file, after raster editing — at Version 1
Reported by: | nflood | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.11.0 |
Component: | GDAL_Raster | Version: | 1.10.0 |
Severity: | normal | Keywords: | hfa histogram |
Cc: |
Description (last modified by )
When using Imagine to directly edit the pixel values, Imagine fails to recalculate the histogram correctly. GDAL can be used to write the histogram to an HFA file, but only if it is not already present. This patch adds a case to hfaopen.cpp to allow the histogram counts to be re-written after they have changed.
This patch is against the current 1.10.0 release, but was originally trialed against 1.9.0, and has been in use since July 2012 without further problems.
Also added a patch against the current trunk, which is a few lines different than the 1.10.0 file. The trunk patch has not been operationally tested, but the file appears to be the same apart from a slight line number shift, and I would not anticipate any problem.
Change History (3)
by , 11 years ago
Attachment: | hfaopen.cpp.overwritehisto.patch added |
---|
by , 11 years ago
Attachment: | hfaopen.cpp.overwritehisto.trunk.patch added |
---|
comment:1 by , 11 years ago
Description: | modified (diff) |
---|
patch against current trunk (2013-07-31, revision 26024)