ArcEngine , VS.NET , SQLSERVER
淡泊明智,宁静致远~~~

随笔分类 -  ArcObject学习历程

在TOC中添加"右键查看属性信息"菜单
摘要:(1)首先,我们创建 frmAttribute 类,即存储 属性信息 的对话框 private AxMapControl m_Mapctr; private ILayer m_pLyr; public frmAttribute(AxMapControl pMapCtr,ILayer pLyr) //该类创建时,接受参数 "所在地图(... 阅读全文
posted @ 2008-08-25 15:09 peaceful_fish 阅读(1324) 评论(0) 推荐(0)
ArcEngine的一个简单鹰眼
摘要:首先,添加两个MapControl,主图命名为mapMain,鹰眼图命名为mapEye Imports ESRI.ArcGIS.Geometry Imports ESRI.ArcGIS.Display Public Class Form1 Private EyeRect As IEnvelope '鹰眼矩形框范围 Private EyeSym As ISim... 阅读全文
posted @ 2008-08-12 15:41 peaceful_fish 阅读(964) 评论(0) 推荐(0)
ArcObject操作之"添加书签","定位书签","删除书签"
摘要:Private Sub 添加书签ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 添加书签ToolStripMenuItem.Click Dim pMapBookMarks As IMapBookmarks pMapBookMarks... 阅读全文
posted @ 2008-08-09 11:25 peaceful_fish 阅读(677) 评论(0) 推荐(0)
ArcObject操作之"拉框放大","拉框缩小","撤销","前进"
摘要:Private Sub AxMapControl1_OnMouseDown(ByVal sender As System.Object, ByVal e As ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent) Handles AxMapControl1.OnMouseDown '拉框放大 If Me.... 阅读全文
posted @ 2008-08-09 11:20 peaceful_fish 阅读(1289) 评论(0) 推荐(0)
ArcEngine的鼠标事件中按键判断~
摘要:我们都知道,在.Net的鼠标事件中判断鼠标事件方法如下(以button为例): Private Sub Button1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseDown If e.Button = Win... 阅读全文
posted @ 2008-08-09 11:14 peaceful_fish 阅读(1167) 评论(0) 推荐(0)
ArcObject之添加矢量图层
摘要:(1)添加矢量图层——方法1 Dim sPath As String sPath = "F:\AE 数据" '"F:\AE 数据"为所有图层文件所在的文件夹目录 Me.AxMapControl1.AddShapeFile(sPath, "object_pt") '"object_pt"为其中之一的图层文件 (2)添加矢量图层——方法2 Dim sPath As String sP... 阅读全文
posted @ 2008-08-08 08:32 peaceful_fish 阅读(787) 评论(0) 推荐(0)
ArcObect小知识点(一)
摘要:一。关于"AO的IPoint接口"和".NET本身的Point类": 我们在AO代码编写中常常会用到IPoint接口,常常的见到的操作有: Dim pt as IPoint----步骤1 pt=new Point---步骤2 其实这样的操作将“AO中的IPoint接口”(步骤1) 与“。NET本身的Point类”(步骤2)混合起来用了 大家不信的话,可以在AO代码编写中去掉Import... 阅读全文
posted @ 2008-07-25 17:50 peaceful_fish 阅读(554) 评论(1) 推荐(0)