drolbr / Overpass-API

A database engine to query the OpenStreetMap data.
http://overpass-api.de
GNU Affero General Public License v3.0
692 stars 90 forks source link

Convert endpoint ignores map_to_area function #660

Closed jdekarske closed 2 years ago

jdekarske commented 2 years ago

https://overpass-turbo.eu/s/1huc Line 3 does not appear in the output when "compacting" the query in overpass (export->compact).

Query below: (https://overpass-api.de/api/convert?data=%5Bout%3Ajson%5D%5Btimeout%3A600%5D%5Bbbox%3A38.4829%2C-121.8694%2C38.7110%2C-121.6215%5D%3B%0Away%5B%22name%22%3D%22Davis%20Golf%20Course%22%5D%3B%0Amap_to_area%20-%3E.golfcourse%3B%0Away%5B%22golf%22%3D%22hole%22%5D(area.golfcourse)-%3E.holes%3B(%0A%20%20relation%5B%22golf%22%3D%22fairway%22%5D(area.golfcourse)%3B%0A%20%20way%5B%22golf%22~%22%5E(green%7Ctee%7Cwater_hazard%7Cbunker%7Cfairway)%22%5D(area.golfcourse)%3B%0A)-%3E.features%3B%0A.holes%20out%20geom%3B%0A.features%20out%20geom%3B&target=compact)

https://github.com/tyrasd/overpass-turbo/issues/571

mmd-osm commented 2 years ago

https://github.com/mmd-osm/Overpass-API/commit/b52b0838fdc7647572a6c3613e806d1d9bf1972b

drolbr commented 2 years ago

Fixed in 2e8834565dcfc29cd615ce1520268ff3507fa375