Rotate lines using arcade expression in Calculate Field tool

338
0
12-17-2021 03:36 AM
AGP
by
Occasional Contributor

I thought this would be pretty simple using arcade but I'm getting an error when calculating a selection of features and it simple makes geometries to disappear when executing it for all features (the Shape_Length attribute gets value 0).

The error is: 160107: Unable to update area or length field in response to shape update.

Is there anything missing in this arcade expression?

var paths = geometry($feature).paths;
var first_point = paths[0][0];
return Rotate($feature, 180, first_point)

 

 

0 Kudos
0 Replies