efficient way to handle 2d line segments

后端 未结 3 1464
闹比i
闹比i 2021-02-04 14:49

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

3条回答
  •  花落未央
    2021-02-04 15:15

    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.

    Have you tried using them?

提交回复
热议问题