Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4465 closed enhancement (fixed)

[PATCH] PVL Image metadata support

Reported by: bishop Owned by: warmerdam
Priority: normal Milestone: 1.10.0
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: GTIFF PVL Metadata
Cc:

Description

The gtiff driver supports DigitalGlobe? data pack, which usually includes *.rpb and *.imd files. GeoEye? have the same combination *_rpc.txt and *.pvl file. _rpc.txt support I added #3639 ticket. Now I add *.pvl support. Test imagery can be freely get from earthexplorer.usgs.gov OrbView?-3 dataset.

Attachments (1)

add_pvlmd_support.patch (5.6 KB) - added by bishop 7 years ago.
gtiff pvl metadata support patch

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by bishop

Attachment: add_pvlmd_support.patch added

gtiff pvl metadata support patch

comment:1 Changed 7 years ago by Even Rouault

Milestone: 2.0.0
Resolution: fixed
Status: newclosed

Patch committed with just a modification : I removed the following part that I think is unnecessary (and testing with .pvl or .PVL file worded). Please confirm it works :

/* -------------------------------------------------------------------- */ 
/*      Try to identify the IMD file in upper or lower case.            */ 
/* -------------------------------------------------------------------- */ 
CPLString osTarget = GDALFindAssociatedFile( osPVLFile.c_str(), "PVL",  
                                             NULL, 0 ); 
 
if( osTarget == "" ) 
    return; 

r23790 /trunk/gdal/frmts/gtiff/ (geotiff.cpp gt_wkt_srs_for_gdal.h libtiff/tif_dir.c): GTIFF: Add support for reading GeoEye? *.pvl metadata files (patch by bishop, #4465)

r23791 /trunk/gdal/frmts/gtiff/ (gt_wkt_srs_for_gdal.h libtiff/tif_dir.c): Revert files accidentaly commited in r23790

comment:2 Changed 7 years ago by bishop

I have checked current trank with .pvl and .PVL file - everything is works. Thanks!

Note: See TracTickets for help on using tickets.