Trying to automatically calculate geodesic length as an attribute Rule that triggers on creation?

1052
2
05-14-2020 02:26 PM
BryceBarth
New Contributor II

I am trying to set up an attribute Rule that will calculate the geodesic length of the polyline upon creation.  However I keep getting a message saying the projection is invalid.  The feature, dataframe and the Dataset in the GDb that it is reading from are all set to the exact same projection.  How can I do this?  Is it an issue with Arcade language? 

0 Kudos
2 Replies
XanderBakker
Esri Esteemed Contributor

Hi Bryce Barth 

If you look at the help of the function (Geometry Functions | ArcGIS for Developers ) you will see this:

Returns the geodetic length of the input geometry or FeatureSet in the given units. This is more reliable measurement of length than Length() because it takes into account the Earth's curvature. Support is limited to geometries with a Web Mercator (wkid 3857) or a WGS 84 (wkid 4326) spatial reference.

If you have a different coordinate system it will not work.

0 Kudos
DerekDay
New Contributor

Hello, I am having trouble using the Attribute Rule to calculate “LengthGeodetic” Feet in WGS84 (wkid 4326). It is saying Projection is Invalid. Any recommendations? 

Thank you!

0 Kudos