You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, and the GeoJSON specs don't require LineString to include different positions. So I guess an error should not be thrown.
SelaO
changed the title
LineOffset is crashing with two identical coordinates
LineOffset is crashing with two identical coordinates in sequence
Sep 21, 2020
Sure, but I checked that to make sure that an error was not actually ok. What I mean is that if a valid LineString was actually required to have different positions, than an error thrown by lineOffset on an invalid input would not have been considered wrong, or a bug.
This isn't throwing an error any more, but it does return a bunch of NaN's that aren't helpful. This seems to root down to the processSegment method which calculates L to be 0 which gives us the NaN values.
I'm getting the error:
when there are two or more identical coordinates in sequence:
but this works:
It isn't mentioned in the docs that it's not ok to have identical points...
The text was updated successfully, but these errors were encountered: