Select to view content in your preferred language

Rotate lines using arcade expression in Calculate Field tool

468
0
12-17-2021 03:36 AM
AGP
by
Regular 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