AnsweredAssumed Answered

How to get the M-value for a point on a polyline segment.

Question asked by huangs3 on May 15, 2012
Latest reply on May 18, 2012 by huangs3
Hi Experts:

    I am writing some code to calculate the "M value" of a point on a polyline segment. The polyline feature class is not an actual event layer. It is just a polyline feature class having begin_M and end_M fields for each segment. If I have a point sitting on a segment, how can I calculate the the "M" value on this point?
    The only idea in my mind for now is using ICurve.QueryPointAndDistance function to get the input point's distance along the polyline, and then use it ratio to the total length to calculate the interpolated "M" value of that point.
    Is there other linear referencing related ArcObject API for me to implement the function?
    Thank you.

Sui

Outcomes