Select to view content in your preferred language

Calculating and displaying feature intersections - which approach?

760
1
01-31-2024 04:29 PM
ChrisH2
Frequent Contributor

I'm in the process of working through a migration of a previous WAB POC to ExB. In WAB we were using this approach to calculate the percentage intersection of two map layers and displaying the result in a popup. For example, I want to know the percentage overlap of my "project area" polygon against specific attributes of the  "treatment benefit" polygon (e.g. benefit = high value)

Testing has shown that this is possible via Arcade, however our full use case is to allow the user to specify one of 20 different weed "benefit" layers to be used in the calculation.

In ExB I'm struggling to determine an approach/widget where I could leverage Arcade to accomplish this.  Conceptually this is what I'm hoping the user would see, with an understanding of the % overlap being goal, and the presentation being flexible:

Capture9.JPG

User workflow would be to:

  1. select an individual polygon from the project area layer
  2. Choose which weed they are treating (and thus individual the "treatment benefit" layer that we will use in the calculation)
  3. View the percentage overlap

A variation of the above is when the user is creating a new record via the edit widget, and they'd want some timely indication of the overlap so that they can adjust the geometry to reach the target of 90% overlap

For performance reasons this tool would ideally only work on a selected set of records

I'm hoping that maybe dynamic text in an on-map text widget may work but I'm not sure if this is the best approach. 

I looked at charts but couldn't see how the series could be based on the results of calculations between two layers.

 

 

 

0 Kudos
1 Reply
Wei_Ying
Esri Regular Contributor

Hi @ChrisH2 

Arcade has not been supported in Experience Builder. 
But you may try Analysis widget as a workaround, there are some tools you may consider. However I don't believe there is a standard tool that can achieve exactly what you want. Then you may want to try design a custom tool to calculate and display result.

Thanks,
Wei

0 Kudos