Ticket #1567 (closed enhancement: fixed)

Opened 1 year ago

Last modified 7 months ago

Patch for HFA no-data value support

Reported by: bclaywell Assigned to: mloskot
Priority: high Milestone: 1.5.0
Component: GDAL_Raster Version: 1.4.0
Severity: normal Keywords: HFA
Cc: warmerdam, neteler

Description

Enclosed is a patch against the 1.4.0 HFA driver source implementing no-data value support. Only partial BASEDATA support in HFAField::SetInstValue() has been implemented to support this, due to time crunch issues on my end; specifically, only 1x1 BASEDATA arrays of type double are handled. Setting and retrieving the no-data value has been tested and verified in at least simple cases to work correctly; the HFA statistics generation routines correctly honor the set no-data value; and gdalinfo correctly reports the set no-data value.

Attachments

hfa-no-data-20070409.patch (7.4 kB) - added by bclaywell on 04/09/07 02:12:23.

Change History

04/09/07 02:12:23 changed by bclaywell

  • attachment hfa-no-data-20070409.patch added.

04/09/07 05:48:15 changed by bclaywell

  • version set to 1.4.0.
  • milestone set to 1.5.0.

06/09/07 16:00:02 changed by bclaywell

  • version deleted.

06/09/07 23:30:37 changed by mloskot

  • cc set to mloskot.

06/10/07 10:55:15 changed by warmerdam

  • owner changed from warmerdam to mloskot.
  • cc changed from mloskot to warmerdam.

Mateusz,

Could you incorporate this patch in trunk when time permits.

Be quite careful with the basedata portion of the patch (in hfafield.cpp) as I believe there has been other work in this area already recently.

I'm too chicken to incorporate this feature improvement in branches/1.4.

The HFA script(s) should be extended to test the new nodata support.

11/20/07 17:45:52 changed by neteler

  • cc changed from warmerdam to warmerdam, neteler.

12/03/07 14:48:17 changed by warmerdam

  • priority changed from normal to high.

12/04/07 10:28:41 changed by mloskot

  • status changed from new to assigned.

12/06/07 21:09:11 changed by mloskot

  • status changed from assigned to closed.
  • version set to 1.4.0.
  • resolution set to fixed.

Patch applied to trunk along with NoData? read/write tests in hfa.py (r13278)