[fdo-users] metada access (shp.xml)

Dan Stoica dan.stoica at autodesk.com
Tue Aug 4 11:34:39 EDT 2009


Hi,

Here is an example (unmanaged):

        FdoPtr<FdoIConnection> connection = ...;

        connection->SetConnectionString (L"DefaultFileLocation=" ONTARIO_LOCATION);
        FdoIoFileStreamP fileStream = FdoIoFileStream::Create(L"ShpSchemaConfig.xml", L"r");

        connection->SetConfiguration(fileStream);
        connection->Open();

Is this what you need?

Dan.

From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Eric Dureault
Sent: Tuesday, August 04, 2009 10:21 AM
To: fdo-users at lists.osgeo.org
Subject: [fdo-users] metada access (shp.xml)

Hello,

I am currently working on a project of administration of geographic data. For now, I'm just working on data in the format shape (shp).
I've begun to work with FDO last week so i have not a great experience...

I create a connection:
fdoconnectionmgr = FeatureAccessManager.GetConnectionManager()
iconnection = fdoconnectionmgr.CreateConnection(OSGeo.SHP.3.4)

and open it with this connectionstring:
iconnection.ConnectionString = "DefaultFileLocation = C:\....\road.shp"
iconnection.Open()

The connectoin state is correctly show as "open"

Now I need to access to the metada contain in the .xml associed file and i don't know how to do this...
Is it possible to do this with : CommandType.CommandType_Select  or i need to use something else?
Have you got an exemple for this type of query commands?

Appreciate your cooperation in advance
Regards,

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fdo-users/attachments/20090804/d4b33ad6/attachment.html


More information about the fdo-users mailing list