[fdo-users] Re: PostGIS 3.4.0. : Unable to create datastore

W Khattak Wajid.Khattak at keynetix.com
Tue Apr 27 06:03:59 EDT 2010


Hi, 

The connection string is as follows:

OSGeo.FDO.IConnectionManager connManager =
FeatureAccessManager.GetConnectionManager();
IConnection conn = connManager.CreateConnection("OSGeo.PostGIS.3.4");
IConnectionPropertyDictionary connProperties =
conn.ConnectionInfo.ConnectionProperties;
connProperties.SetProperty("Username", "postgres");
connProperties.SetProperty("Password", "postgres");
connProperties.SetProperty("Service", "dbName at hostIP:5432");
//not specifying Datastore as creating a new one

ICreateDataStore createDSCmd =
conn.CreateCommand(OSGeo.FDO.Commands.CommandType.CommandType_CreateDataStore)
as ICreateDataStore;
createDSCmd.DataStoreProperties.SetProperty("DataStore", "TestPostGIS");
createDSCmd.DataStoreProperties.SetProperty("Description", "A test
repository");
createDSCmd.Execute();
conn.Close();

Regards,






-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/PostGIS-3-4-0-Unable-to-create-datastore-tp4962207p4967796.html
Sent from the FDO Users mailing list archive at Nabble.com.


More information about the fdo-users mailing list