ArcGIS Pro空间查询
SpatialQueryFilter filter = new SpatialQueryFilter(); filter.FilterGeometry = geometry; filter.SpatialRelationship = SpatialRelationship.Intersects; var allLayers = map.GetLayersAsFlattenedList().OfType<FeatureLayer>(); foreach (var layer in allLayers) { var featClass = layer.GetFeatureClass(); using (var rows = featClass.Search(filter, false)) { while (rows.MoveNext()) { using (var feature = rows.Current as Feature) { } } } }