<?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: IdentifyTask on ShapefileTable in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638131#M7898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i know how to get data from HitTesting and here is sample of my code ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = await layer.FeatureTable.QueryAsync(featureID);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultsGrid1.ItemsSource = feature.Attributes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here its return all fields pairs (key and value) so my question how to choose spacific fields &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2015 11:20:21 GMT</pubDate>
    <dc:creator>ahmadHasan2</dc:creator>
    <dc:date>2015-12-01T11:20:21Z</dc:date>
    <item>
      <title>IdentifyTask on ShapefileTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638124#M7891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi was wondering if any one can help me with this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example linked here - &lt;A href="https://developers.arcgis.com/net/desktop/api-reference/html/f27877df-d352-4c87-bdb8-452daefe77e9.htm" title="https://developers.arcgis.com/net/desktop/api-reference/html/f27877df-d352-4c87-bdb8-452daefe77e9.htm"&gt;Code Example - IdentifyTask&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shows how to perform a hit test with the mouse on features in layers of a MapView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this also be done without having to reference a serviceURI using Esri.ArcGISRuntime.Tasks.Query.IdentifyTask(...)&amp;nbsp; as all my data is from local storage shape files and not from a server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the Layer.HitTestAsync() but this seems limited in functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading shape files as follows.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esri.ArcGISRuntime.Data.ShapefileTable mySFT = await Esri.ArcGISRuntime.Data.ShapefileTable.OpenAsync("C:\\blabla.shp");&lt;/P&gt;&lt;P&gt;var myQueryFilter = new Esri.ArcGISRuntime.Data.QueryFilter();&lt;/P&gt;&lt;P&gt;myQueryFilter.WhereClause = "1=1";&lt;/P&gt;&lt;P&gt;var Mines = mySFT.QueryAsync(myQueryFilter);&lt;/P&gt;&lt;P&gt;var myLayer = new Esri.ArcGISRuntime.Layers.FeatureLayer(mySFT);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;myLayer.ID = "layer_id";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MyMapView.Map.Layers.Add(myLayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 04:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638124#M7891</guid>
      <dc:creator>DavidChamberlain1</dc:creator>
      <dc:date>2014-10-23T04:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask on ShapefileTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638125#M7892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do SpatialQuery against your ShapefileTable to get features based on geometry. See &lt;A href="https://developers.arcgis.com/net/desktop/guide/search-for-features.htm" title="https://developers.arcgis.com/net/desktop/guide/search-for-features.htm"&gt;Search for features—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; for more information (Query offline content). In the doc query is done against GeodatabaseFeatureTable but that should work the same way against Shapefile. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you clarify what you mean with HitTestAsync being limited with it's functionality?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With .NET SDK, please use &lt;A href="https://community.esri.com/space/2149"&gt;ArcGIS Runtime SDK for .NET&lt;/A&gt; place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 14:34:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638125#M7892</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-10-23T14:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask on ShapefileTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638126#M7893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IdentifyTask is a class that helps you execute the "Identify" operation on ArcGIS server. This is useful when consuming map services where the features aren't stored locally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HitTestAsync is used for "hitting" graphics and features in GraphicsLayer and FeatureLayer that are rendered and visible in the map view and therefore already available locally (as opposed to on the server). These are pixel-based evaluations, meaning it's easier to hit a point with a very large marker symbol than a small one. The spatial queries using QueryAsync(SpatialQueryFilter) doesn't have this benefit, since it's performed at the geometry level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the data and the scenario you're trying to solve, decides with operation you should be using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically if you want you user to "click" on a feature rendered by FeatureLayer or GraphicsLayer, HitTestAsync is what you will use, passing in the screen location the user clicked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 16:36:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638126#M7893</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2014-10-23T16:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask on ShapefileTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638127#M7894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how i can specified the output fields from result ?&lt;/P&gt;&lt;P&gt; like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var query = new Esri.ArcGISRuntime.Data.QueryFilter();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.WhereClause = "'";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // query.OutFields.Add("field1"); this one not available in query filter &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/info.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (table.SupportsQuery)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Query the table and await the result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var result = await table.QueryAsync(query);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2015 12:07:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638127#M7894</guid>
      <dc:creator>ahmadHasan2</dc:creator>
      <dc:date>2015-11-29T12:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask on ShapefileTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638128#M7895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Outfields only applies to online services as a way to reduce response sizes, by filtering out fields you may not need. This isn't an issue for local data, and all fields are always returned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 16:43:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638128#M7895</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2015-11-30T16:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask on ShapefileTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638129#M7896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Morten for reply , and how i can specify which fields to show in data grid or result come back from HitTestAsyn ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 06:04:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638129#M7896</guid>
      <dc:creator>ahmadHasan2</dc:creator>
      <dc:date>2015-12-01T06:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask on ShapefileTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638130#M7897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look to FeatureLayerHitTesting sample in &lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/master/src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/FeatureLayers"&gt;https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/master/src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/FeatureLayers&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is using HitTesting to fetch the feature information and then showing it in the UI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to define what fields are used in your data grid based on the grids mechanism. Attributes are returned in Dictionary that you can easily access.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 10:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638130#M7897</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2015-12-01T10:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask on ShapefileTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638131#M7898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i know how to get data from HitTesting and here is sample of my code ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = await layer.FeatureTable.QueryAsync(featureID);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultsGrid1.ItemsSource = feature.Attributes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here its return all fields pairs (key and value) so my question how to choose spacific fields &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 11:20:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638131#M7898</guid>
      <dc:creator>ahmadHasan2</dc:creator>
      <dc:date>2015-12-01T11:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask on ShapefileTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638132#M7899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You most likely need to create the item template for the datagrid&amp;nbsp; where you define the look and feel for each row. You can access the attributes from xaml using 'Attributes[key]' definition when the DataContext is the feature. Something like this {Binding Attributes[OBJECTID]}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing that you can do is to filter the attributes in code and then provide the filtered list as a ItemsSource.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 11:50:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638132#M7899</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2015-12-01T11:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask on ShapefileTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638133#M7900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks antti for help &lt;/P&gt;&lt;P&gt;i use second solution &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 11:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifytask-on-shapefiletable/m-p/638133#M7900</guid>
      <dc:creator>ahmadHasan2</dc:creator>
      <dc:date>2015-12-01T11:54:29Z</dc:date>
    </item>
  </channel>
</rss>

