I am trying to figure out how to measure the distance within a polygon from edge to edge, or the longest side from north to south (including multiple segments that make that side up) of the polygon. I need to do this in Arcade. If anyone has approached this and point me in the right direction, I would appreciate it.
Solved! Go to Solution.
Did you put the units you want as the last option in the Distance (supposed to return map units, but I found that to not be the case. I had to specify feet)?
Also, is you data in a projected coordinate system? If not, may have something to do with it being 0.1 off.
All my date is projected in state plane, so not sure if it would vary if GCS, but often when numbers are a bit odd, that is the case.
Also, not sure what 'profile' you are using, but Distance says
"Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. $feature) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry."
but doesn't say anything about calculation profile.....
I used it in an attribute rule with State Plane data, and it appears to be spot on.