Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3741 closed enhancement (fixed)

ENVI .hdr file parsing

Reported by: verosk Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.5.4
Severity: normal Keywords: envi
Cc: verosk

Description

Some legacy software produces .hdr files with fields separated by '\t' (in addition of standard space '\x20').

Although ENVI can read such files without problems, GDAL refuses because of invalid header ,

The file appears to have an associated ENVI header, but
one or more of the samples, lines, bands and interleave
keywords appears to be missing."

I suggest applying attached patch to GDAL core to make reading of ENVI .hdr more robust.

--Veros

Attachments (1)

gdal.patch (1.1 KB) - added by verosk 9 years ago.
Robust .hdr reading patch

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by verosk

Attachment: gdal.patch added

Robust .hdr reading patch

comment:1 Changed 9 years ago by warmerdam

Keywords: envi added
Status: newassigned

comment:2 Changed 9 years ago by warmerdam

Resolution: fixed
Status: assignedclosed

Approximation of patch applied without the wavelength metadata change. Done in trunk (r20530).

comment:3 Changed 9 years ago by verosk

I'm sorry I mixed two patches (other part is patch for #3682).

--V

Note: See TracTickets for help on using tickets.