Select to view content in your preferred language

Using Arcade to Return a list of layers for intersection

82
0
02-13-2025 08:44 PM
Labels (2)
LindsayRaabe_FPCWA
MVP Regular Contributor

Hi All. I've been attempting to create an Arcade code that would be used in a Field Maps field calculation. The idea is that the feature being created would intersect with features from a series of layers. The layers to intersect with would all start with the same text, but finish with sequential Australian financial years (e.g. Seeding 2021-2022, Seeding 2022-2023, Seeding 2023-2024...). Once the layers have been filtered (excluding map layers that don't start with that text), the features would be intersected, and the feature with the highest value would be returned as a value for recording in the field. 

The value at the end of the layer names is also recorded as an attribute in the layers under "SeedingSeason" field (e.g. 2022-2023). 

Does anyone know how to achieve this? I was working with Copilot, which returned a few options, but none of them worked. I suspect it was the listing and filtering of layers in the first instance it was struggling with (there are other layers in the map we don't want). 

Lindsay Raabe
GIS Officer
Forest Products Commission WA
0 Kudos
0 Replies