<?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 need help deciding what kind of query to use in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/need-help-deciding-what-kind-of-query-to-use/m-p/66159#M1662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;prior to this new application I'm writing, I've primarily used Identify query to discover various layers on the map. For example, when a user clicks anywhere on the map, the results return what "assets" (hydrants, parcels etc) were discovered on that coordinate. Then I'd access the Attribute property to display details about those assets. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My new application still does those things, but this time I need to be able to make query on an area instead of just a point. So, I'd draw a rectangle, polygon, polyline etc, and that query would return all the assets discovered within that area.&amp;nbsp; Now for this case, I have given spatial query a shot. It does return the results, but it's a bit difficult to expose the Attribute property onto the datagrid the way I want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find Identify query a bit simpler in the sense that I can make one query to include multiple layers at the same time. But if I used Spatial Query, I'd have to make queries to the layers individually (...MapServer/{Layer Number}). I haven't really tried other kinds of queries, but I have fair understanding of what they do. Either way, what do you think is the best practice for what I'm trying to achieve? What query type should I use? Or should I try to combine them? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2011 12:50:07 GMT</pubDate>
    <dc:creator>SangamLama</dc:creator>
    <dc:date>2011-04-06T12:50:07Z</dc:date>
    <item>
      <title>need help deciding what kind of query to use</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/need-help-deciding-what-kind-of-query-to-use/m-p/66159#M1662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;prior to this new application I'm writing, I've primarily used Identify query to discover various layers on the map. For example, when a user clicks anywhere on the map, the results return what "assets" (hydrants, parcels etc) were discovered on that coordinate. Then I'd access the Attribute property to display details about those assets. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My new application still does those things, but this time I need to be able to make query on an area instead of just a point. So, I'd draw a rectangle, polygon, polyline etc, and that query would return all the assets discovered within that area.&amp;nbsp; Now for this case, I have given spatial query a shot. It does return the results, but it's a bit difficult to expose the Attribute property onto the datagrid the way I want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find Identify query a bit simpler in the sense that I can make one query to include multiple layers at the same time. But if I used Spatial Query, I'd have to make queries to the layers individually (...MapServer/{Layer Number}). I haven't really tried other kinds of queries, but I have fair understanding of what they do. Either way, what do you think is the best practice for what I'm trying to achieve? What query type should I use? Or should I try to combine them? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 12:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/need-help-deciding-what-kind-of-query-to-use/m-p/66159#M1662</guid>
      <dc:creator>SangamLama</dc:creator>
      <dc:date>2011-04-06T12:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: need help deciding what kind of query to use</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/need-help-deciding-what-kind-of-query-to-use/m-p/66160#M1663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the graphics already exist in your GraphicsLayer, you can use Editor.Select. Editor.EditCompleted event will give you the graphic (check for graphic.Selected property) and layer it belongs to. See this sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, when draw completes you would have to execute a spatial query on every layer and use UserToken property to help you identify which layer the query is for. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 15:40:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/need-help-deciding-what-kind-of-query-to-use/m-p/66160#M1663</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-04-06T15:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: need help deciding what kind of query to use</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/need-help-deciding-what-kind-of-query-to-use/m-p/66161#M1664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I decided to use Spatial Query and it works well for the most part. What's not working in every case though are the point and polyline drawmodes. They both work for cases when I'm querying layers such as parcels i.e. layers that cover big areas of the map. But if I query hydrants, and manholes layers (which are only about 3-4 pixels in the map) it doesn't return any features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first theory on why it isn't working accurately is that the buffer areas (tolerance) of the point and polyline queries are too small for objects such as hydrants, and therefore would need to be increased. And my second theory is based on this thread &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/25221-QueryTask-on-point-and-line-feature-not-resulting-into-featureset?highlight=querytask+buffer"&gt;http://forums.arcgis.com/threads/25221-QueryTask-on-point-and-line-feature-not-resulting-into-featureset?highlight=querytask+buffer&lt;/A&gt;&lt;SPAN&gt;, which means I'd probably need to specify the spatialrelationship to achieve the features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure how I'd do specify either of those fields on a spatial query though? Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If the graphics already exist in your GraphicsLayer, you can use Editor.Select. Editor.EditCompleted event will give you the graphic (check for graphic.Selected property) and layer it belongs to. See this sample: &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Otherwise, when draw completes you would have to execute a spatial query on every layer and use UserToken property to help you identify which layer the query is for. &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 17:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/need-help-deciding-what-kind-of-query-to-use/m-p/66161#M1664</guid>
      <dc:creator>SangamLama</dc:creator>
      <dc:date>2011-04-18T17:03:30Z</dc:date>
    </item>
  </channel>
</rss>

