Opened 16 years ago

Closed 16 years ago

#2505 closed defect (fixed)

nodata value not reported from .aux file

Reported by: warmerdam Owned by: 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 (1)

nodata.zip (11.7 KB ) - added by warmerdam 16 years ago.
zip of tiff+aux demonstrating issue.

Download all attachments as: .zip

Change History (6)

by warmerdam, 16 years ago

Attachment: nodata.zip added

zip of tiff+aux demonstrating issue.

comment:1 by warmerdam, 16 years ago

Keywords: GTiff added; HFA removed
Status: newassigned

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.

comment:2 by warmerdam, 16 years ago

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.

comment:3 by warmerdam, 16 years ago

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

comment:4 by warmerdam, 16 years ago

Milestone: 1.5.3
Version: svn-trunk1.5.0

comment:5 by warmerdam, 16 years ago

Keywords: pam aux added
Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.