<?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: Geometry functions not working. in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/geometry-functions-not-working/m-p/1508075#M13815</link>
    <description>&lt;P&gt;Maybe try defining variables first? You'll find some code samples here, one of them being for Intersect:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/from-the-smart-editor-to-smart-forms/#Intersection" target="_blank"&gt;From the Smart Editor to Smart Forms (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2024 16:37:16 GMT</pubDate>
    <dc:creator>AlixVezina</dc:creator>
    <dc:date>2024-07-22T16:37:16Z</dc:date>
    <item>
      <title>Geometry functions not working.</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/geometry-functions-not-working/m-p/1506244#M13766</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I am trying to use Arcade to check if an address point falls within various types of zoning polygons and if so, display some info about said polygons in its popup. The issue I am having is that functions like Intersects(), Within(), and Contains() do not seem to recognize the spatial relationship between points that are obviously intersecting, within, or contained by the zoning polygons. Its not every layer either, which is confusing me. Below is a sample of the code I am using for to both check and display the desired information:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Intersects&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;First&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$map&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Historic &amp;amp; Design Review Areas"&lt;/SPAN&gt;&lt;SPAN&gt;)), &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;)){&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;First&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Intersects&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$map&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Historic &amp;amp; Design Review Areas"&lt;/SPAN&gt;&lt;SPAN&gt;)))[&lt;/SPAN&gt;&lt;SPAN&gt;"DISTRICT_NAME"&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;'None'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I have read around the board and has seen multiple reports of these types of functions not functioning since the last update.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;My questions are:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;1) Could this be a result of the update?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;2) Are there certain configurations of layers that do not work well with geometry functions that would cause these functions to return false 100% of the time?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;3) Is there a better way to approach checking the spatial relationship of a point and a polygon?&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Jul 2024 17:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/geometry-functions-not-working/m-p/1506244#M13766</guid>
      <dc:creator>ClintHewlett</dc:creator>
      <dc:date>2024-07-17T17:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry functions not working.</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/geometry-functions-not-working/m-p/1508075#M13815</link>
      <description>&lt;P&gt;Maybe try defining variables first? You'll find some code samples here, one of them being for Intersect:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/from-the-smart-editor-to-smart-forms/#Intersection" target="_blank"&gt;From the Smart Editor to Smart Forms (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 16:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/geometry-functions-not-working/m-p/1508075#M13815</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2024-07-22T16:37:16Z</dc:date>
    </item>
  </channel>
</rss>

