Can someone please help me find out how to get the midpoint (x.y) of a line segment in Arcade (ArcGIS Online) ?
I have a road layer with many segmented lines, I want to create a pop up link using the mid point x,y info.
Thank you so much !!
Solved! Go to Solution.
That's an interesting idea.
If I understand correctly, I think you're saying we could:
...reference those "Geometry Attributes" (fields in the attribute table but not in the underlying db table) right in Arcade. I think I've done the same sort of thing with the $feature.shape_length: https://community.esri.com/t5/arcgis-pro-ideas/hascurve-arcade-geometry-property/idc-p/1149449/highl...
Is that what you were thinking?
Never mind. Those "Geometry Attribute" fields aren't dynamic.
Add Geometry Attributes (Data Management)
The values in these fields are not automatically recalculated after edits. If you edit the features, you'll need to run this tool again to update the field values.
I meant use that function to obtain the midpoint and then create a point (Editor > Create Feature with Absolute X, Y) in ArcMap.