I have two layers, zoning and plans, and where the polygons intersect I need to copy the SAP_NAME value from plans and paste it into the zoning field plan_names. I have found some posts that are similar, but when I try to code the arcade it says valid but never shows any intersection. The two layers are in the same coordinate system and they definitely intersect. Understand that I am using Field Calculate so I am not specifying in code the values need to go into zoning.plan_names because it's already specified in the tool Some of the variations in code I have used are as follows:
var plan= FeatureSetByName($datastore, "county_editors.GISL.Plan")
var intersect= Intersects(plan,$feature)
for (var i in intersect){
if(i==true){plan.SAP_Name}
}
var zoning=FeatureSetByName($datastore, "county_editors.GISL.Zoning")
var geom_zoning= Geometry(zoning)
var plan= FeatureSetByName($datastore, "county_editors.GISL.Plan")
var geom_plan= Geometry(plan)
IIf(Intersects(geom_zoning, geom_plan), plan.SAP_NAME,'')
None of these appear to show any intersection between the layers when there definitely is. Thank you for any help you can provide.
Cheers,
Dale Jackan