Ticket #4435 (new enhancement)

Opened 4 months ago

Last modified 4 months ago

enhancement to envi hdr reader - georeferencing info

Reported by: msmitherdc Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: envi georeferencing hdr hyperspectral
Cc:

Description

We have a number of hyperspectral scenes that have georeferencing information in a header (.hdr) file in ENVI format. The Data itself is BIP and read properly by GDAL (1.9) but the georeferencing information is not.

Attached is a sample .hdr file

Attachments

test.hdr Download (7.7 KB) - added by msmitherdc 4 months ago.
example BIP hdr with georeferencing info
gdalinfo_test1.hsi Download (32.3 KB) - added by msmitherdc 4 months ago.
gdalinfo output from file

Change History

Changed 4 months ago by msmitherdc

example BIP hdr with georeferencing info

Changed 4 months ago by warmerdam

It seems plausible to use the extents keyword to establish GCPs if nothing else is picked up for georeferencing. I am not planning to immediately take action on this.

Changed 4 months ago by msmitherdc

gdalinfo output from file

Changed 4 months ago by rouault

If the image is relatively north-up, then the order of the points in extents {} seems to be : 46.808528, -116.153852 --> Upper-Left corner 46.808926, -116.149902 --> Upper-Right corner 46.802691, -116.151028 --> Lower-Left corner 46.803066, -116.147077 --> Lower-Right corner

Is that actually correct and consistant with the imagery ? I have some doubts due to the presence of angles like roll, pitch, heading and the sensor coordinates are outside of the extent, which might be a sign that the image could have a completely different orientation. By the way, is there some doc of the format ?

Changed 4 months ago by msmitherdc

Looks like the georeferencing is more complicated than I thought.

Here are the docs on it.

 http://kkrit.com/d/ENVI_4_3/online_help/Georeferencing_from_Input_Geometry.html

There is a IGM georeferencing file. I'll see if I can get some sample images with the files that I can make available.

Note: See TracTickets for help on using tickets.