Select to view content in your preferred language

Attribute Rule for Having their Center in Layer

370
0
12-18-2023 12:32 AM
Labels (3)
HusamJubeh
Emerging Contributor

Hello all
I want to create an attribute rule so that feature values centered within source features are transferred.
I have a rule for intersecting features, but it is not useful because there are features located between more than one feature. Here, the intersection occurs as an error.
Please Help

Note: This is the intersection expression, I would like to modify it for the better

 

Spoiler

var GOV_NO = FeatureSetByName ($datastore, "GOV", ["GOV_NO"])
var Intersecting_feature = Intersects(GOV_NO, $feature)
var Out_str = null
for (var x in Intersecting_feature){
var GOV_NO_GOV_NO = DomainName(x, 'GOV_NO')
out_str += GOV_NO_GOV_NO}

return out_str

 

Tags (1)
0 Kudos
0 Replies