NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi I've run out of intelligence for Isolated Buildings Routine

way[building]({{bbox}})->.a;
foreach .a (
  way.a(around:1000);
  way._(if:count(ways) == 1);
  out center;
);
  • How does it know we want to find objects further away than 1000m? All other examples I read find objects within the specified distance.

  • Underscores are the default variable name for the default set. As it explicitly creates set 'a', what is in the default set? Is it a copy of set 'a'?

Thanks

asked 05 Jun '18, 22:59

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%

I'm not sure about the set question. As for your other question, it looks like it's counting how many buildings are within 1000m of each building. If there's only one (the building in question), then it's included as part of the results because there aren't any other buildings within 1000m.

(06 Jun '18, 00:09) alester

Ah, yes, of course. Thanks. Clearer now. I tried swapping '_' with 'a' & got different results so It appears it isn't a copy of 'a'

(06 Jun '18, 12:20) DaveF

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:

×483
×16

question asked: 05 Jun '18, 22:59

question was seen: 1,232 times

last updated: 06 Jun '18, 12:20

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum