Hi,
I have a constraint rule on a point layer (hypernode) which is supposed to stay on a polygon layer (site_manoeuvre) :
//get the feature geometry
var g1 = Geometry($feature)
//get the object id
var siteMan = $feature.s_site_man
//get the entire class
var fsSiteMan_mv = FeatureSetByName($datastore, "dma_test.dma_owner.site_manoeuvre_mv", ['s_historic'], true)
//get the feature joined to the hypernode
var Poly = Filter(fsSiteMan_mv, "s_historic = @siteMan")
var touche = Touches(g1, Geometry(f))
return count(touche) == 1
My rule run pretty well but when I try to move my polygon with the point together, it returns false.
I suppose it is because "FeatureSetByName" took the "old" geometry of the polygon.
Can somebody have an idea on what I can do?
@HusseinNasser2