ArcGISEngine10.1访问ArcSDE
直连式
IWorkspace pWkspace =null;
ESRI.ArcGIS.Geodatabase.IWorkspaceFactory2 workspaceFactory =null;
ESRI.ArcGIS.esriSystem.IPropertySet pPropertySet =new ESRI.ArcGIS.esriSystem.PropertySetClass();
pPropertySet.SetProperty("SERVER","lingy");
pPropertySet.SetProperty("INSTANCE","sde:oracle11g:orcl");
pPropertySet.SetProperty("AUTHENTICATION_MODE","DBMS");
pPropertySet.SetProperty("USER","sde");
pPropertySet.SetProperty("PASSWORD","sde");
pPropertySet.SetProperty("VERSION","SDE.DEFAULT");
workspaceFactory =(ESRI.ArcGIS.Geodatabase.IWorkspaceFactory2)newESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactoryClass();
pWkspace =workspaceFactory.Open(pPropertySet, 0);
服务式
IWorkspace pWkspace =null;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余2页未读,立即下载