Opened 14 years ago
Closed 14 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]; }
Note:
See TracTickets
for help on using tickets.
Fixed in trunk (r17296), 1.6 branch (r17297) and 1.6-esri branch (r17298).