Opened 14 years ago

Closed 14 years ago

#3532 closed defect (fixed)

Metadata and georeferencing not read for Landsat L1G HDF (MTL.L1G)

Reported by: rprinceley Owned by: warmerdam
Priority: normal Milestone: 1.8.0
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: HDF4
Cc:

Description

For Landsat L1G data, the corresponding MTL.L1G file should be processed for metadata and georeferencing.

Attachments (1)

readmtlfile.cpp (1.6 KB ) - added by rprinceley 14 years ago.
Snippet to read MTL file.

Download all attachments as: .zip

Change History (5)

comment:1 by warmerdam, 14 years ago

Keywords: HDF4 added

Robin,

Can you provide a pointer to a sample dataset?

by rprinceley, 14 years ago

Attachment: readmtlfile.cpp added

Snippet to read MTL file.

in reply to:  1 comment:2 by rprinceley, 14 years ago

Will try to find a freely redistributable sample.

Adding link: http://landval.gsfc.nasa.gov/reading_l7_hdf.html

comment:3 by warmerdam, 14 years ago

Milestone: 1.8.0
Status: newassigned

I have made a preliminary implementation of georeferencing support from the MTL file in trunk (r19427) and 1.6-esri (r19428). The provided sample data was a raw image product, so all I was able to capture for georeferencing was lat/long corner coordinates. If I had a map projected image, I could fill out the support for setting the geotransform.

I did not capture any other metadata from the MTL file, though there are some other items that might be of interest.

comment:4 by warmerdam, 14 years ago

Resolution: fixed
Status: assignedclosed

Robin extended the MTL support in the 1.6-esri branch to support either L1_ or LPGS_ prefixes (r19487). I ported this into trunk with a few cosmetic changes (r19494).

Note: See TracTickets for help on using tickets.