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

Fix inconsistent geometry calculation of partial relations #617

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

1-Byte
Copy link

@1-Byte 1-Byte commented Apr 12, 2021

When the API is used with a database which was generated from a extracted OSM file, the bounding box of relations is calculated inconsistently. If the relation contains missing ways, the bounding box is not affected by them. However, if the relation contains a missing node, an artificial Quad_Coord(0u, 0u) gets inserted.

Before: <bounds minlat="-91.0000000" minlon="-214.7483648" maxlat="45.9167004" maxlon="7.8759229"/>
After: <bounds minlat="45.8197974" minlon="7.8613734" maxlat="45.9167004" maxlon="7.8759229"/>

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.

1 participant