<?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: How to define a Shape Comparison Language ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-define-a-shape-comparison-language/m-p/119952#M11166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bump, I had this same question.&amp;nbsp; Has anyone done this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 13:32:40 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-10-28T13:32:40Z</dc:date>
    <item>
      <title>How to define a Shape Comparison Language ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-define-a-shape-comparison-language/m-p/119951#M11165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a feature layer with polygons. And I create a spatial query task to query the polygon which contains the point clicked by the user on the map (similar as identify). In this case, I can specify the spatial relation as SPATIAL_REL_INTERSECTS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now instead of querying the polygon contains the clicked point, I want to query all the rest polygons(the polygons do not contains the point). I think I might need to use Shape Comparison Language to specify a new type of spatial relation, just a point to polygon relation opposite to SPATIAL_REL_INTERSECTS. I know I should start with SPATIAL_REL_RELATION, but I have no idea the following steps. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Anyone can help me? Or is there any other possible solutions to that problem? Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 05:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-define-a-shape-comparison-language/m-p/119951#M11165</guid>
      <dc:creator>HaoHu</dc:creator>
      <dc:date>2012-12-03T05:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to define a Shape Comparison Language ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-define-a-shape-comparison-language/m-p/119952#M11166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bump, I had this same question.&amp;nbsp; Has anyone done this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 13:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-define-a-shape-comparison-language/m-p/119952#M11166</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-10-28T13:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to define a Shape Comparison Language ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-define-a-shape-comparison-language/m-p/119953#M11167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately I don't have any actual code to share but here's an idea-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Query the polygons for the one poly that does intersect your point feature. Take note of the polygon's OBJECTID&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Select all polygons using a "1=1" query.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Construct an array of OBJECTIDs for all polygons.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Remove the OBJECTID from the array for the polygon that did overlap the point feature&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Reselect the polygons based on the array of OBJECTIDs&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;That should get you what you want. I think. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[EDIT: this might make it easier. Once you have the overlapping polygon's OBJECTID, re-query the polygons for "OBJECTID &amp;lt;&amp;gt; (overlapping polygon OBJECTID)"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 14:19:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-define-a-shape-comparison-language/m-p/119953#M11167</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-10-28T14:19:50Z</dc:date>
    </item>
  </channel>
</rss>

