Skip to content

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

Merged
zerebubuth merged 1 commit intomasterfrom
zerebubuth/bounds-check-building-heights
Mar 1, 2019
Merged

Check that building height is in a sensible range.#1850
zerebubuth merged 1 commit intomasterfrom
zerebubuth/bounds-check-building-heights

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 iandees and rmarianski 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