AE如何 获得 REST URL某个图层 的label信息?

ESRI.ArcGIS.GISClient.IAGSServerObjectName pServerObjectName = GetMapServer(strUrl, "Test");
IName pName = (IName)pServerObjectName;
IMapServer pMapServer = (IMapServer)pName.Open();
pMapServerInfo = pMapServer.GetServerInfo(pMapServer.DefaultMapName);

pMapLayerInfos = pMapServerInfo.MapLayerInfos;
IMapLayerInfo4 info = pMapLayerInfos.Element[idx] as IMapLayerInfo4;

IMapLayerInfo4 能够获得URL中的很多属性信息,例如图层名称(Name),图层显示字段(DisplayField)
我想获得图层的标注字段,如下图:

QQ图片20160921165928.png


 
已邀请:

朱新颖

赞同来自:

获取不了,获取标注字段需要获取IGeoFeatureLayer,然后获取IAnnotateLayerProperties,在转为ILabelEngineLayerProperties.Expression获取,将Ilayer转为IFeatureLayer就为null,那后面的肯定获取不了

要回复问题请先登录注册