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

Check that building height is in a sensible range. #1850

Merged
merged 1 commit into from
Mar 1, 2019

Conversation

zerebubuth
Copy link
Member

Sometimes, data that doesn't make sense gets into OSM. For example, version 4 of this building has height=5e+70, which is many orders of magnitude larger than the observable universe. Clearly this is a typo and causes problems for us when we try to write it out in tiles.

This patch drops values outside a sensible range, which is approximately that of the tallest current structure, the Burj Khalifa.

Sometimes, data that doesn't make sense gets into OSM. For example, version 4 of [this building](https://www.openstreetmap.org/way/290535940) has `height=5e+70`, which is many orders of magnitude larger than the observable universe. Clearly this is a typo and causes problems for us when we try to write it out in tiles.

This patch drops values outside a sensible range, which is approximately that of the tallest current structure, the Burj Khalifa.
@zerebubuth zerebubuth requested review from rmarianski and iandees March 1, 2019 16:54
@nvkelso nvkelso added this to the v1.8.0 milestone Mar 1, 2019
@zerebubuth zerebubuth merged commit 96550e6 into master Mar 1, 2019
@zerebubuth zerebubuth deleted the zerebubuth/bounds-check-building-heights branch March 1, 2019 18:57
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.

3 participants