91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.7MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-24
  • 語言: 其他
  • 標(biāo)簽: Arcgis??engine??10.1??

資源簡介

實(shí)現(xiàn)了類型ArcCatalog的部分功能 包括sde連接樹狀列表、新建要素?cái)?shù)據(jù)集、新建要素類 上傳shp文件等

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?ESRI.ArcGIS.Geodatabase;
using?ESRI.ArcGIS.esriSystem;
using?System.Windows.Forms;

namespace?AE_Test
{
????class?CDatabaseConn
????{
????????///?
????????///?連接SDE數(shù)據(jù)庫
????????///?

????????///?數(shù)據(jù)庫服務(wù)器
????????///?端口號
????????///?用戶名
????????///?密碼
????????///?
????????public?static?IWorkspace?ConnectSDEWorkspace(?string?hostname?string?portstring?userstring?password)
????????{
????????????//連接ArcSDE
????????????Type?factoryType?=?Type.GetTypeFromProgID(“esriDataSourcesGDB.SdeWorkspaceFactory“);
????????????IWorkspaceFactory?workspaceFactory?=?(IWorkspaceFactory)Activator.CreateInstance(factoryType);
????????????//通過PropertySet設(shè)置通過SDE連接數(shù)據(jù)庫的各種參數(shù)
????????????IPropertySet?propertySet?=?new?PropertySetClass();
????????????propertySet.SetProperty(“SERVER“?hostname);
????????????//propertySet.SetProperty(“INSTANCE“?“port:5151“);
????????????propertySet.SetProperty(“INSTANCE“?string.Format(“port:{0}“port));
????????????propertySet.SetProperty(“USER“?user);
????????????propertySet.SetProperty(“PASSWORD“?password);
????????????propertySet.SetProperty(“VERSION“?“sde.DEFAULT“);
????????????//通過以上設(shè)置的參數(shù)將數(shù)據(jù)庫的數(shù)據(jù)通過SDE讀入工作空間
????????????try
????????????{
????????????????IWorkspace?workspace?=?workspaceFactory.Open(propertySet?0);
????????????????return?workspace;
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????//MessageBox.Show(ex.Message?“連接ArcSDE異常“);
????????????????return?null;
????????????}
????????}
????}
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-07-02?09:45??AE_Test\
?????文件????????8944??2015-04-14?16:10??AE_Test\AE_Test.csproj
?????文件?????????855??2015-07-02?09:45??AE_Test\AE_Test.sln
?????文件???????16896??2015-07-02?09:45??AE_Test\AE_Test.suo
?????文件????????6656??2015-05-29?17:16??AE_Test\AE_Test.v11.suo
?????文件?????????323??2015-04-14?10:55??AE_Test\App.config
?????目錄???????????0??2015-05-27?09:03??AE_Test\bin\
?????目錄???????????0??2015-05-27?09:03??AE_Test\bin\Debug\
?????文件???????73216??2015-04-14?17:11??AE_Test\bin\Debug\AE_Test.exe
?????文件?????????323??2015-04-14?10:55??AE_Test\bin\Debug\AE_Test.exe.config
?????文件???????91648??2015-04-14?17:11??AE_Test\bin\Debug\AE_Test.pdb
?????文件???????11608??2015-07-02?09:44??AE_Test\bin\Debug\AE_Test.vshost.exe
?????文件?????????323??2015-04-14?10:55??AE_Test\bin\Debug\AE_Test.vshost.exe.config
?????文件?????????490??2010-03-17?22:39??AE_Test\bin\Debug\AE_Test.vshost.exe.manifest
?????文件????10980882??2015-04-14?08:58??AE_Test\bin\Debug\CSPolygon.dbf
?????文件???????28660??2015-04-14?08:58??AE_Test\bin\Debug\CSPolygon.sbn
?????文件????????1380??2015-04-14?08:58??AE_Test\bin\Debug\CSPolygon.sbx
?????文件?????3469468??2015-04-14?08:58??AE_Test\bin\Debug\CSPolygon.shp
?????文件???????40690??2015-04-14?08:58??AE_Test\bin\Debug\CSPolygon.shp.xml
?????文件???????23660??2015-04-14?08:58??AE_Test\bin\Debug\CSPolygon.shx
?????目錄???????????0??2015-05-27?09:03??AE_Test\bin\Debug\sr\
?????文件?????????153??2014-12-14?19:39??AE_Test\bin\Debug\sr\Krasovsky?1940.prj
?????文件?????????145??2014-12-14?19:39??AE_Test\bin\Debug\sr\PathSolveRecord.prj
?????目錄???????????0??2015-05-27?09:03??AE_Test\bin\Debug\sr\地理坐標(biāo)系\
?????文件?????????176??2014-12-14?19:39??AE_Test\bin\Debug\sr\地理坐標(biāo)系\Beijing?1954.prj
?????文件?????????170??2014-12-14?19:39??AE_Test\bin\Debug\sr\地理坐標(biāo)系\WGS?1984.prj
?????文件?????????167??2014-12-14?19:39??AE_Test\bin\Debug\sr\地理坐標(biāo)系\Xian?1980.prj
?????目錄???????????0??2015-05-27?09:03??AE_Test\bin\Debug\sr\投影坐標(biāo)系\
?????目錄???????????0??2015-05-27?09:03??AE_Test\bin\Debug\sr\投影坐標(biāo)系\Beijing?1954\
?????文件?????????434??2014-12-14?19:39??AE_Test\bin\Debug\sr\投影坐標(biāo)系\Beijing?1954\Beijing?1954?3?Degree?GK?CM?102E.prj
?????文件?????????434??2014-12-14?19:39??AE_Test\bin\Debug\sr\投影坐標(biāo)系\Beijing?1954\Beijing?1954?3?Degree?GK?CM?105E.prj
............此處省略206個(gè)文件信息

評論

共有 條評論