Skip to content

Avoid parsing exception for very low max_speed values - #3074

Closed
ratrun wants to merge 3 commits into
graphhopper:masterfrom
ratrun:avoid_low_maxspeed_exception
Closed

ratrun wants to merge 3 commits into
graphhopper:masterfrom
ratrun:avoid_low_maxspeed_exception

Conversation

@ratrun

@ratrun ratrun commented Oct 27, 2024

Copy link
Copy Markdown
Contributor

This is a change for the issue described in #3070 about very low max_speed values, which lead to a parsing exception.

@otbutz

otbutz commented Oct 28, 2024

Copy link
Copy Markdown
Contributor

Is there a real-world example of enforcing a limit slower than walking speed? I'd rather filter this cases in the parser to be honest.

@ratrun

ratrun commented Oct 28, 2024 •

Copy link
Copy Markdown
Contributor Author

Is there a real-world example of enforcing a limit slower than walking speed? I'd rather filter this cases in the parser to be honest.

There was at least one spot. In the meantime I fixed it in the data, see https://www.openstreetmap.org/way/750883115/history.

I consider maxspeed=0.5 (km/h) as bad data. Anyway, bad that shouldn't trigger our OSM reader to throw an exception and consequently stop the import.

I'd rather filter this cases in the parser to be honest.

Please check now again. Is this what you meant?

@ratrun
ratrun marked this pull request as ready for review October 29, 2024 15:46
@easbar

easbar commented Nov 4, 2024

Copy link
Copy Markdown
Member

I think I accidentally fixed this issue in #3077

@easbar easbar closed this Nov 4, 2024
easbar added a commit that referenced this pull request Nov 4, 2024
@ratrun

ratrun commented Nov 5, 2024

Copy link
Copy Markdown
Contributor Author

I think I accidentally fixed this issue in #3077

But if I see it right both pull requests didn't make it into 10.10. Was this intentional and if so, why?

@karussell

Copy link
Copy Markdown
Member

Was not intentionally. But at some point one has to do a cut.

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

Successfully merging this pull request may close these issues.

4 participants