[x] I added an entry to CHANGES.md if knowledge of this change could be valuable to users.
The bug: LineStringSegmentize trait can return n - 1 LineStrings. This happens when the last Line being iterated over needs to be split into 2 separate Lines.
The fix: previously, the definition did not permit splitting the last Line iterator. This PR allows the last Line to be split and checks after the for loop has completed iteration if the length is equal to n.
[x] I added an entry to
CHANGES.md
if knowledge of this change could be valuable to users.The bug:
LineStringSegmentize
trait can returnn - 1
LineStrings. This happens when the lastLine
being iterated over needs to be split into 2 separate Lines.The fix: previously, the definition did not permit splitting the last
Line
iterator. This PR allows the last Line to be split and checks after the for loop has completed iteration if the length is equal ton
.Closes: https://github.com/georust/geo/issues/1075