- 1、本文档共35页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
[数学]理解对象模型图OMD
设置属性 Property Put:Most ArcObjects properties 属性获得一个值或一个对象的副本 不使用Set关键字 pLayer.Name=“Port Moresby” ‘No Set Keyword Property Put by Reference:Some ArcObjects properties 属性获得一个对象的引用即需要传入一地址 必须使用Set关键字 Set pLayer.FeatureClass=pMoresbyData ‘Must use Set IFeatureLayer Interface 帮助 七、查找接口 这些接口也是有效的。但是详细的 属性和方法必须在其它地方浏览。 (e.g., Object Browser). 该接口被本类使用. 所有的属性和放都列表在类图中. 继承接口是有效的 类继承要查找父类的接口 接口继承的属性和方法 示例:接口 八、虫孔 FeatureLayer on Map Layer OMD Element on ArcMap OMD 虫孔 Example: MxDocument Map layer Get the FocusMap (active data frame) from MxDocument MxDocument may have several Maps ( * ) Get a layer from the the Map Many types of layers ( ) Dim pMxDoc As IMxDocument Set pMxDoc = ThisDocument Dim pMap As IMap Set pMap = pMxDoc.FocusMap Dim pLayer As ILayer Set pLayer = pMap.Layer(1) Is pLayer a FeatureLayer? If TypeOf pLayer Is IFeatureLayer Then MsgBox Yes!, it’s a feature layer End If MxDocument Map FeatureLayer Layer * * Others A * OMD code example: Maps and layers In the example above, the object model diagram can be used as a guide for writing code. Your starting point for writing code in ArcMap is generally the ThisDocument preset variable. By consulting the ArcMap object model diagram, you would find that the IMxDocument interface on MxDocument (rather than the default IDocument interface to which ThisDocument points) has properties for accessing Maps (data frames). Because of the composed of relationship (?) shown in the diagram, and the multiplicity (*), you know that an MxDocument could potentially have several associated Maps. To insure that you get the Map that your user is currently working in, you use the FocusMap property. Looking at the diagram again, you notice that a Map is composed of (?) potentially several (*) Layers. From the Map, you can retrieve a Layer at a given index position (you are accessing the 2nd Layer in the code above). Finally, because Layer is an abstract class that has several subtypes (?), you would want
您可能关注的文档
- [教育学]第一章 第一节 物质世界和实践2011.ppt
- [教育学]立体构成.ppt
- [教育学]第九章 回归分析.ppt
- [教育学]第九章 内容分析法.ppt
- [教育学]第三讲:第二章教育技术的发展历史.ppt
- [教育学]第九章 当代学校德育.ppt
- [教育学]第二章 数据类型和输入输出.ppt
- [教育学]第二章 人社会教育.ppt
- [教育学]第二章儿童心理发展与教育.ppt
- [教育学]第二章课程与教学论.ppt
- 法律硕士联考专业基础课(非法学)-21-2 .pdf
- 泰豪集团有限公司校园招聘85人公开引进高层次人才和急需紧缺人才笔试参考题库答案详解版完整版.docx
- 2024国培计划个人研修计划(6篇) .pdf
- 2024年陕西省宝鸡市公开招聘警务辅助人员辅警笔试自考练习卷一含.pdf
- 精选最新版2020年大学期末思想道德修养与法律基础完整考题库(含.pdf
- 2024年浙江省嘉兴市公开招聘警务辅助人员辅警笔试模拟自测题A卷含答.pdf
- 瑞西光华佳苑总包施工招标1204(定稿).doc
- 职业健康与防护详细讲解培训课件(11.1).doc
- 都溪河综合治理项目部月度报告(7月份 ) .doc
- 湖北恒大建设工程有限公司简介1.doc
最近下载
- 2021年香薰服务合同.docx
- 《Python与数据分析应用》课件——第10章 数据分析工具Pandas.pptx VIP
- 战争狂人希特勒简介.ppt
- 家庭教育指导师试题库.doc
- -司法鉴定人执业能力评估业务理论知识考试题库(司法鉴定人考试试题及答案解析)-.docx VIP
- 病房急产应急预案演练脚本.docx VIP
- 生产项目准入及预算标准第六册主网修理项目准入及预算标准(预算分册).docx
- 2025新人教版语文七年级下册《第一单元》大单元整体教学设计[2022课标].pdf
- 电子商务文案创意与撰写:直播脚本编写PPT教学课件.pptx
- (高清版)-B-T 30146-2023 安全与韧性 业务连续性管理体系 要求.pdf VIP
文档评论(0)