- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
GIS二次开发第8课
主讲:张云鹏;第八课 空间数据编辑;8.1 ArcGIS Engine 编辑概述;8.1.1 ArcGIS Engine 编辑与 ArcMap 编辑;要素的复制、剪切、粘贴和删除;ArcGIS Engine环境下的EditorToolbar、Editor Menu and Edit Task:;;撤销(undo) / 重复(redo) ;ArcGIS Engine的“Sketch Tool Context Menu”;ControlToolsEditing_SnapToFeatureMenu;ControlToolsEditing_SketchDirection;ControlToolsEditing_SketchSegmentDeflection;在ArcGIS 桌面环境中的主要编辑对象是Editor ,而在ArcGIS Engine 开发中则是EngineEditor (单实例对象) ;在相应的应用程序中,它们负责管理 edit sketch, current task, current target layer, edit workspace, edit selection, edit session properties, and snap environment. EngineEditor 主要接口:IEngineEditor、IEngineEditLayers、IEngineEditProperties、IEngineEditProperties2、IEngineEditSketch、IEngineSnapEnvironment、 IEngineEditEvents 、IExtension (System);ArcMap Editor主要接口:;the?main editing interfaces;IEngineEditSketch ;IEngineEditProperties ;IEngineEditEvents (New in 9.3);IEngineEditTask ( new at ArcGIS 9.3 );8.1.2 编辑流程;An edit session can be created using IEngineEditor (Controls) or IWorkspaceEdit (Geodatabase). 具体使用场合: Use IWorkspaceEdit to programmatically perform edits in console applications or graphical user interface (GUI)-based applications that dont require any user interaction. Use IEngineEditor for GUI-based editing applications that involve any of the following: Using the out-of-the-box editing commands Working with the edit sketch Controlling the snapping environment Listening to events that are raised while editing ;Edit and sketch operations ;Start an edit session ;private IEngineEditor m_engineEditor = new EngineEditorClass(); private void StartEditing (IMap map, IFeatureLayer featureLayer) { if (m_engineEditor.EditState != esriEngineEditState.esriEngineStateNotEditing) return; IDataset dataset = featureLayer.FeatureClass as IDataset; IWorkspace workspace = dataset.Workspace; m_engineEditor.StartEditing(workspace, map); ((IEngineEditLayers) m_engineEditor). SetTargetLayer(featureLayer, -1); };Edit operations;priva
文档评论(0)