Ticket #2505 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

nodata value not reported from .aux file

Reported by: warmerdam Assigned to: warmerdam
Priority: normal Milestone: 1.5.3
Component: GDAL_Raster Version: 1.5.0
Severity: normal Keywords: GTiff pam aux
Cc: gaopeng

Description

The attached tif+aux does not report a nodata even though this node exists in the .aux file:

    Eimg_NonInitializedValue(Eimg_NonInitializedValue) @ 2908 + 21 @ 3036
    + BASEDATA(valueBD): 1x1 of u8
    + valueBD =     + 0

Attachments

nodata.zip (11.7 kB) - added by warmerdam on 07/25/08 18:03:55.
zip of tiff+aux demonstrating issue.

Change History

07/25/08 18:03:55 changed by warmerdam

  • attachment nodata.zip added.

zip of tiff+aux demonstrating issue.

07/25/08 18:06:26 changed by warmerdam

  • keywords changed from HFA to GTiff.
  • status changed from new to assigned.

I have established that gdalinfo on the .aux file directly does report the nodata, so the problem would appear to be in the geotiff driver.

07/25/08 18:36:29 changed by warmerdam

I have discovered two significant issues at play.

First, the GTIFF driver was not falling back to GDALPamRasterBand::GetNoDataValue?() if there was no native geotiff nodata.

Second, the GDALPamRasterBand was not harvesting nodata values from .aux files in TryLoadAux?().

Both issues were corrected in trunk (r15033).

I will construct a test case, and then backport into 1.5 branch.

07/29/08 02:06:54 changed by warmerdam

I have applied the change in 1.5 branch as well (r15069) though I still need to prepare a test case for this issue.

07/29/08 02:09:41 changed by warmerdam

  • version changed from svn-trunk to 1.5.0.
  • milestone set to 1.5.3.

07/29/08 11:23:01 changed by warmerdam

  • keywords changed from GTiff to GTiff pam aux.
  • status changed from assigned to closed.
  • resolution set to fixed.

Added pam_6 test in autotest/gcore/pam.py for this case in trunk (r15070).