上一页 1 ··· 6 7 8 9 10
摘要: 实现在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) 编辑
摘要: IPointCollection转线IPolyline: 1 IPolyline pl = new PolylineClass(); 2 3 IPointCollection ptc = pl as IPointCollection; 4 5 object missing = Type.Missing; 6 7 for (int i = 0; i < num1; i++) 8 { 9 IPoint pt = autoStation.GetFeature(i).Shape as IPoint;//提取点10 ptc.AddPoint(pt, mi... 阅读全文
posted @ 2013-08-23 17:29 寻梦放歌 阅读(865) 评论(0) 推荐(0) 编辑
摘要: 当AE二次开发与其他平台一起使用的时候,有时候会不方便加LicenseControl控件,需要用代码初始化许可:在构造函数中初始化许可: 1 public Form1() 2 { 3 4 InitializeComponent(); 5 ESRI.ArcGIS.esriSystem.IAoInitialize AoIni = new AoInitializeClass(); 6 bool Successful;//返回是否初始化成功 7 esriLicenseProductCode production ... 阅读全文
posted @ 2013-08-23 16:39 寻梦放歌 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: 打开shapefile工作空间:1 ESRI.ArcGIS.Geodatabase.IWorkspaceFactory wsf = new ESRI.ArcGIS.DataSourcesFile.ShapefileWorkspaceFactory();2 3 IWorkspace ws = wsf.OpenFromFile(Application.StartupPath, 0);4 5 IFeatureClass f1 = (ws as IFeatureWorkspace).OpenFeatureClass("floodarea1");打开mdb工作空间:1 IWorksp 阅读全文
posted @ 2013-08-23 16:13 寻梦放歌 阅读(551) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10