overpass-api-python-wrapper icon indicating copy to clipboard operation
overpass-api-python-wrapper copied to clipboard

Inner rings GeoJSONs are incomplete

Open mvexel opened this issue 1 year ago • 0 comments

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.

mvexel avatar Feb 13 '24 22:02 mvexel