• 大小: 38.06MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-07-17
  • 语言: C#
  • 标签: ArcGIS  Engine  邱洪钢  

资源简介

《ArcGIS Engine开发从入门到精通》,是2010年出版的图书。 《ArcGIS Engine开发从入门到精通》讲解是基于ArcGIS Engine 9.3开发平台,介绍了相关的开发技术和工程应用,并用C#语言编程实现了工程实例。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.Geodatabase;


namespace FeatureEdit
{
    class FeatureEditAgent
    {


        public Feature FeatureCopy(string  featureClassName)
        {
            IFeatureWorkspace featureWorkspace =


            IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspace; 
            IFeatureClass featureClass = featureWorkspace.OpenFeatureClass(nameOfFeatureClass); 
            IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)workspace;        
            //start editing with undo redo functionality       
            workspaceEdit.StartEditing(true);        
            workspaceEdit.StartEditOperation();        
            IFeature feature = featureClass.GetFeature(1);        
            feature.Delete();       
            workspaceEdit.StopEditOperation();       
            Console.WriteLine(“Would you like to undo your operation? Y or N“);       
            string response = Console.ReadLine();        
            if(response.ToUpper() == “Y“)       
            {            
                workspaceEdit.UndoEditOperation();        
            }        
            bool hasEdits = false;        
            workspaceEdit.HasEdits(ref hasEdits);        
            if (hasEdits)        
            {           
                Console.WriteLine(“Would you like to save your edits? Y or N“);            
                response = Console.ReadLine();           
                if (response.ToUpper() == “Y“)            
                {               
                    workspaceEdit.StopEditing(true);            
                }            
                else            
                {                
                    workspaceEdit.StopEditing(false);            
                }        
            }
        }
        public void FeatureDel()
        {
        }
        public void Undo()
        {
        }
        //添加点实体
        private void addFeature(string layerName IPoint point)
        {
            int i = 0;
            ilayer layer = null;
            for (i = 0; i < axMapControl1.layerCount; i++)
            {
                layer = axMapControl1.Map.get_layer(i);
                if (layer.Name.ToLower() == layerName)
                {
                    break;
                }
            }
            IFeaturelayer featurelayer = layer as IFeaturelayer;
            IFeatureClass featureClass = featurelayer.FeatureClass;
            IDataset dataset = (IDataset)featureClass;
            IWorkspace workspace = dataset.Workspace;
            IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)workspace;
            workspaceEdit.StartEditing(true);
            workspaceEdit.StartEditOperation();
            IFeatureBuffer featureBuffer = featureClass.CreateFeatureBuffer();
            IFeatureCursor fe

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

     文件   34729209  2017-03-03 13:36  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通.pdf

     文件      73728  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\edit.mxd

     文件         87  2009-11-22 23:53  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\point.dbf

     文件        172  2009-11-22 23:57  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\point.sbn

     文件        124  2009-11-22 23:57  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\point.sbx

     文件        184  2009-11-22 23:57  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\point.shp

     文件        124  2009-11-22 23:57  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\point.shx

     文件         73  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\polygon.dbf

     文件        132  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\polygon.sbn

     文件        116  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\polygon.sbx

     文件        236  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\polygon.shp

     文件        108  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\polygon.shx

     文件         73  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\polyline.dbf

     文件        132  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\polyline.sbn

     文件        116  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\polyline.sbx

     文件        364  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\polyline.shp

     文件        108  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\bak\polyline.shx

     文件      73728  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\edit.mxd

     文件         87  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\point.dbf

     文件        172  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\point.sbn

     文件        124  2009-11-22 23:58  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\point.sbx

     文件        184  2009-11-22 23:59  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\point.shp

     文件        124  2009-11-22 23:59  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\point.shx

     文件         73  2009-11-22 23:59  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\polygon.dbf

     文件        132  2009-11-22 23:59  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\polygon.sbn

     文件        116  2009-11-22 23:59  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\polygon.sbx

     文件        364  2009-11-22 23:59  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\polygon.shp

     文件        108  2009-11-22 23:59  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\polygon.shx

     文件         73  2009-11-22 23:59  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\polyline.dbf

     文件        132  2009-11-22 23:59  ArcGIS Engine开发从入门到精通\ArcGIS Engine开发从入门到精通源码\第七章\FeatureEdit\data\polyline.sbn

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

评论

共有 条评论