矢量图层标注

发布时间:2024-11-26 00:16

如何在Illustrator中制作矢量图标 #生活技巧# #数码产品使用技巧# #设计软件使用技巧#

矢量图层标注

最新推荐文章于 2022-02-26 23:57:28 发布

jiushidt 于 2014-11-04 13:21:37 发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

public void Annotation(IGeoFeatureLayer pGeoFeatLyr, IMap pMap, string annoField)

{

IAnnotateMap pAnnoMap;

pAnnoMap = new MaplexAnnotateMapClass();

pMap.AnnotationEngine = pAnnoMap;

IGeoFeatureLayer pGeoFeatLayer;

pGeoFeatLayer = pGeoFeatLyr;

IAnnotateLayerPropertiesCollection pAnnoProps;

pAnnoProps = pGeoFeatLyr.AnnotationProperties;

pAnnoProps.Clear();

ILabelEngineLayerProperties2 pLabelEngine2 = new MaplexLabelEngineLayerPropertiesClass();

pLabelEngine2.Expression = "[" + annoField + "]";

IMaplexOverposterLayerProperties pMaplexPro = new MaplexOverposterLayerPropertiesClass();

pMaplexPro.FeatureType = esriBasicOverposterFeatureType.esriOverposterPolygon;

pMaplexPro.PolygonPlacementMethod = esriMaplexPolygonPlacementMethod.esriMaplexHorizontalInPolygon;

pMaplexPro.CanPlaceLabelOutsidePolygon = false;

pMaplexPro.CanRemoveOverlappingLabel = false;

pMaplexPro.RepeatLabel = false;

pLabelEngine2.OverposterLayerProperties = pMaplexPro as IOverposterLayerProperties;

IMapOverposter pMapPos = axMapControl1.Map as IMapOverposter;

IOverposterProperties pOP = pMapPos.OverposterProperties;

IMaplexOverposterProperties pMaplexOP = pOP as IMaplexOverposterProperties;

pMaplexOP.LabelLargestPolygon = false;

pAnnoProps.Add(pLabelEngine2 as IAnnotateLayerProperties);

pGeoFeatLyr.DisplayAnnotation = true;

}


网址:矢量图层标注 https://www.yuejiaxmz.com/news/view/273857

相关内容

矢量生活用品佐料收纳瓶素材图片免费下载
生态生活方式,矢量设计模板。零废物理念,回收再利用图片
垃圾桶矢量图图片
智能家居app,控制系统,生态住宅背景,家庭造型,科技,生活理念。平面矢量现代插图图片
食物热量对照表图片
空调节能标识图片
矢量变频生活给水设备Q=40mh,H=50m价格
锻炼和运动,锻炼和锻炼。积极的生活方式和不断增长的肌肉。健美男子在室外或在健身房。平面卡通人物,矢量插图图片
photoshop cs6怎么快速替换图层中指定内容?快速替换图层中指定内容方法介绍
百货生活用品图片

随便看看