Ticket #1567 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

Patch for HFA no-data value support

Reported by: bclaywell Owned by: 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 Download (7.4 KB) - added by bclaywell 5 years ago.

Change History

Changed 5 years ago by bclaywell

Changed 5 years ago by bclaywell

  • version set to 1.4.0
  • milestone set to 1.5.0

Changed 5 years ago by bclaywell

  • version 1.4.0 deleted

Changed 5 years ago by mloskot

  • cc mloskot added

Changed 5 years ago by warmerdam

  • cc warmerdam added; mloskot removed
  • owner changed from warmerdam to mloskot

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.

Changed 4 years ago by neteler

  • cc neteler added

Changed 4 years ago by warmerdam

  • priority changed from normal to high

Changed 4 years ago by mloskot

  • status changed from new to assigned

Changed 4 years ago 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)

Note: See TracTickets for help on using tickets.