ArcGIS Pro获得一个要素图层一种方法
作者:互联网
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;
}
标签:layer,Pro,ArcGIS,var,图层,layerName,featureLayers 来源: https://blog.51cto.com/u_12139363/3025143