<?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: MapTool that selects only one feature in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1195313#M8486</link>
    <description>&lt;P&gt;I don't know what you mean by&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// this statment
oids = oid;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I was able to get the answer from the method you have mentioned&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;GetFeatures(geometry).&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 07:17:40 GMT</pubDate>
    <dc:creator>KhaledAliMoh</dc:creator>
    <dc:date>2022-07-25T07:17:40Z</dc:date>
    <item>
      <title>MapTool that selects only one feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1194338#M8467</link>
      <description>&lt;P&gt;How to create a map tool that selects only one feature when click on a point with a tolerance.&lt;/P&gt;&lt;P&gt;For now I can use ActiveMapView.SelectFeatures(geometry), but this method can select multiple feature layer or multiple feature in a layer.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var selection = ActiveMapView.SelectFeatures(clickedPoint, method: SelectionCombinationMethod.New);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Jul 2022 08:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1194338#M8467</guid>
      <dc:creator>KhaledAliMoh</dc:creator>
      <dc:date>2022-07-21T08:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool that selects only one feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1194469#M8469</link>
      <description>&lt;P&gt;You most likely want FeatureLayer Select(...).&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic11392.html" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic11392.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; var sqf = new SpatialQueryFilter() {
   FilterGeometry = clickedPoint,
   SpatialRelationship = SpatialRelationship.Intersects,//change as needed
   WhereClause = "Optional SQL whereclause here",
   SubFields = "*"
 };
 var selection = featLayer.Select(sqf);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 15:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1194469#M8469</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-07-21T15:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool that selects only one feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1194822#M8476</link>
      <description>&lt;P&gt;What about this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; var features = mapView.GetFeatures(point);
                if (features.ContainsKey(layer))
                {
                    var tag = features.FirstOrDefault(t =&amp;gt; t.Key == layer);
                    var oids = tag.Value;
                    foreach (var oid in oids)
                    {
                        oids = oid;
                    }
var filter = new QueryFilter
            {
                WhereClause = " OBJECTID = " + oid
            };
 var select = layer.Select(filter);&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 22 Jul 2022 09:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1194822#M8476</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-07-22T09:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool that selects only one feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1195312#M8485</link>
      <description>&lt;P&gt;How can I get the featureLayer ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 07:14:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1195312#M8485</guid>
      <dc:creator>KhaledAliMoh</dc:creator>
      <dc:date>2022-07-25T07:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool that selects only one feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1195313#M8486</link>
      <description>&lt;P&gt;I don't know what you mean by&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// this statment
oids = oid;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I was able to get the answer from the method you have mentioned&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;GetFeatures(geometry).&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 07:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-that-selects-only-one-feature/m-p/1195313#M8486</guid>
      <dc:creator>KhaledAliMoh</dc:creator>
      <dc:date>2022-07-25T07:17:40Z</dc:date>
    </item>
  </channel>
</rss>

