I have a query which returns a number of ways. I want to find nodes matching certain criteria which appear within those ways. Note that the nodes I'm interested in do not form part of the way itself, but do appear within the bounds of the way. Also, the ways do not all have corresponding areas, so using the area search doesn't work in all cases.

I've got a minimal example which finds way 95677318, and I want to be able to find node 1552949334:

(
  way({{bbox}})["man_made"="lighthouse"];
)->.searchArea;

/*doesn't work:*/
/*node(area.searchArea)["seamark:name"];*/

/*recur down and find node directly, just for the purpose of this question*/
(
  .searchArea;>;
  node({{bbox}})["seamark:name"];
);
out;

(Try it on https://overpass-turbo.eu/s/EpV)

asked 17 Dec '18, 12:27

tstibbs's gravatar image

tstibbs
11112
accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×346
×120
×49

question asked: 17 Dec '18, 12:27

question was seen: 359 times

last updated: 17 Dec '18, 12:27

powered by OSQA