
This attribute rule used to work just fine until now. It uses arcade to intersect two polygon layers and calculate the intersecting areas based on a category field. Here is the attribute rule:
var buff = Buffer($feature,-0.001,'feet')
var intersectsLayer = Intersects(FeatureSetByName($datastore, "PER_NOTIOY_AIGAIOY"),buff)
var intcount = Count(intersectsLayer)
var expr = ' '
if(intcount == 0){
expr = 'εκτός αναρτησης'
}
else{
var das_list = ''
for (var f in intersectsLayer){
expr += f.KATHGORDX + " " + Round(area(Intersection($feature,f)),2) + " τ.μ. "
}
}
return