<?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: Spatial query by multiple features in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-by-multiple-features/m-p/569974#M14673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. If layer1 is a point layer, you can create a MultiPoint feature with all the selected points in it, and use that for your query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. If it's a line layer, just create a new polyline with all the paths from the original polyline. Ie&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;foreach(var graphic in selectedGraphics)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; foreach(var path in (graphic.Geometry as Polyline).Paths)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myQueryPolyline.Rings.Add(path)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. If it's a polygon layer, you can use the same approach as #2, however you might have to simplify the feature first using the GeometryService if these polygons overlap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 16:29:41 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2012-05-14T16:29:41Z</dc:date>
    <item>
      <title>Spatial query by multiple features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-by-multiple-features/m-p/569971#M14670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This question may sound like very easy, however, I found difficulties in implementing it in SDK 2.4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Query1 on Layer1, returning several features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to run a SPATIAL QUERY (Query2) on another layer (say, Layer2), using the results of the query of Layer1. Let's say I want to select features from Layer2 which are contained by the results of Query1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want to iterate over the results of Query1. If it returns "n" features, this will result in "n" times execution of Query2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to assign (union, etc.) all the features to query.geometry parameter? In the past using topological operator, etc., we were performing a "Union" on all the features in the feature set. Is there a similar way in Silverlight SDK 2.4? If so, how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be highly appreciated. Many thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 11:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-by-multiple-features/m-p/569971#M14670</guid>
      <dc:creator>BarisUz</dc:creator>
      <dc:date>2012-05-11T11:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial query by multiple features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-by-multiple-features/m-p/569972#M14671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I understood right you want the union of Layer 1 results so you can query Layer 2 that intersect that geometry. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can look at the following SDK samples:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First, Query Layer 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AttributeQuery" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AttributeQuery&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Second, Call Union on Layer 1 query results&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Union" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Union&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Third, Perform Query on Layer 2 by using Union results as Query.Geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 16:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-by-multiple-features/m-p/569972#M14671</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-05-11T16:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial query by multiple features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-by-multiple-features/m-p/569973#M14672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If I understood right you want the union of Layer 1 results so you can query Layer 2 that intersect that geometry. &lt;BR /&gt;You can look at the following SDK samples:&lt;BR /&gt;First, Query Layer 1&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AttributeQuery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AttributeQuery&lt;/A&gt;&lt;BR /&gt;Second, Call Union on Layer 1 query results&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Union"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Union&lt;/A&gt;&lt;BR /&gt;Third, Perform Query on Layer 2 by using Union results as Query.Geometry.&lt;BR /&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;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, you got it. But the question is: don't we have another option instead of so-called "geometry server" on ArcGIS? We are working on shape files. Can we still use "geometry server" with shape files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much for your reply, indeed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 22:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-by-multiple-features/m-p/569973#M14672</guid>
      <dc:creator>BarisUz</dc:creator>
      <dc:date>2012-05-11T22:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial query by multiple features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-by-multiple-features/m-p/569974#M14673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. If layer1 is a point layer, you can create a MultiPoint feature with all the selected points in it, and use that for your query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. If it's a line layer, just create a new polyline with all the paths from the original polyline. Ie&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;foreach(var graphic in selectedGraphics)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; foreach(var path in (graphic.Geometry as Polyline).Paths)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myQueryPolyline.Rings.Add(path)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. If it's a polygon layer, you can use the same approach as #2, however you might have to simplify the feature first using the GeometryService if these polygons overlap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-by-multiple-features/m-p/569974#M14673</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2012-05-14T16:29:41Z</dc:date>
    </item>
  </channel>
</rss>

