东华理工GIS二次开发实验报告.docVIP

  • 4
  • 0
  • 约2.82万字
  • 约 30页
  • 2020-09-10 发布于浙江
  • 举报
GIS二次开发实验报告 学号: 姓 名: 班 级: 专 业: 指导老师: 二零一五年1月4日 目录 TOC \o 1-3 \h \z \u 1 实验一:软件安装与AOI书签开发 1 1.1 实验目的 1 1.2 实验内容 1 1.3 实验结果 1 2 实验二:地图数据组织与访问 8 2.1 实验目的 8 2.2 实验内容 8 2.3 实验结果 8 3 实验三:地图渲染与制图输出 13 3.1 实验目的 13 3.2 实验内容 13 3.3 实验结果 13 4 实验四:空间数据处理 18 4.1 实验目的 18 4.2 实验内容 18 4.3 实验结果 18 5 实验五:GIS分析 19 5.1 实验目的 19 5.2 实验内容 19 5.3 实验结果 19 6 实验六:栅格数据处理 24 6.1 实验目的 24 6.2 实验内容 24 6.3 实验结果 25 7 实验总结 28 PAGE1 / NUMPAGES30 实验一:软件安装与AOI书签开发 实验目的 掌握ArcGIS Engine开发环境的相关软件安装 掌握AOI书签程序开发 实验内容 安装Visual Studio 2010 安装Microsoft .NET Framework 3.5 安装ArcGIS Engine 10.1 安装ArcObjects Developer kit For Microsoft .NET Framework 10.1 安装ArcGIS License Manager,并授权 实现AOI书签的创建 实现AOI书签的调用 实验步骤与结果 安装VS2010 安装AE 10.0 打开VS 2010 选择ArcGIs—Extending ArcObjects—MapControl Application 打开界面如图所示 给窗体添加一个书签窗体 输入如下代码 ?C# Code? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 using?System; using?System.Collections.Generic; using?System.ComponentModel; using?System.Data; using?System.Drawing; using?System.Linq; using?System.Text; using?System.Windows.Forms; namespace?MapControlApplication1 { ????public?partial?class?admitBookmarkName?:?Form ????{ ????????public?admitBookmarkName(MainForm?frm) ????????{ ????????????InitializeComponent(); ????????????if?(frm?!=?null) ????????????{ ????????????????m_frmMain?=?frm; ????????????} ????????} ????????public?MainForm?m_frmMain; ????????private?void?确定_Click(object?sender,?EventArgs?e) ????????{ ????????????if?(m_frmMain?!=?null??tbbookmarkname.Text?!=?) ????????????????m_frmMain.creatbookmark(tbbookmarkname.Text); ????????????this.Close(); ????????} ????} } 输入如下代码,用来添加书签 ?C# Code? 1 2 3 4 5 6 7 8 9 10 11 12 13 public?void?creatbookmark(string?sbookmarkname) { ????IAOIBookmark?aoibookmark?=?new?AOIBookmarkClass(); ????if?(aoibookmark?!=?null) ????{ ????????aoibookmark.Location?=?axMapControl1.ActiveView.Extent; ????????aoibookmark.Nam

文档评论(0)

1亿VIP精品文档

相关文档