ArcGIS Pro获得一个要素图层一种方法
作者:互联网
private FeatureLayer GetFeatureLayerByName(Map map, string layerName) {
var featureLayers = map.GetLayersAsFlattenedList().OfType<FeatureLayer>();
foreach (var layer in featureLayers) {
if (layer.Name.Equals(layerName, StringComparison.CurrentCultureIgnoreCase))
return layer;
}
return null;
}
标签:map,layer,return,Pro,ArcGIS,var,图层,layerName,featureLayers 来源: https://www.cnblogs.com/gisoracle/p/12622833.html