GIS二次开发第8课剖析课件.ppt
《GIS二次开发第8课剖析课件.ppt》由会员分享,可在线阅读,更多相关《GIS二次开发第8课剖析课件.ppt(193页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、GIS二次开发二次开发主讲:张云鹏主讲:张云鹏第八课第八课 空间数据编辑空间数据编辑nArcGISEngine编辑编辑概述概述n版本化空版本化空间间数据数据编辑编辑nDisplayFeedback对对象象n多多边边形挖空形挖空处处理理n分割分割线线要素要素n线线、面要素整形、面要素整形(Reshape)n要素合并要素合并n多部分要素的多部分要素的处处理理n线线要素的延伸与修剪要素的延伸与修剪8.1 ArcGIS Engine 编辑概述1.1.ArcGISArcGIS Engine Engine 编辑与编辑与 ArcMap ArcMap 编辑编辑2.2.编辑流程编辑流程 3.3.Editing
2、target layer Editing target layer 4.4.Edit tasks Edit tasks 5.5.Edit sketch Edit sketch 6.6.Working with the operation stackWorking with the operation stack7.7.Snap agents Snap agents 8.8.Edit events Edit events 9.9.Feature inspectors Feature inspectors 8.1.1 ArcGIS Engine 编辑与 ArcMap 编辑nArcGIS桌面的编辑功
3、能通过桌面的编辑功能通过Editor库发布库发布,ArcGISEngine的编辑功能包含在的编辑功能包含在Controls库中库中.nArcGISEngineControls库中提供了内置的编辑命令、库中提供了内置的编辑命令、工具、菜单等,用于地理要素的工具、菜单等,用于地理要素的复制复制、剪切剪切、粘贴粘贴和和删删除除、启动编辑启动编辑、停止编辑停止编辑、保存编辑保存编辑、编辑工具(编辑工具(EditTool)、绘制工具(绘制工具(SketchTool)、编辑的目标图层编辑的目标图层ToolControl、属性编辑属性编辑、要素编辑过程中右键菜单功能要素编辑过程中右键菜单功能和和Snappi
4、ng设置设置等功能。等功能。这些命令、工具等在开发过这些命令、工具等在开发过程中可以直接使用。程中可以直接使用。要素的复制、剪切、粘贴和删除ControlToolsEditing_Copy2D7BD886-7531-4198-820D-551A5A14569EesriControls.ControlsEditingCopyCommandControlToolsEditing_CutC03E7512-CA4E-4197-8386-57830425D13AesriControls.ControlsEditingCutCommandControlToolsEditing_Paste99FADFFD-
5、A788-4F1F-A1B3-04909B06735AesriControls.ControlsEditingPasteCommandControlToolsEditing_ClearC4CB4830-8C2E-49AE-9D12-73E822BCA90EesriControls.ControlsEditingClearCommandArcGIS Engine环境下的EditorToolbar、Editor Menu and Edit Task:ControlToolsEditing_Start5CAF45CD-E3B1-4FFD-96C4-BCDD2289C1EBesriControls.C
6、ontrolsEditingStartCommandControlToolsEditing_Stop8D03C271-BB00-4A36-9B84-AD2E1DE0DE11esriControls.ControlsEditingStopCommandControlToolsEditing_Save0BB6A923-6AAF-4B7A-B8A8-A7225065A0C8esriControls.ControlsEditingSaveCommandControlToolsEditing_Edit6F922BD8-EF26-4852-BAED-45CFF3A97121esriControls.Con
7、trolsEditingEditToolControlToolsEditing_Sketch13B234E8-3B30-49CA-9967-4C76F7231AD6esriControls.ControlsEditingSketchToolControlToolsEditing_TargetToolControl5D815B27-6A93-42DB-B2C6-1CC58B416E9FesriControls.ControlsEditingTargetToolControlControlToolsEditing_AttributeA554ADBC-D0DD-469A-8A95-B4CEED079
8、4C3esriControls.ControlsEditingAttributeCommandControlToolsEditing_SketchProperties506ACF9B-B4B4-4A4A-A5FA-5215E4A240B2esriControls.ControlsEditingSketchPropertiesCommand撤销(undo)/重复(redo)ControlToolsGeneric_RedoB0675372-0271-4680-9A2C-269B3F0C01E8esriControls.ControlsRedoCommandControlToolsGeneric_U
9、ndo380FB31E-6C24-4F5C-B1DF-47F33586B885esriControls.ControlsUndoCommandArcGIS Engine的“Sketch Tool Context Menu”ControlToolsEditing_SnapToFeatureMenu3E28536E-66EB-4812-BD8C-7AE6EA5CCB17esriControls.ControlsEditingSnapToFeatureMenuControlToolsEditing_SnapEndpointB473F50B-3D6B-4718-8DE3-75D7ECACED58esr
10、iControls.ControlsEditingSnapEndpointCommandControlToolsEditing_SnapVertex78FF7F24-E5E6-4CA4-993E-6FAA81684441esriControls.ControlsEditingSnapVertexCommandControlToolsEditing_SnapMidpoint250219D8-7A0B-4017-93EF-1E893D16F742esriControls.ControlsEditingSnapMidpointCommandControlToolsEditing_SnapEdge5D
11、67D843-E10C-4D0B-A69C-2DFA82B25450esriControls.ControlsEditingSnapEdgeCommandControlToolsEditing_SketchDirection4E6E4BB5-4B2E-4E1F-8E08-18E24FF80A13esriControls.ControlsEditingSketchDirectionCommandControlToolsEditing_SketchDeflection3ECE8CAB-3DAD-4B04-B586-D9B6369885C3esriControls.ControlsEditingSk
12、etchDeflectionCommandControlToolsEditing_SketchLengthFAF9D507-97DF-4F2E-835A-35A3DECF90B9esriControls.ControlsEditingSketchLengthCommandControlToolsEditing_SketchChangeLength6EF1BE13-4FF4-4529-958D-46A418C99DD8esriControls.ControlsEditingSketchChangeLengthCommandControlToolsEditing_SketchAbsoluteXYB
13、368783B-9BDE-46A6-A712-2969C1F21FA2esriControls.ControlsEditingSketchAbsoluteXYCommandControlToolsEditing_SketchDeltaXY061BD3E1-4245-4699-863C-DE478647FBE3esriControls.ControlsEditingSketchDeltaXYCommandControlToolsEditing_SketchDirectionLength9DB473E5-BF90-465B-8758-74C656F136EBesriControls.Control
14、sEditingSketchDirectionLengthCommandControlToolsEditing_SketchParallel798FED0C-978D-4DFA-A658-D3DADF9D414DesriControls.ControlsEditingSketchParallelCommandControlToolsEditing_SketchPerpendicularA9F4EAD1-622C-4BC7-857B-55ABA51D5359esriControls.ControlsEditingSketchPerpendicularCommandControlToolsEdit
15、ing_SketchSegmentDeflectionA1D97BFF-5B08-4852-8223-5714EC5811DBesriControls.ControlsEditingSketchSegmentDeflectionCommandControlToolsEditing_SketchReplaceC9DFFED3-57CC-485A-A5A1-CC510CE9DC97esriControls.ControlsEditingSketchReplaceCommandControlToolsEditing_SketchStreaming4E8F7A0A-C3F3-462B-9632-D99
16、81941A18EesriControls.ControlsEditingSketchStreamingCommandControlToolsEditing_SketchDeleteE5D330C9-8E98-4148-818F-7128D152DFD5esriControls.ControlsEditingSketchDeleteCommandControlToolsEditing_SketchFinish2A876779-8A6A-4B73-9B89-AE0099B0571AesriControls.ControlsEditingSketchFinishCommandControlTool
17、sEditing_SketchFinishSquare73883500-776E-4E99-92B2-6ED6332558DDesriControls.ControlsEditingSketchFinishSquareCommandControlToolsEditing_SketchFinishPartD69E981F-4FDE-4077-B224-0C58A35AF668esriControls.ControlsEditingSketchFinishPartCommandControlToolsEditing_TaskToolControlBEB77C7B-4257-41DC-9447-C3
18、C5C4C8F7C7esriControls.ControlsEditingTaskToolControln在在ArcGIS桌面环境中的主要编辑对象是桌面环境中的主要编辑对象是Editor,而在,而在ArcGISEngine开发中则是开发中则是EngineEditor(单实例对象单实例对象);在相应的应用程序中,它们负责管理在相应的应用程序中,它们负责管理editsketch,currenttask,currenttargetlayer,editworkspace,editselection,editsessionproperties,andsnapenvironment.nEngineEdi
19、tor主要接口:主要接口:IEngineEditor、IEngineEditLayers、IEngineEditProperties、IEngineEditProperties2、IEngineEditSketch、IEngineSnapEnvironment、IEngineEditEvents、IExtension(System)nArcMapEditor主要接口:主要接口:InterfacesIEditAnnotationPropertiesIEditAttributePropertiesIEditLayersIEditor3IEditorZIEditPropertiesIEditProp
20、erties2IEditProperties3IEditProperties4IEditSketch3IEditTaskSearchIExtension(esriSystem)IExtensionAccelerators(esriSystem)IExtensionManager(esriSystem)ISnapEnvironment3themain editing interfacesArcGIS Engine ArcGIS Desktop Editing environment IEngineEditor(New in 9.3)IEditor Edit tasks IEngineEditTa
21、sk(New in 9.3)IEditTaskEdit sketch IEngineEditSketch(New in 9.3)IEditSketch Edit layers IEngineEditLayers(New in 9.3)IEditLayers Edit properties IEngineEditPropertiesIEditProperties Edit events IEngineEditEvents(New in 9.3)IEditEvents IEngineEditSketch IEngineEditor IEngineEditLayers IEngineEditProp
22、erties IEngineEditProperties2 IEngineEditEvents(New in 9.3)IEngineEditTask(new at ArcGIS 9.3)n编辑任务使用编辑绘制几何对象编辑任务使用编辑绘制几何对象(fromIEngineEditSketch:Geometry)完成某项完成某项操作;操作;EngineEditor一次只能有一个活一次只能有一个活动的编辑任务,使用动的编辑任务,使用IEngineEditor:CurrentTask设置当前的设置当前的编辑任务编辑任务.l所有的所有的 Engine Engine 编辑任务都实现了编辑任务都实现了IEng
23、ineEditTaskIEngineEditTask 接口接口.Engine.Engine 编辑任务必须注册到编辑任务必须注册到ESRI Engine Edit TasksESRI Engine Edit Tasks组件类目中,组件类目中,以便显示在以便显示在 ControlsEditingTaskToolControlControlsEditingTaskToolControl中中 .8.1.2 编辑流程n编辑会话(编辑会话(Editsession)建议所有的编辑操作应该一个编辑会话中完成,建议所有的编辑操作应该一个编辑会话中完成,当应用程序使用插当应用程序使用插入游标或更新游标进行批导入或
24、批更新要素除外。入游标或更新游标进行批导入或批更新要素除外。n编辑会话用于实现封装多个编辑和绘制操作的长事务处理。n一个编辑会话中的数据变化只有执行该编辑会话的应用程序可见,编辑会话保存之前,其它并发的应用程序是看不到这些编辑变化的。nAneditsessioncanbecreatedusingIEngineEditor(Controls)orIWorkspaceEdit(Geodatabase).具体使用场合:具体使用场合:Use Use IWorkspaceEditIWorkspaceEdit to programmatically perform edits in to programm
25、atically perform edits in console applications or graphical user interface(GUI)-console applications or graphical user interface(GUI)-based applications that dont require any user based applications that dont require any user interaction.interaction.Use Use IEngineEditorIEngineEditor for GUI-based e
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- GIS 二次开发 剖析 课件
限制150内