Hi all,
I'm trying to achieve a geometry update of a feature via a calculation attribute rule.
The attribute rule is triggered by the update event, and the goal is to update the geometry of the self feature querying a geometry from other feature class. The first step, that creates the new geometry works fine, but when I return the update operation, ArcGIS Server crashes. I think is some kind of recursively problem but i'm not sure.
Any body knows the way to achive this?
This is the arcade code:
var globalIdeq
var eq
var eqgeom
var bufferedGeometry
globalIdeq = $feature.id_baliza
eq = FeatureSetbyName($datastore, "vente.owner.balizas")
eqgeom = Filter(eq, "globalid = @globalIdeq")
for (var eqg in eqgeom) {
bufferedGeometry = buffer(Geometry(eqg),1000);
}
var update_features = [];
var results = {'result': 'manu'};
update_features[0] = {
'globalID': $feature.globalid ,
'geometry': bufferedGeometry
};
results['edit'] = [{
'className': 'vente.owner.incidencia_1',
'updates': update_features
}]
return results;
Thanks in advance
BR, Borja