Skip to content

Ignore too large mtb:scale values - #2458

Merged
easbar merged 1 commit into
masterfrom
max_mtb_rating
Nov 5, 2021
Merged

easbar merged 1 commit into
masterfrom
max_mtb_rating

Conversation

@easbar

@easbar easbar commented Nov 5, 2021 •

Copy link
Copy Markdown
Member

Sometimes mappers seem to use mtb:scale=12 or mtb:scale=34. They probably mean "S1/2", or "S3/4", but this is not recommended in the OSM wiki: https://wiki.openstreetmap.org/wiki/Key:mtb:scale?uselang=en. The wiki encourages mappers to use 1+ or 2- instead of S1/2 for example. There are less than 20 occurrences of 12, 23 and 34 for the whole planet according to taginfo, so I think we can just ignore this. We already ignore the finer separation using +/- which is recommended in the wiki (and somewhat popular) btw.

This PR ignores values above 6. In current master we get an exception during import because the EV's maximum value is exceeded.

@easbar easbar added the bug label Nov 5, 2021
@karussell karussell added this to the 5.0 milestone Nov 5, 2021

@karussell karussell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@easbar

easbar commented Nov 5, 2021

Copy link
Copy Markdown
Member Author

A bit surprising nobody noticed this yet...

@easbar
easbar merged commit 1a0bc94 into master Nov 5, 2021
@easbar
easbar deleted the max_mtb_rating branch November 5, 2021 11:25
aoles added a commit to GIScience/graphhopper that referenced this pull request Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants