Select to view content in your preferred language

Get Length of feature from FeaturteServer layer

321
2
03-28-2024 05:35 AM
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
2 Replies
jcarlson
MVP Esteemed Contributor

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

- Josh Carlson
Kendall County GIS
0 Kudos
Vakhtang_Zubiashvili
Occasional Contributor III

Hi @jcarlson , thank you for answer, but it does not work 😞

0 Kudos