<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GetFeatures, IsSelectable, IsVisible in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getfeatures-isselectable-isvisible/m-p/1151154#M7889</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can iterate through map feature layers and make spatial query:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;                SpatialQueryFilter filter = new SpatialQueryFilter();
                filter.FilterGeometry = geometry;
                filter.SpatialRelationship = SpatialRelationship.Intersects;

                var allLayers = map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;();
                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)
                            {
                            }
                        }
                    }
                }&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 07 Mar 2022 07:32:42 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2022-03-07T07:32:42Z</dc:date>
    <item>
      <title>GetFeatures, IsSelectable, IsVisible</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getfeatures-isselectable-isvisible/m-p/1150703#M7883</link>
      <description>&lt;P&gt;ArcGIS Pro API 2.9&lt;BR /&gt;Real basic question converting from ArcObjects(IIdentify) to ArcGIS Pro.&lt;BR /&gt;I have multiple layers I need to gather information about.&lt;BR /&gt;Using the API community example CustomPopup.&amp;nbsp;&lt;BR /&gt;//Get the features that intersect the sketch geometry.&lt;BR /&gt;var result = mapView.GetFeatures(geometry);&lt;BR /&gt;for (var kvp in results)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;if (kvp.Key.Name == myLayer.Name)&amp;nbsp;{// do something}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;This only returns layers the end user has set as selectable and display turned on.&lt;BR /&gt;I already know I can set them SetSelectable, get current status and setback after MapTool is deactivated.&lt;BR /&gt;How to get all layers regardless if they're selectable or visible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 16:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getfeatures-isselectable-isvisible/m-p/1150703#M7883</guid>
      <dc:creator>Living2Learn</dc:creator>
      <dc:date>2022-03-04T16:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: GetFeatures, IsSelectable, IsVisible</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getfeatures-isselectable-isvisible/m-p/1151154#M7889</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can iterate through map feature layers and make spatial query:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;                SpatialQueryFilter filter = new SpatialQueryFilter();
                filter.FilterGeometry = geometry;
                filter.SpatialRelationship = SpatialRelationship.Intersects;

                var allLayers = map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;();
                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)
                            {
                            }
                        }
                    }
                }&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 07 Mar 2022 07:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getfeatures-isselectable-isvisible/m-p/1151154#M7889</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-03-07T07:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: GetFeatures, IsSelectable, IsVisible</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getfeatures-isselectable-isvisible/m-p/1151255#M7891</link>
      <description>&lt;P&gt;Thank you for the response.&amp;nbsp;&lt;BR /&gt;Your suggestion was what I ultimately used.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 14:20:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getfeatures-isselectable-isvisible/m-p/1151255#M7891</guid>
      <dc:creator>Living2Learn</dc:creator>
      <dc:date>2022-03-07T14:20:24Z</dc:date>
    </item>
  </channel>
</rss>

