• 大小: 90KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-11
  • 语言: C#
  • 标签: ArcEngine  要素  CSharp  编辑  

资源简介

ArcEngine下编辑要素的功能实现..

资源截图

代码片段和文件信息

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();        
            

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

     文件      73728  2009-11-22 15:58  FeatureEdit\data\bak\edit.mxd

     文件         87  2009-11-22 15:53  FeatureEdit\data\bak\point.dbf

     文件        172  2009-11-22 15:57  FeatureEdit\data\bak\point.sbn

     文件        124  2009-11-22 15:57  FeatureEdit\data\bak\point.sbx

     文件        184  2009-11-22 15:57  FeatureEdit\data\bak\point.shp

     文件        124  2009-11-22 15:57  FeatureEdit\data\bak\point.shx

     文件         73  2009-11-22 15:58  FeatureEdit\data\bak\polygon.dbf

     文件        132  2009-11-22 15:58  FeatureEdit\data\bak\polygon.sbn

     文件        116  2009-11-22 15:58  FeatureEdit\data\bak\polygon.sbx

     文件        236  2009-11-22 15:58  FeatureEdit\data\bak\polygon.shp

     文件        108  2009-11-22 15:58  FeatureEdit\data\bak\polygon.shx

     文件         73  2009-11-22 15:58  FeatureEdit\data\bak\polyline.dbf

     文件        132  2009-11-22 15:58  FeatureEdit\data\bak\polyline.sbn

     文件        116  2009-11-22 15:58  FeatureEdit\data\bak\polyline.sbx

     文件        364  2009-11-22 15:58  FeatureEdit\data\bak\polyline.shp

     文件        108  2009-11-22 15:58  FeatureEdit\data\bak\polyline.shx

     文件      73728  2009-11-22 15:58  FeatureEdit\data\edit.mxd

     文件         87  2009-11-22 15:58  FeatureEdit\data\point.dbf

     文件        172  2009-11-22 15:58  FeatureEdit\data\point.sbn

     文件        124  2009-11-22 15:58  FeatureEdit\data\point.sbx

     文件        184  2009-11-22 15:59  FeatureEdit\data\point.shp

     文件        124  2009-11-22 15:59  FeatureEdit\data\point.shx

     文件         73  2009-11-22 15:59  FeatureEdit\data\polygon.dbf

     文件        132  2009-11-22 15:59  FeatureEdit\data\polygon.sbn

     文件        116  2009-11-22 15:59  FeatureEdit\data\polygon.sbx

     文件        364  2009-11-22 15:59  FeatureEdit\data\polygon.shp

     文件        108  2009-11-22 15:59  FeatureEdit\data\polygon.shx

     文件         73  2009-11-22 15:59  FeatureEdit\data\polyline.dbf

     文件        132  2009-11-22 15:59  FeatureEdit\data\polyline.sbn

     文件        116  2009-11-22 15:59  FeatureEdit\data\polyline.sbx

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

评论

共有 条评论