网站大量收购闲置独家精品文档,联系QQ:2885784924

ArcEngine图层动态标注ArcEngine图层动态标注.doc

ArcEngine图层动态标注ArcEngine图层动态标注.doc

  1. 1、本文档共8页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ArcEngine图层动态标注ArcEngine图层动态标注

[已解决] AE动态标注的问题 本帖最后由 gislzc 于 2009-5-12 11:03 编辑 请问一下我在AE中动态标注时,为什么当标注内容一样时,只会标注一个要素呢?例如,我动态标注某村下的所有宗地(标注宗地所有者的名称(户主姓名)),发现同一户下的所有宗地,只有一块标注了,这是什么原因呢 我标注宗地的户主名字(其值不是唯一,同一户主会拥有很多块宗地),则会只标注一块宗地. 如果我标注宗地的编号字段,这个字段的值是唯一的,则会标注所有的宗地. 收藏 分享 评分 GIS之路征文活动火热进行中 回复 引用 订阅 TOP gislzc 发短消息 加为好友 gislzc 当前离线 UID 28139? 帖子 128? 精华 0? 积分 140? 性别 男? 在线时间 116 小时? 注册时间 2008-5-8? 最后登录 2009-9-9? 初级会员 帖子 128? 精华 0? 2# 发表于 2009-5-7 11:03 | 只看该作者 本帖最后由 gislzc 于 2009-5-7 13:23 编辑 代码如下: string expression = function FindLabel([OwnerName])\n + ? ?? ?? ?? ?? ?? ?? ?? ?? ???{ + ? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?return [OwnerName];+ ? ?? ?? ?? ?? ?? ?? ?? ?? ???} ; parcelLayerAnnotate.SetLayerAnnotaion(layer, expression, Arial, 8, rgbColor, false, 1, 1300); public void SetLayerAnnotaion(ILayer layer, string expression, string fontName, int fontSize, IRgbColor fontColor, bool isBold, double showMaxScale, double showMinScale) ? ?? ???{ ? ?? ?? ?? ?try ? ?? ?? ?? ?{ ? ?? ?? ?? ?? ? IFeatureLayer featureLayer = (IFeatureLayer)layer; ? ?? ?? ?? ?? ? IFeatureClass featureClass = featureLayer.FeatureClass; ? ?? ?? ?? ?? ? if (featureClass == null) return; ? ?? ?? ?? ?? ? IGeoFeatureLayer geoFeatureLayer = (IGeoFeatureLayer)featureLayer; ? ?? ?? ?? ?? ? if (geoFeatureLayer == null) return; ? ?? ?? ?? ?? ? geoFeatureLayer.DisplayAnnotation = true; ? ?? ?? ?? ?? ? IAnnotateLayerPropertiesCollection annotateLayerPropsColl = new AnnotateLayerPropertiesCollectionClass(); ? ?? ?? ?? ?? ? annotateLayerPropsColl = geoFeatureLayer.AnnotationProperties; ? ?? ?? ?? ?? ? annotateLayerPropsColl.Clear(); ? ?? ?? ?? ?? ? IBasicOverposterLayerProperties basicOverposterLayerProperties = CreateBasicOverposterLayerPropertiesFromFeatureClass(featureClass);? ?? ?? ?? ?? ? ? ?? ?? ?? ?? ? ITextSymbol textSymbol = new TextSymbolClass(); ? ?? ?? ?? ?? ? stdole.IFontDisp fontDisp = new stdole.StdFontClass() as stdole.IFontDisp; ? ?? ?? ?? ?? ? fontDisp.Name = fontName; ? ?? ?? ?? ?? ? fontDisp.Size

您可能关注的文档

文档评论(0)

cduutang + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档