摘要: 在Mapcontrol的mousedown中实现 1 IGeometry pBuffer = m_pMapControl.TrackPolygon(); 2 IPolygon pPoly = pBuffer as IPolygon; 3 if (pBuffer == null || pBuffer.IsEmpty) 4 return; 5 IArea pArea = pBuffer as IArea; 6 double area = pArea.Area; 7 if (pArea.Area < 0) 8 { 9 area = System.Math.Abs(pAr... 阅读全文
posted @ 2013-08-27 17:07 寻梦放歌 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 实现在IMapcontrol上采点,双击结束采点进行距离测量,并标注在IMapcontrol上,实现结果如下:1. 初始化主要变量:1 private bool m_bStart = false;2 private INewLineFeedback m_pNewLineFeedback = null;3 private IPoint m_prevPoint = null;4 private double m_CurDistance = 0.0;5 private double m_TotalDistance = 0... 阅读全文
posted @ 2013-08-27 16:38 寻梦放歌 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1 private void 河流面转点ToolStripMenuItem_Click(object sender, EventArgs e) 2 { 3 ESRI.ArcGIS.Geodatabase.IWorkspaceFactory wsf = new ESRI.ArcGIS.DataSourcesFile.ShapefileWorkspaceFactory(); 4 IWorkspace ws = wsf.OpenFromFile(@"F:\1-水利项目\安徽水利\0826处理", 0); 5 6 ... 阅读全文
posted @ 2013-08-27 10:55 寻梦放歌 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 1 private void 输出断面点ToolStripMenuItem_Click(object sender, EventArgs e) 2 { 3 ESRI.ArcGIS.Geodatabase.IWorkspaceFactory wsf = new ESRI.ArcGIS.DataSourcesFile.ShapefileWorkspaceFactory(); 4 IWorkspace ws = wsf.OpenFromFile(@"F:\1-水利项目\安徽水利\0826处理", 0); 5 ... 阅读全文
posted @ 2013-08-27 10:17 寻梦放歌 阅读(325) 评论(0) 推荐(0) 编辑