• 大小: 2.03MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-04
  • 语言: 其他
  • 标签: ARCGis  最短路径  

资源简介

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-03-25 15:18  最短路径分析\
     目录           0  2016-03-25 15:18  最短路径分析\code\
     目录           0  2016-03-25 15:18  最短路径分析\code\最短路径分析\
     文件         246  2015-01-23 21:16  最短路径分析\code\最短路径分析\AddNetBarriesTool.bmp
     文件        8009  2015-01-23 21:16  最短路径分析\code\最短路径分析\AddNetBarriesTool.cs
     文件         326  2015-01-23 21:16  最短路径分析\code\最短路径分析\AddNetBarriesTool.cur
     文件         246  2015-01-23 21:16  最短路径分析\code\最短路径分析\AddNetStopsTool.bmp
     文件        8131  2015-01-23 21:16  最短路径分析\code\最短路径分析\AddNetStopsTool.cs
     文件         326  2015-01-23 21:16  最短路径分析\code\最短路径分析\AddNetStopsTool.cur
     文件           1  2015-01-23 21:16  最短路径分析\code\最短路径分析\ClassDiagram1.cd
     文件        4745  2015-01-27 16:10  最短路径分析\code\最短路径分析\NetWorkAnalysClass.cs
     文件         599  2015-01-23 21:17  最短路径分析\code\最短路径分析\Program.cs
     目录           0  2016-03-25 15:18  最短路径分析\code\最短路径分析\Properties\
     文件        1368  2015-01-23 21:17  最短路径分析\code\最短路径分析\Properties\AssemblyInfo.cs
     文件        2887  2015-01-23 21:17  最短路径分析\code\最短路径分析\Properties\Resources.Designer.cs
     文件        5612  2015-01-23 21:17  最短路径分析\code\最短路径分析\Properties\Resources.resx
     文件        1104  2015-01-23 21:17  最短路径分析\code\最短路径分析\Properties\Settings.Designer.cs
     文件         249  2015-01-23 21:17  最短路径分析\code\最短路径分析\Properties\Settings.settings
     文件         246  2015-01-23 21:17  最短路径分析\code\最短路径分析\ShortPathSolveCommand.bmp
     文件        9375  2015-01-27 16:10  最短路径分析\code\最短路径分析\ShortPathSolveCommand.cs
     目录           0  2016-03-25 15:18  最短路径分析\code\最短路径分析\bin\
     目录           0  2016-03-25 15:18  最短路径分析\code\最短路径分析\bin\Debug\
     文件      129536  2015-01-26 19:55  最短路径分析\code\最短路径分析\bin\Debug\最短路径分析.exe
     文件      130560  2015-01-26 19:55  最短路径分析\code\最短路径分析\bin\Debug\最短路径分析.pdb
     文件       11600  2015-01-26 19:56  最短路径分析\code\最短路径分析\bin\Debug\最短路径分析.vshost.exe
     文件         490  2010-03-17 22:39  最短路径分析\code\最短路径分析\bin\Debug\最短路径分析.vshost.exe.manifest
     目录           0  2016-03-25 15:18  最短路径分析\code\最短路径分析\bin\Release\
     文件      128512  2016-03-25 14:51  最短路径分析\code\最短路径分析\bin\Release\最短路径分析.exe
     文件       67072  2016-03-25 14:51  最短路径分析\code\最短路径分析\bin\Release\最短路径分析.pdb
     文件       11600  2016-03-25 15:19  最短路径分析\code\最短路径分析\bin\Release\最短路径分析.vshost.exe
     文件         490  2010-03-17 22:39  最短路径分析\code\最短路径分析\bin\Release\最短路径分析.vshost.exe.manifest
............此处省略638个文件信息

评论

共有 条评论