Select to view content in your preferred language

How to get the mid point (X,Y) of a polyline segment in Arcade ?

7242
11
Jump to solution
09-09-2020 05:21 AM
by Anonymous User
Not applicable

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 !! 

0 Kudos
11 Replies
Bud
by
Esteemed Contributor

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.

 

0 Kudos
by Anonymous User
Not applicable

I meant use that function to obtain the midpoint and then create a point (Editor > Create Feature with Absolute X, Y) in ArcMap.