mvexel / overpass-api-python-wrapper

Python bindings for the OpenStreetMap Overpass API
Apache License 2.0
359 stars 89 forks source link

GeoJson MultiPolygon errors with duplicate IDs #129

Closed luftj closed 3 years ago

luftj commented 3 years ago

sometimes duplicate IDs are returned from a query. OSM then doesn't return their geometry anymore, but only a reference to the previously transmitted element. When choosing responseformat=geojson, this leads to the following error in line 214 and 234: UnknownOverpassError("Received corrupt data from Overpass (incomplete polygon).")

Test query: api.get('relation (52.5,8.3333333,52.75,8.8333333) [water=lake][name="Dümmer"]; out geom;', responseformat="json")

jparta commented 1 year ago

How does this fix the issue? The set is never accessed.