-
Notifications
You must be signed in to change notification settings - Fork 46
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
general issue: path data APIs aren't robust to coordinate errors #9372
Comments
Could it also trigger this bug ? -> EDIT: Probably not |
Workshop with @flomonster @clarani @eckter @SharglutDev @maelysLeratRosso @sim51 @Tristramg TLDRImportant Selected solutions (for current bugs and future designs):
The goals for the workshop are :
1. is this a real problem we want to address?For toy infra, we want to be able to simplify the GPS but use topological length. -> So we should address that at some point 2. What is impacted by this bugList of impacted endpoint (editoast):
Slightly different problem:
3. SolutionsFor outputs:
For inputs (we don't want redundant inputs):
4. determine if/when we should implem thisWe want to implem this as bugfixes/enhancement (update/comment the 2 issues already attached to this ticket).
The rough evaluation for the work on this (/pathfinding) is around a week. Questions leftover (let's see when implementing if they deserve some more thinking)
|
Most of OSRD exclusively deals with "offsets" to locate elements on their respective tracks or paths. When we want to display them, the front-end is in charge of projecting them on linear geographic elements.
The problem is, we often have mismatches between the referenced track lengths and their linestrings. Imported infrastructures have data quality issues, and generated infrastructures just don't have coordinates that match their distances.
In some cases, we can normalize offsets. For example, an object placed at offset=50m on a track of length=100m, we can place it at the middle of the linestring, even if that linestring is 500m long.
But that doesn't work out well when we need to project data over a whole train path. Any data error on any given track will throw off the normalization.
And the issue is that when the front-end projects objects on the path, it mostly relies on the
path_properties
endpoint. That endpoint returns the geographic data for the whole path. Worse, it doesn't even include the expected path length, making it impossible to normalize anything. Most projections end up being wrong.Causes several bugs:
Possible fixes:
We can't think of any satisfying fix (but we're open to suggestions). For now we have a few general ideas:
The text was updated successfully, but these errors were encountered: