<?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: Attribute Rule for Point Intersecting Polygon Has Inconsistent Results in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-for-point-intersecting-polygon-has/m-p/1488879#M84430</link>
    <description>&lt;P&gt;I've only used intersect in a few instances, but I know the help docs indicate there is a scale dependency that will impact your results, have you looked at that as a possible culprit?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 13:52:34 GMT</pubDate>
    <dc:creator>clt_cabq</dc:creator>
    <dc:date>2024-06-11T13:52:34Z</dc:date>
    <item>
      <title>Attribute Rule for Point Intersecting Polygon Has Inconsistent Results</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-for-point-intersecting-polygon-has/m-p/1488536#M84407</link>
      <description>&lt;P&gt;Using ArcGIS Pro 3.2.2, Arc GIS Server&amp;nbsp;Version: 11.1.0 (build 42869)&lt;/P&gt;&lt;P&gt;My Attribute Rule is set up to populate a Fire Hydrant's 'locationdetails' attribute with the appropriate Fire District domain code upon Editing or Updating.&lt;/P&gt;&lt;P&gt;Here is my Attribute Rule expression:&lt;/P&gt;&lt;P&gt;// Intersect Fire Hydrant with Fire District to calculate 'locationdetails'&lt;/P&gt;&lt;P&gt;var fsFire = FeatureSetByName($datastore, "gis.un.FireDistrict", ["district"], false);&lt;BR /&gt;var fsIntersectFire = Intersects(fsFire, $feature);&lt;BR /&gt;var cnt = Count(fsIntersectFire);&lt;/P&gt;&lt;P&gt;if (cnt &amp;gt; 0) {&lt;BR /&gt;var fFire = First(fsIntersectFire);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if (fFire == null || IsEmpty(fFire)) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;return 0; // No intersection, return 0 for 'Unknown'&lt;BR /&gt;&amp;nbsp; &amp;nbsp;} else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;var districtName = Trim(fFire["district"]);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;// Nested if statements to check district values&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if (districtName == "El Cajon") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (districtName == "La Mesa") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 2;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (districtName == "Lakeside") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 3;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (districtName == "Lemon Grove") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 4;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (districtName == "San Diego") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 5;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (districtName == "San Miguel") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 6;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The Attribute Rule works 100% of the time when I place or move a Fire Hydrant within a San Miguel polygon.&amp;nbsp; It always returns "Unknown" (0 code) for Lemon Grove, El Cajon, La Mesa, and Lakeside.&amp;nbsp; For San Diego, I noticed some strange behavior where it works in one part of the polygon, but consistently returns "Unknown" (0 code) in another.&amp;nbsp; In the screenshot below, anywhere to the right of the dark black line (used for illustration only - not part of the Fire District polygon geometry) inside the San Diego Fire District returns "Unknown" in the 'locationdetails' attribute.&amp;nbsp; Anywhere to the left of the black line returns "San Diego".&amp;nbsp; If I move the point from left to right of the black line area (or vice versa) the 'locationsdetails' attribute value changes from "San Diego" to "Unknown" or vice versa.&lt;/P&gt;&lt;P&gt;My question has two parts.&amp;nbsp; Does my code seem correct?&amp;nbsp; What could explain the odd behavior with the San Diego polygon intersection?&lt;/P&gt;&lt;P&gt;I've tested these features in a file geodatabase and everything works fine.&amp;nbsp; I thought perhaps it could be corrupt polygon geometry, but even after repairing the geometry, it behaves this way in the Enterprise Database.&lt;/P&gt;&lt;P&gt;Could it be that Arcade has difficulty interpreting the intersection between an Enterprise Geodatabase Feature Class (Fire District polygon) and a published Feature Service Feature Class (Fire Hydrant point)?&amp;nbsp; Or, the other possibility being that the polygon feature class does not have ZM values but the point feature class does?&amp;nbsp; Both have the same coordinate system using same Datum.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SH_HD_2-1718054881290.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106690iFF806054CCC491A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SH_HD_2-1718054881290.png" alt="SH_HD_2-1718054881290.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SH_HD_1-1718054740704.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106689iBD8427CB129C1967/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SH_HD_1-1718054740704.png" alt="SH_HD_1-1718054740704.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Domain values:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SH_HD_3-1718054913914.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106691iC0C7B6B6E8C2EBBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SH_HD_3-1718054913914.png" alt="SH_HD_3-1718054913914.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SH_HD_4-1718054937384.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106692iABA7C7423EF68007/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SH_HD_4-1718054937384.png" alt="SH_HD_4-1718054937384.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hydrants labeled with their 'locationdetails' value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SH_HD_5-1718054962216.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106693i4D4DEB3D418D70ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SH_HD_5-1718054962216.png" alt="SH_HD_5-1718054962216.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SH_HD_6-1718055152877.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106694iA33A779B9977976A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SH_HD_6-1718055152877.png" alt="SH_HD_6-1718055152877.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help or troubleshooting thoughts you can provide!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 21:34:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-for-point-intersecting-polygon-has/m-p/1488536#M84407</guid>
      <dc:creator>SH_HD</dc:creator>
      <dc:date>2024-06-10T21:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule for Point Intersecting Polygon Has Inconsistent Results</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-for-point-intersecting-polygon-has/m-p/1488879#M84430</link>
      <description>&lt;P&gt;I've only used intersect in a few instances, but I know the help docs indicate there is a scale dependency that will impact your results, have you looked at that as a possible culprit?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 13:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-for-point-intersecting-polygon-has/m-p/1488879#M84430</guid>
      <dc:creator>clt_cabq</dc:creator>
      <dc:date>2024-06-11T13:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule for Point Intersecting Polygon Has Inconsistent Results</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-for-point-intersecting-polygon-has/m-p/1488925#M84440</link>
      <description>&lt;P&gt;Thank you for that suggestion.&amp;nbsp; I'll check into it and do some testing with my data.&amp;nbsp; I don't have any scale dependencies set in my map in ArcGIS Pro, but it's worth exploring for sure.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 15:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-for-point-intersecting-polygon-has/m-p/1488925#M84440</guid>
      <dc:creator>SH_HD</dc:creator>
      <dc:date>2024-06-11T15:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule for Point Intersecting Polygon Has Inconsistent Results</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-for-point-intersecting-polygon-has/m-p/1556314#M89882</link>
      <description>&lt;P&gt;Did you ever come to any resolution on this?&amp;nbsp; I'm curious if referencing the domain codes in the script vs the description makes any difference in your results.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 15:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-for-point-intersecting-polygon-has/m-p/1556314#M89882</guid>
      <dc:creator>ClaytonSedberry</dc:creator>
      <dc:date>2024-11-07T15:24:06Z</dc:date>
    </item>
  </channel>
</rss>

