OpenLR icon indicating copy to clipboard operation
OpenLR copied to clipboard

Incorrect offset percentage with more than 2 lrps

Open AndersHGP opened this issue 6 years ago • 1 comments

Hi!

According to the OpenLR spec - Data format rules

Rule - 5 Offsets must refer to the location reference path defined by the first two (the last two) location reference points.

The offset percentage should be based on the path length between the first two points for positive offset and the last two points for the negative offset.

So the offset percentage gets incorrect if intermediate points exist when encoding/decoding

AndersHGP avatar Jun 05 '19 14:06 AndersHGP

Again, thanks for submitting this, you are right. A subtle but very important difference. :+1:

xivk avatar Jun 05 '19 14:06 xivk