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

checkLRPCoverage Intention Question #43

Open
earlHammond opened this issue Mar 5, 2020 · 1 comment
Open

checkLRPCoverage Intention Question #43

earlHammond opened this issue Mar 5, 2020 · 1 comment

Comments

@earlHammond
Copy link

I ran into something that is presumably an edge case where an LRP of a LineLocation is marked as a pointOnLine. When this happens we hit this if statement in the checkLRPCoverage:

Which prevents the lines from that segment from being added to the total list of lines and we subsequently fail the location ref validation. After reviewing the OpenLR white paper it seems that it should prefer valid nodes over invalid nodes, however I didn't notice in the spec that an LRP must be on a node. However, the validation logic requires that all LRPs be at nodes.

So, the question is... Is this a bug? Or must all LRPs be at nodes and never at points on a line?

Thanks

@ghost
Copy link

ghost commented Mar 13, 2020

You are correct. Location reference points should preferably be placed on valid nodes but nothing in the specification stops them being placed on invalid nodes, or even along a line.

I would like to understand a bit more about how you are using the encoder and what line location you are trying to encode. The encoder might place a location reference point along a line if the distance to the previous location reference point exceeds the maximum 15km. Is this the case with the location you are encoding? Any details on reproducing the issue would help a lot to try to fix this. Thanks!

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

No branches or pull requests

1 participant