Ticket #3047 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

GDALLoadRPB/IMDFile fails with path

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.6.2
Component: GDAL_Raster Version: 1.6.0
Severity: normal Keywords: RPB IMD RPC
Cc:

Description

The GDALLoadRPBFile() and GDALLoadIMDFile() functions fail if the passed in reference filename includes a path, and a sibling file list is provided. The following searches papszSiblingList with a name which may include a path, while the sibling list never includes the path.

    CPLString osTarget = CPLResetExtension( pszFilename, "RPB" );
    
    if( papszSiblingFiles == NULL )
    {
...
     }
    else
    {
        int iSibling = CSLFindString( papszSiblingFiles, osTarget );
        if( iSibling < 0 )
            return NULL;

        osTarget = papszSiblingFiles[iSibling];
    }

Change History

Changed 3 years ago by warmerdam

  • status changed from new to closed
  • resolution set to fixed

Fixed in trunk (r17296), 1.6 branch (r17297) and 1.6-esri branch (r17298).

Note: See TracTickets for help on using tickets.