rpftoc driver relative path problem
|Reported by:||ckoplay||Owned by:||warmerdam|
When I try to open a CADRG(A.TOC with a folder named "2") raster map. It could not open the dataset and gives warnings to the console like this for every CADRG tile file located in the '2' folder:
Warning 1:File /2\01C4V011.A42 does not exist.
Here is the CADRG raster map file structure:
When I debug the gdal source code i release that the driver(rpftoc driver) converts relative path of the tile file from ".2/" to "/2" in file rpftocfile.cpp line 502. and than could not find the tile file of the CADRG. When I comment the line 502, the driver works fine.
I created the CADRG raster from Global Mapper 15 and if requested, I can send the CADRG map.