[fdo-trac] #297: OGR connection string shouldn't have trailing slash
FDO
trac_fdo at osgeo.org
Fri Apr 4 08:40:22 EDT 2008
#297: OGR connection string shouldn't have trailing slash
----------------------------+-----------------------------------------------
Reporter: traianstanev | Owner: traianstanev
Type: defect | Status: new
Priority: minor | Milestone:
Component: OGR Provider | Version: 3.3.0
Severity: 3 | Keywords:
External_id: |
----------------------------+-----------------------------------------------
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
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/297>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list