overpass-api-python-wrapper
overpass-api-python-wrapper copied to clipboard
Inner rings GeoJSONs are incomplete
Consider this query in Overpass Turbo.
Using Overpass Turbo's 'download as GeoJSON' function, we end up with this GeoJSON
As you can see, the inner rings of the polygons are defined as they are in the original OSM relation. They are not holes.
If we retrieve the same relation as GeoJSON using overpass:
import json
import overpass
api = overpass.API()
query = "rel(11038555);out;>;out;"
resp = api.get(query, responseformat="geojson")
json.dumps(resp)
...we get a polygon with holes instead.