Opened 9 years ago

Closed 9 years ago

#5979 closed defect (fixed)

rpftoc driver relative path problem

Reported by: ckoplay Owned by: warmerdam
Priority: normal Milestone: 1.11.3
Component: GDAL_Raster Version: 1.10.1
Severity: normal Keywords: rpftoc driver
Cc: ckoplay@…

Description

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:

RPF

A.TOC

2

01B03011.A42

01B04011.A42

.

.

.

A.TOC

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.

Attachments (2)

A.TOC (1.8 KB ) - added by ckoplay 9 years ago.
CADRG Table of Contents File
A.2.TOC (1.8 KB ) - added by ckoplay 9 years ago.
./2/A.TOC subdataset file

Download all attachments as: .zip

Change History (3)

by ckoplay, 9 years ago

Attachment: A.TOC added

CADRG Table of Contents File

by ckoplay, 9 years ago

Attachment: A.2.TOC added

./2/A.TOC subdataset file

comment:1 by Even Rouault, 9 years ago

Milestone: 1.11.3
Resolution: fixed
Status: newclosed

I'd rather say it is a defect of the A.TOC file. The subdirectory string in the A.TOC file is ".2/". Should rather be "./2/". Never seen ".XXX/" in official CADRG products before

Anyway I've implemented a workaround but should rather be fixed in Global Mapper.

trunk r29260, branches/1.11 r29261 "RPFTOC: add tweak for weird relative directory names in the A.TOC file (#5979)"

Note: See TracTickets for help on using tickets.