Opened 10 years ago

Closed 10 years ago

#3047 closed defect (fixed)

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

comment:1 Changed 10 years ago by warmerdam

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.