Symbolize points based on comparing attributes of overlapping polygon

617
2
Jump to solution
07-16-2021 12:18 PM
TroyGerhardt1
New Contributor III

I want to build a webmap with a point layer and polygon layer. Both layers have a common "zone" attribute. The point layer is collected from a mobile device using Survey123 and assigned a zone. But it's possible for the point to actually fall in a polygon with a different zone attribute. For example, roads or water features are often used as the boundaries of the polygons to separate zone A from zone B. The person collecting the point data might be standing in zone A while making an observation of animals that are in zone B, so the point gets an attribute of B but in the map is overlapped by polygon A.

In the map, if possible, I want to symbolize the points by comparing the zone attribute in the point layer with the zone attribute in the overlapping polygon feature. If they are the same, the point is symbolized one way; if they are different it is symbolized another way. 

The purpose of the map is to indicate to the reviewers which points need to be moved to better reflect the location of the observed animals. Once the point is moved so that it is inside the polygon with the same zone attribute, the symbology would reflect that.

Because of the way the data is collected in the field, spending time to adjust the point location while collecting is not a solution. Creating a new point layer so that both zone attributes are in the same layer for comparison is the way I have done this before, but it requires maintenance to keep performing intersects.

Thanks for any ideas. 

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

In short: you can't. At least, not without creating a new layer based on a spatial intersection. There's no way for the symbology profile to access attributes and geometry of other features, even in the same layer.

If the layers were both in an enterprise geodatabase, there might be a way to do this with a registered view layer, but if you're just using AGOL layers, you probably can't do that.

Now, you could do this with a popup, as the popup profile for Arcade supports inter-layer spatial functions.

Another approach is to develop a Notebook that routinely queries your layers and generates a list of features in the "other" zone, possibly even generate a map, and notifies you in some way, but you'd need to be comfortable with a bit of python.

- Josh Carlson
Kendall County GIS

View solution in original post

0 Kudos
2 Replies
jcarlson
MVP Esteemed Contributor

In short: you can't. At least, not without creating a new layer based on a spatial intersection. There's no way for the symbology profile to access attributes and geometry of other features, even in the same layer.

If the layers were both in an enterprise geodatabase, there might be a way to do this with a registered view layer, but if you're just using AGOL layers, you probably can't do that.

Now, you could do this with a popup, as the popup profile for Arcade supports inter-layer spatial functions.

Another approach is to develop a Notebook that routinely queries your layers and generates a list of features in the "other" zone, possibly even generate a map, and notifies you in some way, but you'd need to be comfortable with a bit of python.

- Josh Carlson
Kendall County GIS
0 Kudos
TroyGerhardt1
New Contributor III

Thanks  for the speedy reply, Josh 

0 Kudos