IMU it is only when relations have members with role=subarea (eg:

here

considered as "Optional, disputed and redundant" in the wiki, that the child relations tab like

here

is filled and parent relations tab like

here

is filled if the relation is itself a member with role=subarea of a parent relation. Am I correct?

If so, as the use of this role is not recommended yet, we should expect no information in those tabs for administrative=boundary relations?

asked 15 Apr, 17:08

SeverinGeo's gravatar image

SeverinGeo
81448
accept rate: 0%


Yes, you are correct. And it's true that you shouldn't expect any info in those tabs if the relation don't have any relations as members.

I guess the wiki should clarify this when it talks about the subarea role.

One clarification in general: a relation P will have X children relations if it has that same X number of relations as members, independently of the role type of each of those members (or even if those members have a void role). And each of those relations will have as a parent the relation P.

For example:

<?xml version='1.0' encoding='UTF-8'?> <osm version='0.6' generator='JOSM'>
<relation id='-1' action='modify' visible='true'>
    <tag k='type' v='typea' />
    <tag k='name' v='Child relation A' />
</relation>
<relation id='-2' action='modify' visible='true'>
    <tag k='type' v='typeb' />
    <tag k='name' v='Child relation A' />
</relation>
<relation id='-3' action='modify' visible='true'>
    <member type='relation' ref='-1' role='rolea' />
    <member type='relation' ref='-2' role='' />
    <tag k='type' v='typec' />
    <tag k='name' v='I am parent of the relations A and B' />
</relation>
</osm>

The last relation is parent of the first 2 relations. And each of those 2 relations have as parent the last relation.

permanent link

answered 16 Apr, 17:53

edvac's gravatar image

edvac
5952517
accept rate: 13%

edited 16 Apr, 17:56

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:

×853
×541
×197
×8

question asked: 15 Apr, 17:08

question was seen: 123 times

last updated: 16 Apr, 17:56

powered by OSQA