Opened 16 years ago

Closed 16 years ago

#297 closed defect (fixed)

OGR connection string shouldn't have trailing slash

Reported by: traianstanev Owned by: traianstanev
Priority: minor Milestone:
Component: OGR Provider Version: 3.3.0
Severity: 3 Keywords:
Cc: External ID:

Description

Here is the description from Kenneth:

I have built an editor for the OGR provider in my MapStudio OS project. I noticed that the OGR provider does not accept the %MG_DATA_FILE_PATH% parameter but does accept another path. After digging around, I found out that OGR rejects directories as datasources, if they have a trailing slash. This prevents using the entire repository storage as a datasource, so I made a small patch that removes a trailing slash, if any.

There should be no compatibility issuses, as none of the other types of connectionstrings are likely to end with a backslash.

-- Regards, Kenneth, GEOGRAF A/S

Change History (1)

comment:1 by traianstanev, 16 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.