Dear all, I want to query overpass-turbo.eu for all buildings that contain at least one node with the tag "country=EU" and "office=government". I tried so far:
Test on overpass: http://overpass-turbo.eu/s/MaJ (courtesy of mmd) However, this does not work as areas are not always updated (see discussion with mmd and on github). The results are not complete and not reliable. Then, I tested to achieve this with the around operator.
Test on overpass: http://overpass-turbo.eu/s/Mbp However, here I do not know how to choose the distance of the around operator. The results are either incomplete or I get false positives, i.e. also neighbouring buildings. Is there a solution to get the surrounding building of a set of nodes with specific tags? asked 09 Sep '19, 18:48 rriemann |
This is my best take so far:
Run in overpass turbo: http://overpass-turbo.eu/s/NID The problem is yet that some buildings are not marked (most of them?). answered 04 Nov '19, 18:53 rriemann |
Is it maybe possible to have a foreach loop over all government office and use their geographical location to get all elements on that point (it's possible with the openstreetmap.org context menu query) and then filter out one building?
Cross-posted on https://github.com/drolbr/Overpass-API/issues/542
Is there maybe a work around in a different language? With some python/javascript lib?
My own answer on my last comment: https://help.openstreetmap.org/questions/55529/how-to-detect-if-point-is-inside-a-building-polygon-with-overpass
Has a nice code example that can be useful: https://pypi.org/project/osmxtract/