• 大小: 147KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-14
  • 语言: 其他
  • 标签: feature;AE  

资源简介

ArcEngine点线面要素的编辑,包括移动,打断,延长,画线分割等

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Runtime.Serialization.Formatters.Binary;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.DataSourcesGDB;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Controls; 


namespace Editor
{
    ///  
    /// 使用本类可以新建点、线、面 
    /// 移动点、线、面 
    /// 编辑线、面的节点 
    /// 使用时需设置Map和Currentlayer 
    /// 
 
    public class ArcgisEditor
    { 
        private IMapControl3 m_pMapControl;
        private ilayer m_pCurrentlayer;
        private IMap m_pMap;
        private IFeature m_pEditFeature;
        private IPoint m_pPoint;
        private IDisplayFeedback m_pFeedback;
        private bool m_bInUse;
        private IPointCollection m_pPointCollection;
        private ISelection m_Selection = null;
        private IGeometryCollection m_GeometryCollection = null;
        public static IEnumFeature SelEnumFeature = null;
        private IArray m_ElementArray = new ArrayClass();
        private IFeature snapFeature = null;
        private IPoint snapPoint = null;  //捕捉到的点
        private IMovePointFeedback movePointFeedback = new MovePointFeedbackClass();
        private IElement m_element = null;  //界面绘制点元素
        private IPoint currentPoint = new PointClass();  //当前鼠标点
        private bool bCreateElement = true;
        private List pCol = new List();

        public IMapControl3 MapControl
        {
            get
            {
                return m_pMapControl;
            }
            set
            {
                m_pMapControl = value;
            }
        }
        ///  
        /// 当前图层 
        /// 
 
        public ilayer Currentlayer
        {
            get
            {
                return m_pCurrentlayer;
            }
            set
            {
                m_pCurrentlayer = (ilayer)value;
            }
        }
        ///  
        /// 地图对象 
        /// 
 
        public IMap Map
        {
            get
            {
                return m_pMap;
            }
            set
            {
                m_pMap = (IMap)value;
            }
        }
        ///  
        /// 选中的要素        
        /// 
 
        public ISelection Selection
        {
            get { return m_Selection; }
            set { m_Selection = value; }
        }
        ///  
        /// 构造函数 
        /// 
 
        public ArcgisEditor()
        {
        }
        public bool IsStartEdit()
        {
            IWorkspaceEdit pWorkspaceEdit;
            IFeatureClass pFeatureCls;
            IFeaturelayer pFeatureLyr;
            bool pIsStart = false;
            for (

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-12-25 16:04  Editor\
     文件         908  2014-12-25 16:00  Editor.sln
     文件       76365  2012-08-19 15:48  Editor\ArcgisEditor.cs
     文件        8494  2012-08-18 16:40  Editor\ArcGISManyObj.cs
     目录           0  2014-12-25 16:00  Editor\bin\
     目录           0  2014-12-25 16:00  Editor\bin\Debug\
     文件       45568  2014-12-25 16:05  Editor\bin\Debug\Editor.exe
     文件      103936  2014-12-25 16:05  Editor\bin\Debug\Editor.pdb
     文件       11608  2014-12-25 16:22  Editor\bin\Debug\Editor.vshost.exe
     目录           0  2014-12-25 16:00  Editor\bin\Release\
     文件        8253  2014-12-25 16:04  Editor\Editor.csproj
     文件         452  2014-12-25 16:04  Editor\Editor.csproj.user
     文件        7857  2014-12-25 16:04  Editor\Form1.cs
     文件       18787  2014-12-25 16:04  Editor\Form1.Designer.cs
     文件       11736  2014-12-25 16:04  Editor\Form1.resx
     目录           0  2012-08-17 15:10  Editor\obj\
     目录           0  2014-12-25 16:05  Editor\obj\Debug\
     文件         789  2014-12-25 16:00  Editor\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7320  2014-12-25 16:05  Editor\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        1631  2014-12-25 16:22  Editor\obj\Debug\Editor.csproj.FileListAbsolute.txt
     文件         975  2014-12-25 16:04  Editor\obj\Debug\Editor.csproj.GenerateResource.Cache
     文件      131265  2014-12-25 16:04  Editor\obj\Debug\Editor.csprojResolveAssemblyReference.cache
     文件       45568  2014-12-25 16:05  Editor\obj\Debug\Editor.exe
     文件        3847  2014-12-25 16:04  Editor\obj\Debug\Editor.Form1.resources
     文件      103936  2014-12-25 16:05  Editor\obj\Debug\Editor.pdb
     文件         180  2014-12-25 16:04  Editor\obj\Debug\Editor.Properties.Resources.resources
     目录           0  2012-08-17 17:05  Editor\obj\Debug\Refactor\
     目录           0  2014-12-25 16:00  Editor\obj\Debug\TempPE\
     文件        4608  2014-12-25 16:00  Editor\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         574  2014-12-25 16:05  Editor\Program.cs
     目录           0  2012-08-17 15:10  Editor\Properties\
............此处省略5个文件信息

评论

共有 条评论

相关资源