<?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 Spatial relationship on the client side in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-relationship-on-the-client-side/m-p/256456#M23806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am fairly new to ArcGis and js api.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this following query;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have around 100-200 point objects which are displayed on the map in feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is query all these points against 2-3 layers (ArcGis 9.3.1). which effectively means I have to fire 100 query tasks to find the relationships of every point with the layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In turn, I am thinking I can create a Bounding Box around the points,(polygon) and query it against the layers, to get the geometry of all features across the layers which lie in the boundingbox, So I have to fire only one query on the server. And,&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Try to find the spatialrelationship between the points and the recieved features on the client side itself&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to ask if there is a way to run spatial queries against the javascript objects and not go to the server with a query task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also if you can suggest a better solution for my problem, that will be great too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help and support is highy appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2012 01:24:28 GMT</pubDate>
    <dc:creator>ApratimDas1</dc:creator>
    <dc:date>2012-04-05T01:24:28Z</dc:date>
    <item>
      <title>Spatial relationship on the client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-relationship-on-the-client-side/m-p/256456#M23806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am fairly new to ArcGis and js api.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this following query;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have around 100-200 point objects which are displayed on the map in feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is query all these points against 2-3 layers (ArcGis 9.3.1). which effectively means I have to fire 100 query tasks to find the relationships of every point with the layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In turn, I am thinking I can create a Bounding Box around the points,(polygon) and query it against the layers, to get the geometry of all features across the layers which lie in the boundingbox, So I have to fire only one query on the server. And,&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Try to find the spatialrelationship between the points and the recieved features on the client side itself&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to ask if there is a way to run spatial queries against the javascript objects and not go to the server with a query task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also if you can suggest a better solution for my problem, that will be great too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help and support is highy appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 01:24:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-relationship-on-the-client-side/m-p/256456#M23806</guid>
      <dc:creator>ApratimDas1</dc:creator>
      <dc:date>2012-04-05T01:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial relationship on the client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-relationship-on-the-client-side/m-p/256457#M23807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can do point in polygon queries client side:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/polygon.htm#contains"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/polygon.htm#contains&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 14:55:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-relationship-on-the-client-side/m-p/256457#M23807</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-05T14:55:03Z</dc:date>
    </item>
  </channel>
</rss>

