Opened 8 years ago

Closed 8 years ago

#5358 closed defect (duplicate)

HFA driver: Histogram column uses GFU_PixelCount on writing, but not on reading

Reported by: nflood Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:


When creating a column in a raster attribute table with the HFA driver, setting eFieldUsage=GFU_PixelCount will force the column to be called "Histogram", which is consistent with Imagine's conventions (HFA has no explicit column usage mechanism, just reserved column names). However, when reading the Histogram column, the usage in the GDALRasterAttributeTable is set to GFU_Generic. I believe this should set it to GFU_PixelCount, in order that one can generically find this column by using GetColOfUsage?().

In the current trunk, in hfadataset.cpp, compare line 561 (for reading) with line 1605 (for writing).

Attached is a patch against the current trunk (2014-01-20), which fixes line 561. Also attached is a patch against the 1.10.1 release (line numbers are wildly different), in case anyone needs it.

Change History (1)

comment:1 Changed 8 years ago by Even Rouault

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.