<?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 with multi Polygons as geometry input in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563399#M52583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to use multiple features as the geometry for an identify task, I would send them off to a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#union"&gt;geometry service's union operation&lt;/A&gt;&lt;SPAN&gt; and use the result of that as your identifyParameters.geometry parameter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2012 20:23:56 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-05-11T20:23:56Z</dc:date>
    <item>
      <title>IdentifyTask with multi Polygons as geometry input</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563397#M52581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As title really - I am trying to run an automated search.&amp;nbsp; An input ref is passed to the map service - this finds existing features.&amp;nbsp; It adds these as graphic layers using Find Task.&amp;nbsp; If only one feature is found, this is passed to a Identify Task that searches loads of other layers.&amp;nbsp; This all works for a single polygon, but not for multi polygons - The features in the original layer (the one that gets searched with the Find Task) are NOT multi polygon features polygons, but multiple records with the same reference (not my design - I'm hacking into another system)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 14:03:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563397#M52581</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2012-05-11T14:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask with multi Polygons as geometry input</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563398#M52582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can do this by calling multiple IdentifyTasks. Here's one workflow you may follow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create an IdentifyTask that performs the identify for one geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. After the results are returned, store the results in a global variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Within the same result event, call the second IdentifyTask&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. In the results for the second IdentifyTask, store the results into the same global variable as the first IdentifyTask&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Repeat this as many times as you want&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you've completed all the IdentifyTasks, loop through all the results in the global variable. You should now have all the results from all the IdentifyTasks that you ran.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 20:15:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563398#M52582</guid>
      <dc:creator>ThaoLe</dc:creator>
      <dc:date>2012-05-11T20:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask with multi Polygons as geometry input</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563399#M52583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to use multiple features as the geometry for an identify task, I would send them off to a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#union"&gt;geometry service's union operation&lt;/A&gt;&lt;SPAN&gt; and use the result of that as your identifyParameters.geometry parameter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 20:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563399#M52583</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-05-11T20:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask with multi Polygons as geometry input</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563400#M52584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you want to use multiple features as the geometry for an identify task, I would send them off to a &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#union"&gt;geometry service's union operation&lt;/A&gt; and use the result of that as your identifyParameters.geometry parameter.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is an even better idea!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 20:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563400#M52584</guid>
      <dc:creator>ThaoLe</dc:creator>
      <dc:date>2012-05-11T20:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask with multi Polygons as geometry input</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563401#M52585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for that - after posting I had a quick go at the loop/multiple Id tasks and it did what I wanted without too much hacking of the code.&amp;nbsp; I need to include a bit of logic to exclude duplicate answers - I'll remember the other way for next time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 06:33:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-multi-polygons-as-geometry-input/m-p/563401#M52585</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2012-05-12T06:33:26Z</dc:date>
    </item>
  </channel>
</rss>

