Finding the segment of a point on a polyline

Discussion created by orsela1@gmail.com on Dec 15, 2010
Latest reply on Dec 16, 2010 by Hornbydd
I have a polyline geometry and a certain point on the polyline.
I want to find the index of the polyline segment that the point belongs to.

What is the best way to do this?