Hi All, I'm looking for a way to get the names of buildings in an overpasss query as result. As you can see in the picture below, the line 480228940 has the name "Ehemaliges Hallenbad Wallau". So I'm looking for a way to get all the coordinates of e.g. "Hallenbad" buildings in a specific bounding box. Unfortunately I don't have any clue how I to set up the query and any suggestions are welcome! BR, Tom asked 14 Mar '19, 10:50 GIS_Wanderer |
All OSM Buildings are supposed to be tagged with Here's the query: (Try it)
The names, and all other tags, are included in the data returned by the query. answered 14 Mar '19, 13:48 owoce 1
you can get the centers by replacing
(14 Mar '19, 17:20)
owoce
@owoce Sorry, your comment ended up here. I tried to convert @GIS_Wanderer's answer to a comment but OSQA (the software running OSM help) screwed up because there is a bug which prevents to convert answers that have been edited. I can't move your comment back because then another error occurs :(
(15 Mar '19, 08:58)
scai ♦
|
Hi owoce, thanks for your fast feedback! I checked out your code and indeed the map stays empty. Even when I try the complete name
the map stays empty. Is there a way to use place holders instead? E.g. hallenbad or even only bad. I tried some other queries and for now the ouput are highlighted lines of the building shown in the map. Is there a way to get only one GPS location (lat / lon) per result? BR, Tom answered 14 Mar '19, 15:19 GIS_Wanderer 3
The example in your screenshot is tagged as a construction area, not a building, so it won't show up in a query for buildings. If that's an example of the objects you're trying to retrieve, then it might not be buildings that you need to search for. Can you maybe edit your question to add more context about your ultimate goal? For example, once you get your results, what will you be doing with them? That might help us suggest a better way to reach that goal.
(14 Mar '19, 15:39)
alester
|