<?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 Is it possible to select features with where clause and geometry in SelectFeaturesAsync method in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/is-it-possible-to-select-features-with-where/m-p/712422#M3618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried with setting where clause and geometry for selecting features using&amp;nbsp;SelectFeaturesAsync method.but i didn't get the result. where as I achieved same with separately setting them.&lt;/P&gt;&lt;P&gt;Code 1: Combination&lt;/P&gt;&lt;P&gt;&amp;nbsp; QueryParameters params1 = new QueryParameters&lt;BR /&gt; {&lt;BR /&gt; WhereClause = &lt;SPAN&gt;query&amp;nbsp;&lt;/SPAN&gt;,&lt;BR /&gt; Geometry = geometry,&lt;BR /&gt; SpatialRelationship = SpatialRelationship.Intersects,&lt;BR /&gt; ReturnGeometry = true&lt;BR /&gt; };&lt;BR /&gt; FeatureQueryResult fts = await selectedFeatureLayer.SelectFeaturesAsync(params1,Esri.ArcGISRuntime.Mapping.SelectionMode.New);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 2: Seperately&lt;/P&gt;&lt;P&gt;await selectedFeatureLayer.SelectFeaturesAsync(new QueryParameters { WhereClause = query }, Esri.ArcGISRuntime.Mapping.SelectionMode.New);&lt;BR /&gt; await selectedFeatureLayer.SelectFeaturesAsync(new QueryParameters { Geometry = geometry, SpatialRelationship =&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;SpatialRelationship.Intersects,&lt;/SPAN&gt;&lt;SPAN&gt;ReturnGeometry = true&lt;/SPAN&gt;}, Esri.ArcGISRuntime.Mapping.SelectionMode.Add);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get results with where clause and geometry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohammad Riyaz Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Dec 2019 12:39:20 GMT</pubDate>
    <dc:creator>RIYAZ_BABUmohammad</dc:creator>
    <dc:date>2019-12-27T12:39:20Z</dc:date>
    <item>
      <title>Is it possible to select features with where clause and geometry in SelectFeaturesAsync method</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/is-it-possible-to-select-features-with-where/m-p/712422#M3618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried with setting where clause and geometry for selecting features using&amp;nbsp;SelectFeaturesAsync method.but i didn't get the result. where as I achieved same with separately setting them.&lt;/P&gt;&lt;P&gt;Code 1: Combination&lt;/P&gt;&lt;P&gt;&amp;nbsp; QueryParameters params1 = new QueryParameters&lt;BR /&gt; {&lt;BR /&gt; WhereClause = &lt;SPAN&gt;query&amp;nbsp;&lt;/SPAN&gt;,&lt;BR /&gt; Geometry = geometry,&lt;BR /&gt; SpatialRelationship = SpatialRelationship.Intersects,&lt;BR /&gt; ReturnGeometry = true&lt;BR /&gt; };&lt;BR /&gt; FeatureQueryResult fts = await selectedFeatureLayer.SelectFeaturesAsync(params1,Esri.ArcGISRuntime.Mapping.SelectionMode.New);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 2: Seperately&lt;/P&gt;&lt;P&gt;await selectedFeatureLayer.SelectFeaturesAsync(new QueryParameters { WhereClause = query }, Esri.ArcGISRuntime.Mapping.SelectionMode.New);&lt;BR /&gt; await selectedFeatureLayer.SelectFeaturesAsync(new QueryParameters { Geometry = geometry, SpatialRelationship =&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;SpatialRelationship.Intersects,&lt;/SPAN&gt;&lt;SPAN&gt;ReturnGeometry = true&lt;/SPAN&gt;}, Esri.ArcGISRuntime.Mapping.SelectionMode.Add);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get results with where clause and geometry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohammad Riyaz Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2019 12:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/is-it-possible-to-select-features-with-where/m-p/712422#M3618</guid>
      <dc:creator>RIYAZ_BABUmohammad</dc:creator>
      <dc:date>2019-12-27T12:39:20Z</dc:date>
    </item>
  </channel>
</rss>

