arcobjects api(二)
来源:互联网 发布:南大网络教育答案2017 编辑:程序博客网 时间:2024/05/05 18:11
1.在服务端创建文件
ESRI.ArcGIS.ADF.Identity identity = new ESRI.ArcGIS.ADF.Identity("a", "a", "su");
ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection ags_connection;
ags_connection = new ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection("su", identity);
ags_connection.Connect();
IServerObjectManager pSOM = ags_connection.ServerObjectManager;
IServerContext pServerContext = pSOM.CreateServerContext("", "");
IMapServer pMapServer = pServerContext.ServerObject as IMapServer;
IWorkspaceFactory pWSF = pServerContext.CreateObject("esriDataSourcesGDB.AccessWorkspaceFactory") as IWorkspaceFactory;
IEnumServerDirectoryInfo pEnumSDI = pSOM.GetServerDirectoryInfos() as IEnumServerDirectoryInfo;
IServerDirectoryInfo pSDI = pEnumSDI.Next();
IPropertySet pProps = pServerContext.CreateObject("esriSystem.PropertySet") as IPropertySet;
//_ags_前缀,arcgis会自动删除
pProps.SetProperty ("DATABASE", pSDI.Path + "_ags_db1.mdb");
pWSF.Create (pSDI.Path, "_ags_db1", pProps, 0);
pProps.SetProperty ("DATABASE", pSDI.Path + "db2.mdb");
pWSF.Create (pSDI.Path, "db2", pProps, 0);
- arcobjects api(二)
- ArcObjects
- ArcGIS For Silverlight API 开发中利用WebService调用ArcObjects
- 我所知道的ArcObjects开发(二)
- ArcObjects Help for Java api中文对照(一):com.esri.arcgis.addinframework-插件框架
- 了解ArcObjects
- 了解ArcObjects
- ArcObjects学习
- ArcObjects基础
- Exploring ArcObjects的下载
- ArcObjects培训概要
- Python访问ArcObjects
- ArcObjects:添加图例代码
- Java ArcObjects Developer Guide
- ArcObjects与ArcGIS Engine
- 编译GDAL支持ArcObjects
- Windows自动更新API (二)
- C# API 大全(二)
- 毕业了
- 树的建立和遍历
- Telnet 字符监控程序的制作
- 使用Silverlight 2实现水中倒影效果
- (1):创建一个基本的Silverlight应用
- arcobjects api(二)
- 实现NDS上自定义不等宽字体的显示(支持简单格式化)(2007-09-23)
- 使用xom实现xml文件数据的查找,删除,修改(完整beta版,daya原创)
- 我学我体会(九)
- 浮点指令的优化
- (2):silverlight 2 基本控件
- (3):Silverlight 2 界面布局
- (4):Silverlight 2 鼠标事件处理
- 是不是逻辑思维能力对程序员真的很重要?(女程序员请进)