資源簡介
是一個(gè)基于c#+ae9.2的旅游信息系統(tǒng),可以實(shí)現(xiàn)一般地圖功能,緩沖區(qū)分析 最佳路徑查詢等

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?ESRI.ArcGIS.NetworkAnalysis;
using?ESRI.ArcGIS.Geodatabase;
using?ESRI.ArcGIS.Geometry;
using?ESRI.ArcGIS.Carto;
using?ESRI.ArcGIS.Controls;
using?ESRI.ArcGIS.SystemUI;
using?ESRI.ArcGIS.esriSystem;
using?ESRI.ArcGIS.Geodatabase;
namespace?test
{
????class?ClsPathFinder?
????{
???????????private?IGeometricNetwork?m_ipGeometricNetwork;
???????????private?IMap?m_ipMap;
???????????private?IPointCollection?m_ipPoints;
???????????private?IPointToEID?m_ipPointToEID;
???????????private?double?m_dblPathCost?=0;
???????????private?IEnumNetEID?m_ipEnumNetEID_Junctions;
???????????private?IEnumNetEID?m_ipEnumNetEID_Edges;
???????????public??IPolyline????m_ipPolyline;
???????????#region?Public?Function
???????????//返回和設(shè)置當(dāng)前地圖
???????????public?IMap?SetOrGetMap?
???????????{
????????????set{?m_ipMap?=?value;}
????????????get{return????m_ipMap;}
???????????}
???????????//打開網(wǎng)絡(luò)
???????????public?void?OpenFeatureDatasetNetwork(IFeatureDataset?FeatureDataset)
???????????{?
????????????CloseWorkspace();???
????????????if?(!InitializeNetworkAndMap(FeatureDataset))
?????????????Console.WriteLine(?“打開出錯(cuò)“);
???????????}
???????????//輸入點(diǎn)的集合
???????????public?IPointCollection?StopPoints
???????????{
????????????set{m_ipPoints=?value;}
????????????get{return????m_ipPoints;}
???????????}
???????????
???????????//路徑成本
???????????public?double?PathCost
???????????{
????????????get?{return?m_dblPathCost;}
???????????}
??????????
???????????//返回路徑
???????????public?IPolyline?PathPolyLine()
???????????{
????????????IEIDInfo?ipEIDInfo;
????????????IGeometry?ipGeometry;????
????????????if(m_ipPolyline!=null)return?m_ipPolyline;
???????????
????????????m_ipPolyline?=?new?PolylineClass();
????????????IGeometryCollection?ipNewGeometryColl?=?m_ipPolyline?as?IGeometryCollection;
???????????
????????????ISpatialReference?ipSpatialReference?=?m_ipMap.SpatialReference;
????????????IEIDHelper?ipEIDHelper?=?new?EIDHelperClass();
????????????ipEIDHelper.GeometricNetwork?=?m_ipGeometricNetwork;??
????????????ipEIDHelper.OutputSpatialReference?=?ipSpatialReference;
????????????ipEIDHelper.ReturnGeometries?=?true;
????????????IEnumEIDInfo?ipEnumEIDInfo?=?ipEIDHelper.CreateEnumEIDInfo(m_ipEnumNetEID_Edges);
????????????int?count?=?ipEnumEIDInfo.Count;
????????????ipEnumEIDInfo.Reset();
????????????for(int?i?=0;i ????????????{
?????????????ipEIDInfo?=?ipEnumEIDInfo.Next();
?????????????ipGeometry?=?ipEIDInfo.Geometry;
?????????????ipNewGeometryColl.AddGeometryCollection(?ipGeometry?as?IGeometryCollection);
????????????}
????????????return?m_ipPolyline;
???????????????
???????????
??????????????
???????????}
??????????
???????????//解決路徑
???????????public?void?SolvePath(string?WeightName)
???????????{
????????????try
????????????{???
?????????????int?intEdgeUserClassID;
?????????????int?intEdgeUserID;
?????????
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-01-21?16:11??旅游信息系統(tǒng)\
?????目錄???????????0??2013-01-21?16:11??旅游信息系統(tǒng)\旅游信息系統(tǒng)\
?????文件?????????943??2010-12-06?11:15??旅游信息系統(tǒng)\旅游信息系統(tǒng).sln
?????文件???????48128??2013-01-20?13:42??旅游信息系統(tǒng)\旅游信息系統(tǒng).suo
?????文件????????8664??2010-12-08?18:11??旅游信息系統(tǒng)\旅游信息系統(tǒng)\ClsPathFinder.cs
?????文件???????32806??2010-12-17?12:25??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Form1.cs
?????文件???????51777??2010-12-08?22:10??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Form1.Designer.cs
?????文件???????28567??2010-12-08?22:10??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Form1.resx
?????文件????????1601??2010-12-06?11:53??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Program.cs
?????目錄???????????0??2013-01-21?16:11??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Properties\
?????文件????????1184??2010-12-06?11:15??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Properties\AssemblyInfo.cs
?????文件?????????967??2010-12-08?22:10??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Properties\licenses.licx
?????文件????????2858??2010-12-11?10:57??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Properties\Resources.Designer.cs
?????文件????????5612??2010-12-06?11:15??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Properties\Resources.resx
?????文件????????1114??2010-12-11?10:58??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Properties\Settings.Designer.cs
?????文件?????????249??2010-12-06?11:15??旅游信息系統(tǒng)\旅游信息系統(tǒng)\Properties\Settings.settings
?????文件???????13103??2010-12-09?14:07??旅游信息系統(tǒng)\旅游信息系統(tǒng)\SQl查詢.cs
?????文件???????22311??2010-12-08?11:50??旅游信息系統(tǒng)\旅游信息系統(tǒng)\SQl查詢.Designer.cs
?????文件????????5814??2010-12-08?11:50??旅游信息系統(tǒng)\旅游信息系統(tǒng)\SQl查詢.resx
?????文件????????2288??2010-12-07?18:30??旅游信息系統(tǒng)\旅游信息系統(tǒng)\右鍵屬性.cs
?????文件????????5089??2010-12-07?18:23??旅游信息系統(tǒng)\旅游信息系統(tǒng)\右鍵屬性.Designer.cs
?????文件????????5814??2010-12-07?18:23??旅游信息系統(tǒng)\旅游信息系統(tǒng)\右鍵屬性.resx
?????文件?????????509??2010-12-07?15:56??旅游信息系統(tǒng)\旅游信息系統(tǒng)\圖層屬性表.cs
?????文件????????2586??2010-12-07?15:56??旅游信息系統(tǒng)\旅游信息系統(tǒng)\圖層屬性表.Designer.cs
?????文件????????5814??2010-12-07?15:56??旅游信息系統(tǒng)\旅游信息系統(tǒng)\圖層屬性表.resx
?????文件????????3296??2010-12-07?13:48??旅游信息系統(tǒng)\旅游信息系統(tǒng)\圖查屬性.cs
?????文件????????3536??2010-12-07?13:42??旅游信息系統(tǒng)\旅游信息系統(tǒng)\圖查屬性.Designer.cs
?????文件????????5814??2010-12-07?13:42??旅游信息系統(tǒng)\旅游信息系統(tǒng)\圖查屬性.resx
?????文件????????5155??2010-12-07?19:02??旅游信息系統(tǒng)\旅游信息系統(tǒng)\屬性查圖.cs
?????文件????????8439??2010-12-07?13:10??旅游信息系統(tǒng)\旅游信息系統(tǒng)\屬性查圖.Designer.cs
?????文件????????5814??2010-12-07?13:10??旅游信息系統(tǒng)\旅游信息系統(tǒng)\屬性查圖.resx
............此處省略7個(gè)文件信息
評論
共有 條評論