




已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
else if (m_BasicOperation = Point) /方法1:SimpleMarkerSymbol具有简单特征的点 /产生一个简单符号 /ISimpleMarkerSymbol pMarkerSymbol; /pMarkerSymbol = new SimpleMarkerSymbolClass(); /Symbol的样式:为圆形 /pMarkerSymbol.Style = esriSimpleMarkerStyle.esriSMSCircle; /Symbol的颜色 /IRgbColor rgbColor = new RgbColorClass(); /rgbColor.Red = 255; /pMarkerSymbol.Color = rgbColor; /Symbol的大小 /pMarkerSymbol.Size = 4; /object oMakerSymbol = pMarkerSymbol; /axMapControl1.DrawShape(pPoint, ref oMakerSymbol); /方法2 /IFeatureLayer pFeatureLayer; /pFeatureLayer = (IFeatureLayer)axMapControl1.Map.get_Layer(0); /IFeatureClass pFeatrueClass; /pFeatrueClass = pFeatureLayer.FeatureClass; /IFeature pFeature; /pFeature = pFeatrueClass.CreateFeature(); /pFeature.Shape = (IGeometry)pPoint; /pFeature.Store(); /axMapControl1.Refresh(); /方法3 MarkerSymbol,抽象类的缺省接口 IRgbColor rgbColor = new RgbColorClass(); rgbColor.Red = 255; IMarkerSymbol pMarkerSymbol = new SimpleMarkerSymbolClass(); pMarkerSymbol.Color = rgbColor; pMarkerSymbol.Size = 4; IMarkerElement pMarkerElement = new MarkerElementClass(); pMarkerElement.Symbol = pMarkerSymbol; IElement pElement = (IElement)pMarkerElement; pElement.Geometry = pPoint; IGraphicsContainer pGraphicsContainer = (IGraphicsContainer)axMapControl1.Map; pGraphicsContainer.AddElement(pElement, 0); IActiveView pActive = (IActiveView)pGraphicsContainer; pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, null, null); /画线 else if (m_BasicOperation = Line) IRgbColor rgbColor = new RgbColorClass(); rgbColor.Red = 255; /方法1 /ISimpleLineSymbol pSimpleLineSymbol = new SimpleLineSymbolClass(); /pSimpleLineSymbol.Color = rgbColor; /pSimpleLineSymbol.Style = esriSimpleLineStyle.esriSLSSolid; /pSimpleLineSymbol.Width = 3; /IGeometry pGeo; /pGeo = axMapControl1.TrackLine(); /object oLineSymbol = pSimpleLineSymbol; /axMapControl1.DrawShape(pGeo, ref oLineSymbol); /方法2 ILineSymbol pLineSymbol = new SimpleLineSymbolClass(); pLineSymbol.Color = rgbColor; pLineSymbol.Width = 3; ILineElement pLineElement = new LineElementClass(); pLineElement.Symbol = pLineSymbol; IElement pElement = pLineElement as IElement; pElement.Geometry = axMapControl1.TrackLine(); IGraphicsContainer pGraphicscontainner = axMapControl1.Map as IGraphicsContainer; pGraphicscontainner.AddElement(pElement, 0); pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null); /画面 else if (m_BasicOperation = Polygon) IRgbColor pColor = new RgbColorClass(); pColor.Red = 255; /产生一个线符号对象 ILineSymbol pOutline = new SimpleLineSymbolClass(); pOutline.Width = 2; pOutline.Color = pColor; /设置填充符号的属性 IFillSymbol pFillSymbol = new SimpleFillSymbolClass(); pFillSymbol.Color = pColor; pFillSymbol.Outline = pOutline; IPolygonElement pPolygonElement = new PolygonElementClass(); IElement pElement = pPolygonElement as IElement; pElement.Geometry = axMapControl1.TrackPolygon(); IFillShapeElement pFillShapeElement = pElement as IFillShapeElement; pFillShapeElement.Symbol = pFillSymbol; IGraphicsContainer pGraphicsContainer = axMapControl1.Map as
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年智能养老服务驿站建设与社区治理创新研究
- 2025年水上乐园游乐设施市场竞争格局与品牌分析报告
- 2025年广播媒体融合传播中的媒体融合政策与监管研究报告
- 米面粮油采购合同范本
- 线上签署合同终止协议
- 济南铁路正式合同范本
- 酒店投资建设合同范本
- 银行双控账户合同范本
- 样品加工采购合同范本
- 法人之间借款合同范本
- 食品生产监管能力大比武理论考试题及答案
- 2024玻璃钢贮罐拆除解体施工合同
- 2022年中国居民膳食指南
- 2024-2030年中国病理检查市场专题研究及市场前景预测评估报告
- 第3章 即时定位与地图构建技术课件讲解
- 汽车用品采购合同
- P.E.T.父母效能训练
- 《研学旅行课程设计》课件-了解研学旅行概念
- 传统中医针灸技术操作规范
- 沅陵旅游宣传方案
- 个人防护用品使用和检查知识
评论
0/150
提交评论