I try to find intersection of two edges in 2D using method shapely.intersection and get a wrong answer Shapely module v.2.0.1
from shapely.geometry import LineString
a = LineString([[30.0,0.0],[36.0,30.0]])
b = LineString([[32.8,14.0],[35.2,26.0]])
intersection = a.intersection(b)
It is easy to check that edge b
entirely lays on edge a
, and so the result of intersection will be equals b
but code returns one point (the center of the edge b
)
Point(34,20)