Get Length of feature from FeaturteServer layer

185
1
a month ago
Vakhtang_Zubiashvili
Occasional Contributor III

Hi guyz,

 

I am trying to set feature length as label on my map. From MapServer i can get it using $feature.Shape_length, but from FeatureServer it does not work, i tried to use Length($feature, 'meters') but it returns wrong data, any idea how to do?

 

Kind regards.

0 Kudos
1 Reply
jcarlson
MVP Esteemed Contributor

What about LengthGeodetic? https://developers.arcgis.com/arcade/function-reference/geometry_functions/#lengthgeodetic

- Josh Carlson
Kendall County GIS
0 Kudos