I have a polyline and a point on the polyline. I need to find the distance from the from point of the polyline to that point.
ICurve.QueryPoint method does the opposite thing. It gives a point based on given distance. In
ICurve.QueryPointAndDistance method, specified point is a outside point and it gives shortest distance. I could not find any method that gives the distance I require. So I have tried something different. I took the polyline and split at specific point using IPolycurve.SplitAtPoint Method. I wanted to get my desired part's length from splitted part. But I guess it was a wrong procedure. I found a geometry collection and those geometry were not type of esriGeometryPolyline, they were type of esriGeometryPath. And the length of the path is not similar of my desired part's length.
Can anybody give me some pointer about how to get the length?