资源简介
arcengine进行的二次开发的经典案例,可以实现最短路径。适合C#初学者,以及从事ARCGIS二次开发的初学者。

代码片段和文件信息
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using ESRI.ArcGIS.ADF.baseClasses;
using ESRI.ArcGIS.ADF.CATIDs;
using ESRI.ArcGIS.Controls;
using System.Windows.Forms;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.Geodatabase;
namespace 最短路径分析
{
///
/// Summary description for AddNetBarriesTool.
///
[Guid(“de7152cb-76df-4a8c-93d9-d01b9bda0672“)]
[ClassInterface(ClassInterfaceType.None)]
[ProgId(“最短路径分析.AddNetBarriesTool“)]
public sealed class AddNetBarriesTool : baseTool
{
#region COM Registration Function(s)
[ComRegisterFunction()]
[ComVisible(false)]
static void RegisterFunction(Type registerType)
{
// Required for ArcGIS Component Category Registrar support
ArcGISCategoryRegistration(registerType);
//
// TODO: Add any COM registration code here
//
}
[ComUnregisterFunction()]
[ComVisible(false)]
static void UnregisterFunction(Type registerType)
{
// Required for ArcGIS Component Category Registrar support
ArcGISCategoryUnregistration(registerType);
//
// TODO: Add any COM unregistration code here
//
}
#region ArcGIS Component Category Registrar generated code
///
/// Required method for ArcGIS Component Category registration -
/// Do not modify the contents of this method with the code editor.
///
private static void ArcGISCategoryRegistration(Type registerType)
{
string regKey = string.Format(“HKEY_CLASSES_ROOT\\CLSID\\{{{0}}}“ registerType.GUID);
MxCommands.Register(regKey);
ControlsCommands.Register(regKey);
}
///
/// Required method for ArcGIS Component Category unregistration -
/// Do not modify the contents of this method with the code editor.
///
private static void ArcGISCategoryUnregistration(Type registerType)
{
string regKey = string.Format(“HKEY_CLASSES_ROOT\\CLSID\\{{{0}}}“ registerType.GUID);
MxCommands.Unregister(regKey);
ControlsCommands.Unregister(regKey);
}
#endregion
#endregion
private IHookHelper m_hookHelper = null;
private IFeatureWorkspace pFWorkspace;
private IFeatureClass barriesFClass;
string path = System.AppDomain.CurrentDomain.SetupInformation.Applicationbase;
public AddNetBarriesTool()
{
//
// TODO: Define values for the public properties
//
base.m_category = “NetWorkAnalysClass“; //localizable text
base.m_caption = “添加障碍“; //localizable t
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 246 2017-10-28 13:08 最短路径分析\code\最短路径分析\AddNetBarriesTool.bmp
文件 8009 2017-10-28 13:08 最短路径分析\code\最短路径分析\AddNetBarriesTool.cs
文件 326 2017-10-28 13:08 最短路径分析\code\最短路径分析\AddNetBarriesTool.cur
文件 246 2017-10-28 13:08 最短路径分析\code\最短路径分析\AddNetStopsTool.bmp
文件 8131 2017-10-28 13:08 最短路径分析\code\最短路径分析\AddNetStopsTool.cs
文件 326 2017-10-28 13:08 最短路径分析\code\最短路径分析\AddNetStopsTool.cur
文件 129536 2017-10-28 13:08 最短路径分析\code\最短路径分析\bin\Debug\最短路径分析.exe
文件 130560 2017-10-28 13:08 最短路径分析\code\最短路径分析\bin\Debug\最短路径分析.pdb
文件 11600 2017-10-28 13:08 最短路径分析\code\最短路径分析\bin\Debug\最短路径分析.vshost.exe
文件 490 2017-10-28 13:08 最短路径分析\code\最短路径分析\bin\Debug\最短路径分析.vshost.exe.manifest
文件 132096 2017-12-25 20:36 最短路径分析\code\最短路径分析\bin\Release\最短路径分析.exe
文件 48640 2017-12-25 20:36 最短路径分析\code\最短路径分析\bin\Release\最短路径分析.pdb
文件 22984 2017-12-25 20:37 最短路径分析\code\最短路径分析\bin\Release\最短路径分析.vshost.exe
文件 490 2017-03-19 05:00 最短路径分析\code\最短路径分析\bin\Release\最短路径分析.vshost.exe.manifest
文件 1 2017-10-28 13:08 最短路径分析\code\最短路径分析\ClassDiagram1.cd
文件 4578 2017-10-28 13:08 最短路径分析\code\最短路径分析\frmShortPathSolver.cs
文件 11647 2017-12-25 20:34 最短路径分析\code\最短路径分析\frmShortPathSolver.Designer.cs
文件 159442 2017-10-28 13:08 最短路径分析\code\最短路径分析\frmShortPathSolver.resx
文件 4745 2017-10-28 13:08 最短路径分析\code\最短路径分析\NetWorkAnalysClass.cs
文件 129447 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7870 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 2740 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\GenerateResource.read.1.tlog
文件 3282 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\GenerateResource.write.1.tlog
文件 152331 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\ResolveAssemblyReference.cache
文件 10490 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\最短路径分析.csproj.FileListAbsolute.txt
文件 1114 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\最短路径分析.csproj.GenerateResource.Cache
文件 288104 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\最短路径分析.csprojResolveAssemblyReference.cache
文件 129536 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\最短路径分析.exe
文件 102727 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\最短路径分析.frmShortPathSolver.resources
文件 130560 2017-10-28 13:08 最短路径分析\code\最短路径分析\obj\x86\Debug\最短路径分析.pdb
............此处省略646个文件信息
- 上一篇:ASP学生选课系统源码
- 下一篇:编译原理实验词法分析、LL1分析、LR1分析
相关资源
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
评论
共有 条评论