Line1_string=LineString([(1,4),(3,4),(3,3),(3.5,2),(4.5,1),(6,1)])
line2_string=LineString([(5,4),(2,1)])
these two objects have been created using LineString
from shapely.geometry
I can find the intersection point using Line1_string.intersection(line2_string).coords
, but I would also like to define the line segment of the Line_string1
that the intersection of those two lines is taking place in an automatic way.
So far I have come across this answer [a link] (Get the vertices on a LineString either side of a Point), but I get a none output from the defined split function.
Any ideas of what could be wrong or any other suggestions?