HFA driver: re-writing existing histogram in HFA file, after raster editing
|Reported by:||nflood||Owned by:||warmerdam|
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 (13)
Changed 4 years ago by
comment:8 Changed 4 years ago by
|Component:||default → GDAL_Raster|
|Keywords:||hfa histogram added|
|Status:||new → closed|