Overpass-API icon indicating copy to clipboard operation
Overpass-API copied to clipboard

Fix inconsistent geometry calculation of partial relations

Open 1-Byte opened this issue 4 years ago • 0 comments

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"/>

1-Byte avatar Apr 12 '21 13:04 1-Byte