Why don't all showing here:

[out:csv(::type, ::id, name, admin_level, parent_id)];
rel(148838)->.c;
.c map_to_area;
rel(area)[admin_level="4"][boundary=administrative][type!=multilinestring];
out;

show here:

[out:csv(::type, ::id, name, admin_level, parent_id)];
rel(148838)->.c;
.c map_to_area;
rel(area)[admin_level="2"][boundary=administrative][type!=multilinestring];
foreach(
  out ids;
  rel(r); //children
  out;
);

asked 30 Jul '18, 22:43

andrefrsilva's gravatar image

andrefrsilva
11335
accept rate: 0%


I guess that not all admin_level=4 relations added as children to the admin_level=2 relation. Juust being mapped as nested boundary relations is not enough. The admin_level=4 boundaries should be explicitly added to the admin_level=2 relation.

AFAIK, it is not common practice to do this. I even thought that the wiki adviced against it, but I cannot find a reference for that now.

permanent link

answered 31 Jul '18, 04:13

escada's gravatar image

escada
18.8k16159301
accept rate: 21%

So what should I do instead to get the children relations of each relation?

(31 Jul '18, 11:55) andrefrsilva
Your answer
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:

×381
×198
×139

question asked: 30 Jul '18, 22:43

question was seen: 713 times

last updated: 31 Jul '18, 11:55

powered by OSQA