Opened 12 years ago

Closed 5 years ago

#4435 closed enhancement (wontfix)

enhancement to envi hdr reader - georeferencing info

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

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 (2)

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

Download all attachments as: .zip

Change History (7)

by msmitherdc, 12 years ago

Attachment: test.hdr added

example BIP hdr with georeferencing info

comment:1 by warmerdam, 12 years ago

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.

by msmitherdc, 12 years ago

Attachment: gdalinfo_test1.hsi added

gdalinfo output from file

comment:2 by Even Rouault, 12 years ago

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 ?

comment:3 by msmitherdc, 12 years ago

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.

comment:4 by antonio, 11 years ago

Cc: antonio added

comment:5 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.