hello,
i am trying to calculate dynamically in the popup profile the upstream's length of a multipart line.
this script work well with single part lines only.
in this script i cut the line where the buffer of a point intersects the polyline (a road)
var CurDep = $feature.road
var CurArcGeom = First(Filter(FeatureSetByName($datastore,"test_li"),'ROAD=@CurDep'))
var cutter = Rotate(Clip(CurArcGeom,Extent(Buffer($feature,0.1, 'meters'))),90)
var DYN_CUMUL = round(Length(First(Cut(CurArcGeom,cutter))))
dyn_cumul
In the picture above you can see the results (labels) on two polylines. the first result goes wrong because of the multipart.

any idea 🙂