Opened 13 years ago

Closed 13 years ago

Last modified 13 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


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.


Attachments (1)

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

Download all attachments as: .zip

Change History (4)

by verosk, 13 years ago

Attachment: gdal.patch added

Robust .hdr reading patch

comment:1 by warmerdam, 13 years ago

Keywords: envi added
Status: newassigned

comment:2 by warmerdam, 13 years ago

Resolution: fixed
Status: assignedclosed

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

comment:3 by verosk, 13 years ago

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


Note: See TracTickets for help on using tickets.