Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#3671 closed enhancement (fixed)

Allow new ENVI header file type

Reported by: verosk Owned by: chaitanya
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: envi
Cc: verosk, warmerdam

Description

Some old software produces .hdr with "file_type" set to "ENVI" instead of "ENVI Standard". I suggest to allow reading "ENVI" in the same way as "ENVI Standard".

Supposed patch: trunk/gdal/frmts/raw/envidataset.cpp (line 1852)

from

       if(!EQUAL(pszEnviFileType, "ENVI Standard") &&
	           !EQUAL(pszEnviFileType, "ENVI Classification"))

change to

       if(!EQUAL(pszEnviFileType, "ENVI Standard") &&
                   !EQUAL(pszEnviFileType, "ENVI") && // needed for old software
	           !EQUAL(pszEnviFileType, "ENVI Classification"))

Program which produces this file is Caligeo from software package accompanying hyperspectral airborne sensor AISA/Eagle.

Attachments (1)

0629-0801.hdr (5.7 KB ) - added by verosk 14 years ago.
hdr file generated by caligeo (data file is 1103831040 bytes long)

Download all attachments as: .zip

Change History (6)

comment:1 by verosk, 14 years ago

Cc: verosk added

comment:2 by warmerdam, 14 years ago

Cc: warmerdam added
Keywords: hdr gdal removed
Owner: changed from warmerdam to chaitanya

Chaitanya,

Could you take care of this?

"Verosk",

Could you supply such a header for verification purposes?

by verosk, 14 years ago

Attachment: 0629-0801.hdr added

hdr file generated by caligeo (data file is 1103831040 bytes long)

comment:3 by chaitanya, 14 years ago

Milestone: 1.6.4
Resolution: fixed
Status: newclosed
Version: 1.5.4svn-trunk

I couldn't find any reference to the file type "ENVI". So this must mean "ENVI Standard".

Applied the patch in trunk (r19977), 1.7 branch (r19978) and 1.6 branch (r19979).

comment:4 by verosk, 14 years ago

Yes, just "ENVI" is used as "ENVI standard" by Caligeo.

Thank you for your applying.

comment:5 by Even Rouault, 11 years ago

Milestone: 1.6.4

Milestone 1.6.4 deleted

Note: See TracTickets for help on using tickets.