<?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: SPATIAL_REL_CONTAINS or SPATIAL_REL_INTERSECTS in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-rel-contains-or-spatial-rel-intersects/m-p/40077#M3438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What threw me in the description of the SPATIAL_REL_CONTAINS, it says "&lt;STRONG&gt;Part or&lt;/STRONG&gt; all of a feature from feature class 1...".&amp;nbsp; So I just ended up using the intersects relationship and just adding a negative buffer of a foot to the geometry I was using.&amp;nbsp; It seems to work ok now.&amp;nbsp; Thanks for clearing that up for me though, Robert.&amp;nbsp; I think ESRI needs to update the description of SPATIAL_REL_CONTAINS.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 May 2019 18:30:46 GMT</pubDate>
    <dc:creator>DeanWilson</dc:creator>
    <dc:date>2019-05-23T18:30:46Z</dc:date>
    <item>
      <title>SPATIAL_REL_CONTAINS or SPATIAL_REL_INTERSECTS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-rel-contains-or-spatial-rel-intersects/m-p/40075#M3436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning!&lt;/P&gt;&lt;P&gt;I'm trying to get this spatial query right, and as per the subject above, whats the difference between&amp;nbsp;SPATIAL_REL_CONTAINS or SPATIAL_REL_INTERSECTS?&amp;nbsp; If spatial_rel_contains is for one polygon that's completely contained in another polygon, why does the description read "&lt;SPAN style="color: #595959; background-color: #fafafa;"&gt;Part or all of a feature from feature class 1 is contained within a feature from feature class 2." ? Here's why I ask this....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #fafafa;"&gt;I have a parcel geometry.&amp;nbsp; I'm trying to find out what survey area its in using the survey area geometry.&amp;nbsp; Well, when I use intersects, I'm getting 4 different survey areas.&amp;nbsp; It should only be showing one survey area that its in.&amp;nbsp; Here's the rub.&amp;nbsp; When I use contains instead of intersects, it doesn't find ANY SURVEY AREAS.&amp;nbsp; Isn't contains supposed to be able to allow for partial contains?&amp;nbsp; Here's how I'm putting my function together (I know I have the contains commented out.&amp;nbsp; So right now its using intersects and not contains):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #dcdcaa;"&gt;_fetchVMSData&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;let&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;vmsQuery&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;Query&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;vmsQuery&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;features&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;].&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;//vmsQuery.spatialRelationship = Query.SPATIAL_REL_CONTAINS;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;vmsQuery&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;outFields&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"VMS"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"SEC_NUM"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"TOWNSHIP"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"RANGE"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;&amp;nbsp; &amp;nbsp; let&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;vmsQueryTask&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;QueryTask&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"https:// service where the survey geometries are"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;vmsQueryTask&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;execute&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;vmsQuery&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 14:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-rel-contains-or-spatial-rel-intersects/m-p/40075#M3436</guid>
      <dc:creator>DeanWilson</dc:creator>
      <dc:date>2019-05-23T14:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL_REL_CONTAINS or SPATIAL_REL_INTERSECTS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-rel-contains-or-spatial-rel-intersects/m-p/40076#M3437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;They are pretty much what their title suggests.&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;SPATIAL_REL_CONTAINS means the whole feature has to be contained inside of other geometry where as&amp;nbsp;&lt;SPAN&gt;SPATIAL_REL_INTERSECTS means any portion of the geometry can intersect (touch) the other geometry.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 14:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-rel-contains-or-spatial-rel-intersects/m-p/40076#M3437</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-23T14:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL_REL_CONTAINS or SPATIAL_REL_INTERSECTS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-rel-contains-or-spatial-rel-intersects/m-p/40077#M3438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What threw me in the description of the SPATIAL_REL_CONTAINS, it says "&lt;STRONG&gt;Part or&lt;/STRONG&gt; all of a feature from feature class 1...".&amp;nbsp; So I just ended up using the intersects relationship and just adding a negative buffer of a foot to the geometry I was using.&amp;nbsp; It seems to work ok now.&amp;nbsp; Thanks for clearing that up for me though, Robert.&amp;nbsp; I think ESRI needs to update the description of SPATIAL_REL_CONTAINS.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 18:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-rel-contains-or-spatial-rel-intersects/m-p/40077#M3438</guid>
      <dc:creator>DeanWilson</dc:creator>
      <dc:date>2019-05-23T18:30:46Z</dc:date>
    </item>
  </channel>
</rss>

