Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#3063 closed defect (fixed)

ENVI .hdr ingestion puts RPC information in non-standard metadata tag

Reported by: cjanssen Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: ENVI RPC
Cc:

Description

The RPC information read from an ENVI header file in the ENVIDataset::ProcessRPCinfo function is placing the values in a nonstandard metadata tag. Its currently placing the metadata in the default domain with the "RPC_" prefix on each tag. I believe the appropriate action is to place the values without the prefix in the RPC domain of the metadata. I have attached a sample .hdr file.

Attachments (1)

10-24.hdr (2.5 KB) - added by cjanssen 12 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by warmerdam

Component: defaultGDAL_Raster
Keywords: ENVI RPC added
Status: newassigned

I tried working with this hdr but it has a file type of "TIFF" while it appears the current ENVI driver only supports raw files labelled with ENVI .hdrs.

Were you able to use this file?

Changed 12 years ago by cjanssen

Attachment: 10-24.hdr added

comment:2 Changed 12 years ago by cjanssen

Sorry about that, I re-exported the file out as an ENVI Standard format, I believe this is a RAW. I checked GDAL 1.6.1 and it will load it just with the RPC info out of place.

comment:3 Changed 12 years ago by warmerdam

Resolution: fixed
Status: assignedclosed

I have adjusted the RPC metadata handling in trunk (r17396).

This area would benefit from a regression test!

comment:4 Changed 10 years ago by Even Rouault

Regression test added in :

r23898 /trunk/ (4 files in 3 dirs): ENVI: add support for writing RPCs and GCPs (partial merge of r23847 from 1.8-esri)

Note: See TracTickets for help on using tickets.