Skip to content

Conversation

@smallsaucepan
Copy link
Member

Fixed a bug in nearestPointOnLine where index of returned point would sometimes refer to a non-existent line string segment. This was having a flow on effect in lineSlice where an additional duplicate point would be added as a result.

Fix adds a check to make sure nearestPointOnLine isn't returning the index of a line segment that doesn't exist.

Resolves #2946

sometimes refer to a non-existent line string segment. This was having a
flow on effect in lineSlice where an additional duplicate point would be
added as a result.
Copy link
Collaborator

@mfedderly mfedderly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lineSlice returns line with duplicate coordinates

2 participants