Select to view content in your preferred language

Arcade Pop-up: Better option than intersect to pull data from another layer

544
2
10-10-2024 02:04 PM
Labels (2)
ChrisMcGovern
Emerging Contributor

Hi All,

I'm using an arcade pop-up to pull existing and proposed zoning into a parcel layer. The zones are coming from a separate layer so i am using the "Intersects" arcade function to add this data into the parcels layer.

However I am returning multiple zone values for edge cases. Where a parcel is on the edge (similar to intersect in a select by location) I am getting a zones that do not reflect the correct zones. Any better way to use arcade ?

ChrisMcGovern_0-1728594084499.png

 

Arcade

ChrisMcGovern_1-1728594209789.png

 

 

0 Kudos
2 Replies
ChristopherCounsell
MVP Frequent Contributor

Use Intersection then iterate through the featureset to return the largest value i.e. the greatest level of overlap.

Example here:

https://community.esri.com/t5/arcgis-online-questions/arcade-intersects-return-greatest-overlap-of/t...

0 Kudos
jcarlson
MVP Esteemed Contributor

We do this, and have seen this problem as well. Possible solutions:

  1. Use Intersects(points, Centroid($feature)) to grab only the zone that falls under the center of the parcel. Works great unless the parcel has a wonky shape.
  2. Use Intersects(points, Buffer($feature, -5)) to back off from the parcel edge a little.

You could actually do both, too. You can check the truth of Intersects($feature, Centroid($feature)) to see if you have a wonky shape, then use the negative buffer, but default to the centroid method for "normal" parcel shapes.

- Josh Carlson
Kendall County GIS
0 Kudos