[fdo-dev] SHP provider connection string

Pierre Dalcourt pierre.dalcourt at autodesk.com
Mon Oct 30 06:54:43 EST 2006


Hi Mateusz,

The "~`!@#$%^&()_-+=} ..." files you mention are pre-existing, not
created by the unit tests.  You can check by looking at the SubVersion
repository.  These tests verify connecting to pre-existing files
containing unusual ascii characters.

Pierre


-----Original Message-----
From: Mateusz Loskot [mailto:mateusz at loskot.net] 
Sent: October 29, 2006 5:39 AM
To: fdo-dev
Subject: [fdo-dev] SHP provider connection string

Hi,

What does following code test?

mConnection->SetConnectionString (L"DefaultFileLocation=\"" LOCATION
L"..//Ontario\\~`!@#$%^&()_-+=}{[];',.shp\""
L";TemporaryFileLocation=");

Does it test if !@#$%^&()_-+=}{[]; characters are allowed as a part of
shapefile file name?

I see following files are created by SHP provider UnitTest:

mloskot:~/dev/fdo/_svn/fdoshp/TestData/Ontario$ ls -1
~`!@#$%^&()_-+=}{[];',.dbf
~`!@#$%^&()_-+}{[]',.dbf
lakes.dbf
lakes.sbn
lakes.sbx
lakes.shp
lakes.shx
ontario.dbf
ontario.sbn
ontario.sbx
ontario.shp
ontario.shx
readme.txt
roads.dbf
roads.sbn
roads.sbx
roads.shp
roads.shx
~`!@#$%^&()_-+=}{[];',.sbn
~`!@#$%^&()_-+}{[]',.sbn
~`!@#$%^&()_-+=}{[];',.sbx
~`!@#$%^&()_-+}{[]',.sbx
~`!@#$%^&()_-+=}{[];',.shp
~`!@#$%^&()_-+}{[]',.shp
ShpMixedDecimals.dbf
ShpMixedDecimals.sbn
ShpMixedDecimals.sbx
ShpMixedDecimals.shp
ShpMixedDecimals.shx
~`!@#$%^&()_-+=}{[];',.shx
~`!@#$%^&()_-+}{[]',.shx

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at fdo.osgeo.org
For additional commands, e-mail: dev-help at fdo.osgeo.org





More information about the Fdo-internals mailing list