<?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 How do I query the features in a shapefile and display the results? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-query-the-features-in-a-shapefile-and/m-p/452377#M5522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am following this tutorial &lt;A href="http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9" title="http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9"&gt;http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9&lt;/A&gt; but I don't know how to modify it to do what I need. I'd like to be able to access the data table within the shapefile, query it, and only map the returned results. This seems simple enough but I cannot find any documentation on how to do this. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 18:22:33 GMT</pubDate>
    <dc:creator>AllenChan</dc:creator>
    <dc:date>2015-08-14T18:22:33Z</dc:date>
    <item>
      <title>How do I query the features in a shapefile and display the results?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-query-the-features-in-a-shapefile-and/m-p/452377#M5522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am following this tutorial &lt;A href="http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9" title="http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9"&gt;http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9&lt;/A&gt; but I don't know how to modify it to do what I need. I'd like to be able to access the data table within the shapefile, query it, and only map the returned results. This seems simple enough but I cannot find any documentation on how to do this. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 18:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-query-the-features-in-a-shapefile-and/m-p/452377#M5522</guid>
      <dc:creator>AllenChan</dc:creator>
      <dc:date>2015-08-14T18:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query the features in a shapefile and display the results?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-query-the-features-in-a-shapefile-and/m-p/452378#M5523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcGIS Runtime for .NET, you would want to use the ShapefileTable class to open your shapefile.&amp;nbsp; Depending on how you need to query, you could potentially set the DefinitionExpression for the layer the ShapefileTable is associated with or you could use ShapefileTable.QueryAsync to retrieve the features back and then use those features to create a graphics layer for display purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Open shapefile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ShapefileTable shp = await ShapefileTable.OpenAsync(pathToShapefile);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Create feature layer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FeatureTable ft = new FeatureTable(shp);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ft.DefenitionExpression = "sweet_field &amp;gt; 10";&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Add layer to map&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 17:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-query-the-features-in-a-shapefile-and/m-p/452378#M5523</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-08-20T17:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query the features in a shapefile and display the results?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-query-the-features-in-a-shapefile-and/m-p/452379#M5524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcGIS Runtime for .NET SDK you should use the approach that &lt;A href="https://community.esri.com/migrated-users/102723"&gt;Bob Crawford&lt;/A&gt;​ said. You can also see examples from our &lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/master/src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/FeatureLayers/FeatureLayerFromShapefile.xaml.cs"&gt;samples &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 09:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-query-the-features-in-a-shapefile-and/m-p/452379#M5524</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2015-08-26T09:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query the features in a shapefile and display the results?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-query-the-features-in-a-shapefile-and/m-p/452380#M5525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think, a small change has to be made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FeatureLayer myFeatureLayer = new FeatureLayer(myShapefileTable);&lt;BR /&gt;&amp;nbsp;myFeatureLayer.DefinitionExpression = "sweet_field &amp;gt; 10";&lt;/P&gt;&lt;P&gt;// Add layer to map&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-query-the-features-in-a-shapefile-and/m-p/452380#M5525</guid>
      <dc:creator>RalphElsaesser</dc:creator>
      <dc:date>2017-01-26T16:14:09Z</dc:date>
    </item>
  </channel>
</rss>

