<?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: Issue with Spatial Query Intersects Operation in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-spatial-query-intersects-operation/m-p/29792#M2487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This really sounds like a coordinate / projection system issue. If you want to do this kind of operation, you need to be careful with setting the right kind of projection system on the ArcGIS Data Frame, especially with such small scale "world" type maps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although you may think that the shapes visible in your figure do not intersect, they may do if viewed on a sphere, especially if your line has only a begin- and endpoint, and no vertices inbetween to define it's shape.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend you to start reading about coordinate systems in the ArcGIS Help. A good starting point is the link below, and the other Help pages it references:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/What_are_map_projections/003r00000001000000/" rel="nofollow" target="_blank"&gt;What are map projections?&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2013 10:57:39 GMT</pubDate>
    <dc:creator>MarcoBoeringa</dc:creator>
    <dc:date>2013-01-02T10:57:39Z</dc:date>
    <item>
      <title>Issue with Spatial Query Intersects Operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-spatial-query-intersects-operation/m-p/29791#M2486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I a m trying to select polygon intersecting the line using spatial query intersect operation. At world extent, when I try this operation polygons which are actually not intersected are getting selected(screenshot attached).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20361[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional Information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Base map spatial reference: 102100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Polygon feature Layer: 102100&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var query = new esri.tasks.Query(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = fields; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry = lineGeometry; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = true; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outSpatialReference = map.spatialReference; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.spatialReference = map.spatialReference; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.spatialRelationship = esri.tasks.Query.SPATIAL_REL_INTERSECTS; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var queryTask = new esri.tasks.QueryTask(layerURL); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.execute(query, dojo.hitch(this, function (result) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //select results on map. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //At present in the image I have highlighted only one result&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 09:58:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-spatial-query-intersects-operation/m-p/29791#M2486</guid>
      <dc:creator>Sai_PhaneendraPoludasu</dc:creator>
      <dc:date>2013-01-02T09:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Spatial Query Intersects Operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-spatial-query-intersects-operation/m-p/29792#M2487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This really sounds like a coordinate / projection system issue. If you want to do this kind of operation, you need to be careful with setting the right kind of projection system on the ArcGIS Data Frame, especially with such small scale "world" type maps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although you may think that the shapes visible in your figure do not intersect, they may do if viewed on a sphere, especially if your line has only a begin- and endpoint, and no vertices inbetween to define it's shape.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend you to start reading about coordinate systems in the ArcGIS Help. A good starting point is the link below, and the other Help pages it references:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/What_are_map_projections/003r00000001000000/" rel="nofollow" target="_blank"&gt;What are map projections?&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 10:57:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-spatial-query-intersects-operation/m-p/29792#M2487</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2013-01-02T10:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Spatial Query Intersects Operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-spatial-query-intersects-operation/m-p/29793#M2488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your help. That makes sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 12:22:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-spatial-query-intersects-operation/m-p/29793#M2488</guid>
      <dc:creator>Sai_PhaneendraPoludasu</dc:creator>
      <dc:date>2013-01-02T12:22:13Z</dc:date>
    </item>
  </channel>
</rss>

