Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect offset percentage with more than 2 lrps #92

Open
AndersHGP opened this issue Jun 5, 2019 · 1 comment
Open

Incorrect offset percentage with more than 2 lrps #92

AndersHGP opened this issue Jun 5, 2019 · 1 comment
Assignees
Labels

Comments

@AndersHGP
Copy link

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

@xivk xivk self-assigned this Jun 5, 2019
@xivk xivk added the bug label Jun 5, 2019
@xivk
Copy link
Contributor

xivk commented Jun 5, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants