Hi @vissarion ,
I'm busy with the buffer for linestrings and in some rare cases, it goes wrong because a turn (intersection point) is not calculated.
For example this input (segment p, segment q)
p1 POINT(10.40012269074711 63.42843206062311)
p2 POINT(10.4029932904841 63.42811616062505)
q1 POINT(10.40063675549998 63.42837490942328)
q2 POINT(10.40063813682225 63.42837538908047)
I would expect an intersection point. But it is not there.
Situation:

But the red line is quite small :-) Zoomed in:

So the lines clearly intersect. At least in Cartesian (I used that to compare it).
Maybe the curvature is such that it is missed? On this scale? But then, the next intersections are also missed. Because the segment q1 is part of a longer linestring, and none of the intersections are there...
Here is another view:

The full lines (parts) are:
P: LINESTRING(10.40012269074711 63.42843206062311,10.4029932904841 63.42811616062505)
Q: LINESTRING(10.40062641940492 63.42837069900823,10.40062763824966 63.42837126010693,10.40062887877104 63.42837181159211,10.40063014059116 63.42837235329579,10.40063142332569 63.42837288505294,10.40063272658387 63.4283734067016,10.40063404996872 63.42837391808286,10.40063539307714 63.42837441904095,10.40063675549998 63.42837490942328,10.40063813682225 63.42837538908047,10.40063953662318 63.42837585786642,10.40064095447638 63.42837631563831)
One of the segments of this line should overlap...
Picture including the linestrings P and Q

Can you investigate this?
Hi @vissarion ,
I'm busy with the buffer for linestrings and in some rare cases, it goes wrong because a turn (intersection point) is not calculated.
For example this input (segment p, segment q)
I would expect an intersection point. But it is not there.
Situation:

But the red line is quite small :-) Zoomed in:

So the lines clearly intersect. At least in Cartesian (I used that to compare it).
Maybe the curvature is such that it is missed? On this scale? But then, the next intersections are also missed. Because the segment q1 is part of a longer linestring, and none of the intersections are there...
Here is another view:

The full lines (parts) are:
One of the segments of this line should overlap...
Picture including the linestrings P and Q

Can you investigate this?