Skip to content

Commit 90ee11e

Browse files
author
Petr Sramek
committed
fixed
1 parent a36a375 commit 90ee11e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PolylineAlgorithm/PolylineEncoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ public Polyline Encode(IEnumerable<Coordinate> coordinates) {
5555
// index = 0;
5656
//}
5757

58-
temp = buffer.Span[position..6];
58+
temp = buffer.Span[position..];
5959

6060
position += PolylineEncoding.Default.GetChars(diff.Latitude, ref temp);
6161

62-
temp = buffer.Span[position..6];
62+
temp = buffer.Span[position..];
6363

6464
position += PolylineEncoding.Default.GetChars(diff.Longitude, ref temp);
6565
}

0 commit comments

Comments
 (0)