資源簡介
系統簡介:
本系統為了給當地交通部門提供地圖的快速瀏覽功能之余,并能簡單方便地查詢道路信息與交通設施以及所在的位置,構建完整的道路網絡,同時也為道路安全上,對事故點的分析以及應急響應決策提供一定的幫助。
開發環境:
開發語言: C#
數據庫系統: SDD、SDB
開發工具: Visual Studio 2008+SuperMap Objects6
操作系統: Windows XP
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?SuperMapLib;
using?System.Runtime.InteropServices;
using?AxSuperMapLib;
using?SuperAnalystLib;
using?AxSuperAnalystLib;
using?System.Windows.Forms;
using?System.Drawing;
namespace?GHEMC
{
????class?Analysis
????{
????????public?void?Pathsetting(AxSuperMap?axSuperMap1?AxSuperAnalyst?axSuperAnalyst1?AxSuperWorkspace?axSuperWorkspace1)
????????{
????????????soNetworkAnalystEx?objNetworkAnalyst?=?null;?;
????????????objNetworkAnalyst?=?axSuperAnalyst1.NetworkAnalyst;
????????????soNetworkSetting?objNetworkSetting?=?null;?;
????????????objNetworkSetting?=?objNetworkAnalyst.NetworkSetting;
????????????soDataset?objDt?=?axSuperMap1.layers[“道路網@GHEMC“].Dataset;//獲取選擇的圖層的數據集
????????????soDatasetVector?objDtv?=?objDt?as?soDatasetVector;
????????????if?(objDtv.Type?!=?seDatasetType.scdNetwork)
????????????{
????????????????MessageBox.Show(“進行網絡分析需要打開網絡數據集“?“提示“);
????????????????return;
????????????}
????????????else
????????????{
????????????????objNetworkSetting.NetworkDataset?=?objDtv;
????????????????soDataSources?objDss?=?axSuperWorkspace1.Datasources;
????????????????soDataSource?objDs?=?objDss[1];
????????????????string?strAlias?=?objDs.Alias;
????????????????objNetworkAnalyst.OutputDatasourceAlias?=?strAlias;
????????????????objNetworkSetting.EdgeIDField?=?“SmID“;
????????????????objNetworkSetting.NodeIDField?=?“SmID“;
????????????????objNetworkSetting.FTWeightField?=?“SmLength“;
????????????????objNetworkSetting.TFWeightField?=?“SmLength“;
????????????????objNetworkAnalyst.Tolerance?=?500;
????????????????Marshal.ReleaseComobject(objDs);
????????????????objDs?=?null;
????????????????Marshal.ReleaseComobject(objDss);
????????????????objDss?=?null;
????????????}
????????????Marshal.ReleaseComobject(objDtv);
????????????objDtv?=?null;
????????????Marshal.ReleaseComobject(objDt);
????????????objDt?=?null;
????????????Marshal.ReleaseComobject(objNetworkSetting);
????????????objNetworkSetting?=?null;
????????????Marshal.ReleaseComobject(objNetworkAnalyst);
????????????objNetworkAnalyst?=?null;
????????}
????????public?soGeoLineM?closeFac(AxSuperMap?axSuperMap1?AxSuperAnalyst?axSuperAnalyst1?AxSuperWorkspace?axSuperWorkspace1?string?ttc?string?sqltxt?double?tx?double?ty)
????????{
????????????soDataset?objDst?=?axSuperMap1.layers[ttc].Dataset;//獲取選擇的圖層的數據集
????????????soDatasetVector?objDv?=?objDst?as?soDatasetVector;
????????????soRecordset?objRcd?=?objDv.Query(sqltxt?true?null?““);
????????????soPoint?objDesPoint?=?new?soPoint();
????????????soPoints?objFacilites?=?new?soPoints();
????????????soGeoLineM?objPath?=?null;
????????????//int?tt?=?main.lstPathPoint.Items.Count;
????????????if?(objRcd.RecordCount?==?0)
????????????{
????????????????MessageBox.Show(“沒有最近設施“);
????????????}
????????????else
????????????{
????????????????//RcdLst?rl?=?new?RcdLst();
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????17224??2010-08-13?04:00??廣州大學城交通服務系統\GHEMC\GHEMC\Analysis.cs
?????文件???????6144??2010-08-11?16:42??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\AxInterop.SuperAnalystLib.dll
?????文件??????13312??2010-07-13?20:09??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\AxInterop.SuperGridViewLib.dll
?????文件??????36864??2010-07-08?19:39??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\AxInterop.SuperLegendLib.dll
?????文件??????81920??2010-07-06?21:08??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\AxInterop.SuperMapLib.dll
?????文件??????18944??2010-07-08?19:41??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\AxInterop.SuperWkspManagerLib.dll
?????文件??????95232??2010-06-28?22:53??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\Chartlet.dll
?????文件????1712128??2010-08-14?21:40??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\GHEMC.exe
?????文件?????493056??2010-08-14?21:40??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\GHEMC.pdb
?????文件??????14328??2010-08-14?21:40??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\GHEMC.vshost.exe
?????文件????????490??2007-07-21?02:33??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\GHEMC.vshost.exe.manifest
?????文件??????77824??2010-08-13?13:42??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\Interop.SuperAnalystLib.dll
?????文件??????13312??2010-08-11?11:21??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\Interop.SuperGridViewLib.dll
?????文件??????45056??2010-08-11?11:21??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\Interop.SuperLegendLib.dll
?????文件?????630784??2010-08-11?11:21??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\Interop.SuperMapLib.dll
?????文件??????36864??2010-08-11?11:21??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\Interop.SuperWkspManagerLib.dll
?????文件????1100392??2007-10-10?09:48??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\Microsoft.Office.Interop.Excel.dll
?????文件??????64088??2007-10-10?09:48??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\Microsoft.Vbe.Interop.dll
?????文件?????223800??2007-10-10?09:48??廣州大學城交通服務系統\GHEMC\GHEMC\bin\Debug\office.dll
?????文件???????6156??2010-08-11?12:51??廣州大學城交通服務系統\GHEMC\GHEMC\ChartMade.cs
?????文件??????12135??2010-08-14?02:18??廣州大學城交通服務系統\GHEMC\GHEMC\frmAddADInfo.cs
?????文件??????76425??2010-08-13?18:56??廣州大學城交通服務系統\GHEMC\GHEMC\frmAddADInfo.Designer.cs
?????文件??????48659??2010-08-13?18:56??廣州大學城交通服務系統\GHEMC\GHEMC\frmAddADInfo.resx
?????文件??????10540??2010-08-13?18:56??廣州大學城交通服務系統\GHEMC\GHEMC\frmAttribuManage.cs
?????文件??????16170??2010-08-13?18:56??廣州大學城交通服務系統\GHEMC\GHEMC\frmAttribuManage.Designer.cs
?????文件???????5814??2010-08-13?18:56??廣州大學城交通服務系統\GHEMC\GHEMC\frmAttribuManage.resx
?????文件??????17230??2010-08-13?23:04??廣州大學城交通服務系統\GHEMC\GHEMC\frmBlackSpot.cs
?????文件??????42683??2010-08-13?23:04??廣州大學城交通服務系統\GHEMC\GHEMC\frmBlackSpot.Designer.cs
?????文件??????55135??2010-08-13?23:04??廣州大學城交通服務系統\GHEMC\GHEMC\frmBlackSpot.resx
?????文件??????12866??2010-08-14?02:15??廣州大學城交通服務系統\GHEMC\GHEMC\frmBufFacility.cs
............此處省略355個文件信息
評論
共有 條評論