<?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: Perform query based in existing map graphics in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274359#M25314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;your approach used the extent of map.graphics.graphics as query.geometry while mine merged map.graphics.graphics into one geometry and used that geometry as query.geometry.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, I understood that part, but I was wondering what's the best approach, and if the final result will be the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2011 10:19:13 GMT</pubDate>
    <dc:creator>TiagoRibeiro</dc:creator>
    <dc:date>2011-11-29T10:19:13Z</dc:date>
    <item>
      <title>Perform query based in existing map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274355#M25310</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;I'm trying to create a function that performs a query on the map based in the current map.graphics. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an easy way to add map.graphics to the geometry parameter, besides going trough the map.graphics.graphics array to find the extents?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:41:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274355#M25310</guid>
      <dc:creator>TiagoRibeiro</dc:creator>
      <dc:date>2011-11-28T15:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Perform query based in existing map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274356#M25311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I'm trying to create a function that performs a query on the map based in the current map.graphics. &lt;BR /&gt;Is there an easy way to add map.graphics to the geometry parameter, besides going trough the map.graphics.graphics array to find the extents?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
geometries = esri.getGeometries(map.graphics);
geometryService.union(geometries, function(geometry){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry =geometry;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
});

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:23:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274356#M25311</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-11T13:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Perform query based in existing map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274357#M25312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
geometries = esri.getGeometries(map.graphics);
geometryService.union(geometries, function(geometry){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry =geometry;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
});

&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response, but I accomplished the some thing (I think) using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;esri.graphicsExtent(map.graphics.graphics)&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to work fine, but can you tell me the difference between this solutions and yours?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274357#M25312</guid>
      <dc:creator>TiagoRibeiro</dc:creator>
      <dc:date>2021-12-11T13:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Perform query based in existing map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274358#M25313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for your response, but I accomplished the some thing (I think) using:&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;esri.graphicsExtent(map.graphics.graphics)&lt;/PRE&gt;&lt;BR /&gt;It seems to work fine, but can you tell me the difference between this solutions and yours?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;your approach used the extent of map.graphics.graphics as query.geometry while mine merged map.graphics.graphics into one geometry and used that geometry as query.geometry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 17:20:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274358#M25313</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-11-28T17:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Perform query based in existing map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274359#M25314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;your approach used the extent of map.graphics.graphics as query.geometry while mine merged map.graphics.graphics into one geometry and used that geometry as query.geometry.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, I understood that part, but I was wondering what's the best approach, and if the final result will be the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 10:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274359#M25314</guid>
      <dc:creator>TiagoRibeiro</dc:creator>
      <dc:date>2011-11-29T10:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Perform query based in existing map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274360#M25315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ok, I understood that part, but I was wondering what's the best approach, and if the final result will be the same.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result may or may not be the same. For example a point which may be within the extend of a polygon may actually outside that polygon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 13:58:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274360#M25315</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-11-29T13:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Perform query based in existing map graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274361#M25316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The result may or may not be the same. For example a point which may be within the extend of a polygon may actually outside that polygon.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That's what I thought. As I see it for better performance use the extents, because you don't need the geometry service, and for accuracy use the join (right?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, is there a way to perform geometry operations (buffer, intersects, joins, etc) on the client side, without using the geometry services?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 14:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/perform-query-based-in-existing-map-graphics/m-p/274361#M25316</guid>
      <dc:creator>TiagoRibeiro</dc:creator>
      <dc:date>2011-11-29T14:13:25Z</dc:date>
    </item>
  </channel>
</rss>

