I am having huge set of 2D line segments. So, I know; Line number,
Begin (X,Y,Z) and End (x,Y,Z) of each line segment. I want to get
proximity line segments for a g
Yes, R-trees can do this. They are designed for arbitrary objects with spatial extend, not limited to point data. Actually some of the earliest examples used polygons.