<?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: Arcade Intersect Expression returning wrong values in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338626#M55112</link>
    <description>&lt;P&gt;Does that parcel overlap multiple zones, one of which is A-1?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 14:42:00 GMT</pubDate>
    <dc:creator>MobiusSnake</dc:creator>
    <dc:date>2023-10-17T14:42:00Z</dc:date>
    <item>
      <title>Arcade Intersect Expression returning wrong values</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338613#M55109</link>
      <description>&lt;P&gt;The ArcGIS Arcade intersect expression in this &lt;A href="https://lacounty.maps.arcgis.com/apps/webappviewer/index.html?id=7700eea9d54d46b18efb615f86cba25c" target="_self"&gt;web map&lt;/A&gt; does not work all the time. It picks up nearby values instead of the correct value in certain cases. For instance, if I search for parcel&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;7345003005 and then click the area directly above it, the Zone is supposed to be SP but is returning A-1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrandonPrice1_0-1697552277854.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83224i1A3FAA9A70746C00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrandonPrice1_0-1697552277854.png" alt="BrandonPrice1_0-1697552277854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the snippet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var zoning = FeatureSetByName($datastore,"Zoning");
var zone = First(Intersects(zoning, $feature));
return zone["ZONE"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other threads said the reason is because using "First" returns the first value of the array so what would be a way to resolve it?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 14:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338613#M55109</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-10-17T14:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Intersect Expression returning wrong values</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338626#M55112</link>
      <description>&lt;P&gt;Does that parcel overlap multiple zones, one of which is A-1?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 14:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338626#M55112</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2023-10-17T14:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Intersect Expression returning wrong values</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338648#M55114</link>
      <description>&lt;P&gt;If you click outside the parcel, you're not going to get the results for parcel &lt;SPAN&gt;&lt;SPAN class=""&gt;7345003005, but for another parcel. If you click the arrow at the top of the popup to show the Parcel Boundary information, which parcel does it show?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;One other thing to be aware of is that if you click very close to the border between two parcels, you'll probably get back results from both parcels. This is due to the click tolerance in AGOL, which will return all features within a certain radius of where you clicked. While this is good for returning results for point and line features, since you don't have to be exactly over the feature, it may return more results than you want for polygon features.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 15:26:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338648#M55114</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-17T15:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Intersect Expression returning wrong values</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338713#M55116</link>
      <description>&lt;P&gt;Hi Mobius,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was no overlap. I checked the layer the service was published from in ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 16:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338713#M55116</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-10-17T16:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Intersect Expression returning wrong values</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338717#M55117</link>
      <description>&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not trying to get the results for that parcel. It was just a reference parcel to get to the location in question quicker. I am clicking right in the middle of the feature (not on the sides) and it's returning the wrong result. Is there a workaround or solution to catch these errors?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 16:34:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338717#M55117</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-10-17T16:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Intersect Expression returning wrong values</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338737#M55120</link>
      <description>&lt;P&gt;There is something strange happening with your data. When I click on the stream bed between the houses, it does show as a long thin A-1 zone.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zone.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83264i15BBB3F1F8F9A03D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zone.png" alt="zone.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, if I load the Zoning service layer into ArcGIS Pro, I don't see that same polygon&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zone1.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83267i39CEF43876EF908E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zone1.png" alt="zone1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also notice some oddities in the zoning polygons in the area bounded by S Vermont, W 214, W Carson, and I-110. The online map is highlighting different zoning polygons than what shows. You can see an A-1 polygon in the top image that doesn't appear in Pro&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 17:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1338737#M55120</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-17T17:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Intersect Expression returning wrong values</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1339600#M55185</link>
      <description>&lt;P&gt;Hi Ken. That is because we have some trickery going on. The layer being clicked in the web map is not the zoning layer. It is a hidden layer called zoning SP (Specific Plan). The trickery only happens in zoning areas where the labels show as "SP". The second screenshot you provided is of a feature in the zoning layer. It has a zone of SP, but when intersected with the overlapping feature in the zoning SP (Specific Plan) layer, the intersect was returning a zone of A-1. This kept happening even though the zoning SP (Specific Plan) feature was fully contained zoning feature.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 15:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1339600#M55185</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-10-19T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Intersect Expression returning wrong values</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1339603#M55186</link>
      <description>&lt;P&gt;My co-worker suggested to add a negative buffer on the intersected layer which seems to return the right zone now. I've seen this workaround solution on a thread before, but couldn't find it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var intersectLayer = Intersects(FeatureSetByName($datastore,"Zoning"), Buffer($feature, -30, "feet"));
var intersect = First(intersectLayer)
return intersect["ZONE"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 16:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersect-expression-returning-wrong-values/m-p/1339603#M55186</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-10-19T16:30:31Z</dc:date>
    </item>
  </channel>
</rss>

