Opened 14 years ago

Closed 13 years ago

#3712 closed enhancement (duplicate)

incorrect dataset files name

Reported by: logmaster Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

One of colleague gave me a ETM dataset. it contains four files with same file titles "ca2001_01_01_etmplus", and different extension: img, rrd, ige, and rde. I loaded it into Erdas Viewer and it looks very good. I opened it using GDAL 1.7.1 and learnt the dataset has 10 pyramid level.

when I loaded the data at full resolution or the level 9, an error returned at:

cperr = pband[0]->RasterIO(GF_Read, 0, 0, 64, 64, pdata, 64, 64, GDT_Byte, 0, 0);

I traced into the source code and found that, in function:

HFABand::LoadExternalBlockInfo()

the line:

const char *pszRawFilename = poDMS->GetStringField( "fileName.string" );

the value of pszRawFilename is different from the actual file title (fow rde and ige only).

so the problem may be caused by unconsciously renaming of the ige and rde files.

I would like to know, is there anyway to let user know the proper files are missing, when openning the data?

Change History (1)

comment:1 by Even Rouault, 13 years ago

Resolution: duplicate
Status: newclosed

Looks like a duplicate of #3897 whose latest fixes should be in 1.8.1 I believe.

Note: See TracTickets for help on using tickets.