博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ArcGIS Engine中添加点、线、面元素
阅读量:6892 次
发布时间:2019-06-27

本文共 1209 字,大约阅读时间需要 4 分钟。

转自原文

 

//画点
IPoint pt = axMapControl1.ToMapPoint(e.x, e.y);
IMarkerElement pMarkerElement = new MarkerElementClass();
IElement pElement = pMarkerElement as IElement;
pElement.Geometry = pt;
IGraphicsContainer pGraphicsContainer = pMap as IGraphicsContainer;
pGraphicsContainer.AddElement((IElement)pMarkerElement, 0);
pActiveView.Refresh();
//画线
IGeometry polyline = axMapControl1.TrackLine();
ILineElement pLineElement = new LineElementClass();
IElement pElement = pLineElement as IElement;
pElement.Geometry = polyline;
IGraphicsContainer pGraphicsContainer = pMap as IGraphicsContainer;
pGraphicsContainer.AddElement((IElement)pLineElement, 0);
pActiveView.Refresh();
//画面
IGeometry Polygon = axMapControl1.TrackPolygon();
IPolygonElement PolygonElement = new PolygonElementClass();
IElement pElement = PolygonElement as IElement;
pElement.Geometry = Polygon;
pGraphicsContainer = pMap as IGraphicsContainer;
pGraphicsContainer.AddElement((IElement)PolygonElement, 0);
pActiveView.Refresh();
没有整理与归纳的知识,一文不值!高度概括与梳理的知识,才是自己真正的知识与技能。 永远不要让自己的自由、好奇、充满创造力的想法被现实的框架所束缚,让创造力自由成长吧! 多花时间,关心他(她)人,正如别人所关心你的。理想的腾飞与实现,没有别人的支持与帮助,是万万不能的。
    本文转自wenglabs博客园博客,原文链接:http://www.cnblogs.com/arxive/p/6305419.html
,如需转载请自行联系原作者
你可能感兴趣的文章
MAC OS环境下搭建基于Python语言的Selenium2自动化测试环境
查看>>
HumanActivitySystemParameterSetting
查看>>
golang 编辑器选择
查看>>
ThinkCMF-如何收藏
查看>>
怎么判断一个服务器的服务器性能
查看>>
Linux下pipe使用注意事项
查看>>
WCF系列教程之WCF服务配置工具
查看>>
Linux网络命令
查看>>
浅谈JavaScript的函数的call以及apply
查看>>
BZOJ 2666: [cqoi2012]组装
查看>>
System 这四个单元多用用(近期)
查看>>
Html5使用history对象history.pushState()和history.replaceState()方法添加和修改浏览历史记录...
查看>>
SVN 钩子 允许用户修改Subversion日志的钩子脚本(转)
查看>>
算法学习一
查看>>
像素PX厘米转换
查看>>
webpack使用babel
查看>>
201314
查看>>
python list 的查找, 搜索, 定位, 统计
查看>>
[Usaco2009 Feb]Revamping Trails 道路升级 BZOJ1579
查看>>
在Altium Designer9.0中建造自己的库
查看>>