How to get cluster of lines using python
Yes, almost all can be used. It's just probably not the most efficient way. Depending on how you'd formalize your problem, which is not clear enough. Do the points pairwise have to fulfill this property, or is it enough if they "mostly" do, or if there are some that do?
In many cases it will be easiest (but slow) to make a graph where you connect any two lines that have the desired property, then search for desirable structures such as cliques (and thenyou'll quickly see why it's not clear which solution you are looking for).
I have a lines dataset where each lines have several points (minimum 2). All the coordinates are known and on the same metric reference.
I would like to merge the lines with the same azimut +/- 10° and a maximal distance of 5cm between lines.
I think a clustering algorithm can do that, I found on web some clustering algorithms working with points and I would like to know if there is any existing function/algorithm to do that with lines ?
If no, I will try to adapt a code myself.