-
Notifications
You must be signed in to change notification settings - Fork 924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lineOffset returns NaN for some LineStrings #1361
Comments
Hi @mllava Thanks for the report and the jsfiddle. Unfortunately the Cheers |
The coordinates of the points at 8th and 9th index are identical. What is the expected behaviour in this case? Should the duplicates be removed before processing? (That would make the number of points on the output feature and input feature not equal) |
Ah that probably explains it, Thanks for chiming in @vamshi29292 . |
Well spotted @vamshi29292 ! This flags an issue on my end! Thank you! |
Hi,
I'm having an issue with lineOffset. Please see the example here: https://jsfiddle.net/y4xfzxmx/3/
For the given LineString, lineOffset returns NaN from coordinate 7 onwards, until one before last; even happens with distance = 0. It only happens with a few lineStrings that I'm working with.
Any clue why this could be happening?
Many thanks in advance!
Martin
The text was updated successfully, but these errors were encountered: