From 58bf8f934fdcda26b742b22ee811405f49c1cf32 Mon Sep 17 00:00:00 2001 From: Ben Saxby Date: Mon, 19 Jun 2023 15:26:44 +0100 Subject: [PATCH] Fix PointAlongLine offset encoding --- src/OpenLR/Codecs/Binary/Codecs/PointAlongLineLocationCodec.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OpenLR/Codecs/Binary/Codecs/PointAlongLineLocationCodec.cs b/src/OpenLR/Codecs/Binary/Codecs/PointAlongLineLocationCodec.cs index 5747036..5fdb68e 100644 --- a/src/OpenLR/Codecs/Binary/Codecs/PointAlongLineLocationCodec.cs +++ b/src/OpenLR/Codecs/Binary/Codecs/PointAlongLineLocationCodec.cs @@ -113,6 +113,7 @@ public static byte[] Encode(PointAlongLineLocation location) SideOfRoadConverter.Encode(location.SideOfRoad.Value, data, 14, 0); if (location.PositiveOffsetPercentage.HasValue) { // positive offset percentage is present. + OffsetConvertor.EncodeFlag(true, data, 15, 1); OffsetConvertor.Encode(location.PositiveOffsetPercentage.Value, data, 16); }