Hi Using overpass Turbo I'd like to find all parks in the current display that have Would I'm not expecting a fully form query, but any pointers in the right directions would be appreciated. asked 17 Jan '16, 14:58 DaveF aseerel4c26 ♦ |
Right, this will not work with arbitrary polygons as of today, or to be more precise, there has to be a matching area created beforehand on the server, subject to specific area creation rules. Those rules usually require a name tag to be present on the respective polygon. If that's case you can use the following official approach: overpass turbo link: http://overpass-turbo.eu/s/dQi In cases, where no matching area exists, there's the following option, currently available as a preview version: overpass turbo link: http://overpass-turbo.eu/s/dOt This query will return those leisure=playground ways/nodes, which are inside a leisure=park way. Please give it a try. It may be a bit slow, as the dev box runs on somewhat slow hard disks and not SSDs as on production. Please note that this feature is not available on the official instance on overpass-api.de. Furthermore, it currently has some rough edges and still needs to be reviewed by Roland. Hopefully, we will see this fully functional on overpass-api.de some time in 2016... Stay tuned. Want to find out more? Take a look at the Github page for lots of further examples and screenshots: https://github.com/drolbr/Overpass-API/issues/77 answered 18 Jan '16, 11:39 mmd Many thanks for your replies. They are close to what I desire except I'd like the parks to be returned not the playgrounds. Is this possible with a small tweak?
(19 Jan '16, 15:13)
DaveF
1
I revised my answer to return the parks instead (this works only in case they have a name=* tag). If that answers your question, would you mind accepting it? Thanks.
(19 Jan '16, 15:44)
mmd
Thank you - Accepted. Lots for me to learn. I've never heard of map_to_area or pivot.
(20 Jan '16, 12:02)
DaveF
1
Thanks. I used
(22 Jan '16, 08:53)
mmd
|
Here's a query that finds playgrounds that are merely nearby the boundaries of parks: http://overpass-turbo.eu/s/dNx Not perfect, but probably sufficient for many uses. I'm not aware that there is a way to check inside of arbitrary geometries. The 'is_in' operator deals with areas, but only a subset of OSM areas are available, parks are not one of them. answered 17 Jan '16, 15:31 maxerickson |