-
I wrote this code:
And |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
I'm pretty sure this is due to precision / robustness issues; it is difficult to produce a point that is exactly on the line, so you need to use a different approach to split this. As noted in the docstring for Note that you can also interpolate the point into the line to calculate its approximate coordinate:
From there, you can use an algorithm that is similar to that used by split but bypass the first check that the point intersects the line (which is returning |
Beta Was this translation helpful? Give feedback.
-
Now I use a new method to solve this problem:
|
Beta Was this translation helpful? Give feedback.
Now I use a new method to solve this problem: