• 大小: 116KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-21
  • 语言: 其他
  • 标签: AE  图形编辑  

资源简介

基于AE实现了多种图形编辑功能,非常强大,保证可以运行!

资源截图

代码片段和文件信息

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 (

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5612  2012-08-17 15:10  Editor\Editor\Properties\Resources.resx

     文件        249  2012-08-17 15:10  Editor\Editor\Properties\Settings.settings

     文件       1368  2012-08-17 15:10  Editor\Editor\Properties\AssemblyInfo.cs

     文件       2862  2012-08-17 15:10  Editor\Editor\Properties\Resources.Designer.cs

     文件       1091  2012-08-17 15:10  Editor\Editor\Properties\Settings.Designer.cs

     文件      11192  2012-08-19 15:07  Editor\Editor\Form1.resx

     文件      76365  2012-08-19 15:48  Editor\Editor\ArcgisEditor.cs

     文件       5417  2012-08-18 16:40  Editor\Editor\Editor.csproj

     文件        490  2007-07-21 01:33  Editor\Editor\bin\Debug\Editor.vshost.exe.manifest

     文件      14328  2012-08-20 08:39  Editor\Editor\bin\Debug\Editor.vshost.exe

     文件      44544  2012-08-19 16:58  Editor\Editor\bin\Debug\Editor.exe

     文件      95744  2012-08-19 16:58  Editor\Editor\bin\Debug\Editor.pdb

     文件       3486  2012-08-19 15:26  Editor\Editor\obj\Debug\Editor.Form1.resources

     文件        180  2012-08-19 15:26  Editor\Editor\obj\Debug\Editor.Properties.Resources.resources

     文件        847  2012-08-19 15:26  Editor\Editor\obj\Debug\Editor.csproj.GenerateResource.Cache

     文件      44544  2012-08-19 16:58  Editor\Editor\obj\Debug\Editor.exe

     文件        645  2012-08-20 08:39  Editor\Editor\obj\Debug\Editor.csproj.FileListAbsolute.txt

     文件      95744  2012-08-19 16:58  Editor\Editor\obj\Debug\Editor.pdb

     文件      18779  2012-08-19 15:07  Editor\Editor\Form1.Designer.cs

     文件       7857  2012-08-19 15:45  Editor\Editor\Form1.cs

     文件        487  2012-08-17 15:10  Editor\Editor\Program.cs

     文件       8494  2012-08-18 16:40  Editor\Editor\ArcGISManyObj.cs

     文件        908  2012-08-17 15:10  Editor\Editor.sln

    ..A..H.     19456  2012-08-20 08:55  Editor\Editor.suo

     目录          0  2012-08-17 15:10  Editor\Editor\obj\Debug\TempPE

     目录          0  2012-08-17 17:05  Editor\Editor\obj\Debug\Refactor

     目录          0  2012-08-17 15:10  Editor\Editor\bin\Debug

     目录          0  2012-08-17 15:10  Editor\Editor\obj\Debug

     目录          0  2012-08-17 15:10  Editor\Editor\Properties

     目录          0  2012-08-17 15:10  Editor\Editor\bin

............此处省略6个文件信息

评论

共有 条评论