Ticket #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
Note: See
TracTickets for help on using
tickets.
