阅读背景:

AE 获取地图上当前选中的要素

来源:互联网 

樱木 原文 AE开发----获取地图上当前选中的要素

Code1

int selCount = axMapControl1.Map.SelectionCount;
IEnumFeature pEnumFeature = axMapControl1.Map.FeatureSelection as IEnumFeature;
IFeature pFeature = pEnumFeature.Next();
while (pFeature != null)
{
    string str1 = pFeature.OID.ToString();
    string str2 = pFeature.get_Value(2).ToString();
    pFeature = pEnumFeature.Next();
}
int



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: