When creating a relation, what is a "role" and what do I put in that box? asked 06 Mar '11, 17:59 techlady |
The meaning of "role" depends on the type of relation. Generally, the different members of a relation may have specific roles; the "role" is used to express this. Examples:
See the wiki for details: http://wiki.openstreetmap.org/wiki/Relation answered 07 Mar '11, 00:49 sleske |
The general idea is that while there might be relations where all members are of the same kind (e.g. a route relation that simply collects all pieces making up the I12345 or so), there could be other relations where it makes a huge difference in what role you participiate (for a simple example think of a hypothetical ownership relation in which you can either participate as the "owner" or as the "owned"). The roles that make sense in a given context (i.e. in a given relation type) are usually described in the relation detail; see links collected on the relations page on the wiki. answered 06 Mar '11, 18:26 Frederik Ramm ♦ 1
Frederik, Wouldn't it be better if some of these things were defined, so those of us who are newer members aren't just making up our own system? I don't really care what the roles are. I just want someone to tell me what they are. For example, if I am tagging a state highway, what "roles" should I add? What is standard? If I'm creating a relation for national parks (or, more to the point, for a national forest that is broken into several sections that are separate geographically, a common occurrence), are there any roles or should I just leave that blank? Tell me what to do. Charlotte
(25 Oct '12, 19:25)
techlady
1
I think the main point is that the OSM Editor software (JOSM / Potlatch2) should automatically fill in the role when creating relations (e.g. for turn restrictions or a multi-polygon). However 'power' users can edit this value should they think it is necessary. E.g. in creating new kinds of relations not supported by editor presets or for fixing previously created but incorrect values.
(29 Oct '12, 22:01)
robbieonsea
1
Charlotte, when you are unsure about a role, just leave it empty. When you need to set a role, you will be told in the description of the specific relation what role to set. In both cases you mentioned (borders and route relations), it would be just fine to leave the roles empty.
(30 Oct '12, 08:31)
Roland Olbricht
|
Additionally I think the main point is that the OSM Editor software (JOSM / Potlatch2) should automatically fill in the role when creating common relations (e.g. for turn restrictions or a multi-polygon). 'power' users can edit/set this value should they think it is necessary. E.g. in creating new kinds of relations not supported by editor presets or for fixing previously created but incorrect values. In much the same way as you can use any tag the value of the role can be anything. Some values for roles depends on the type of relation as noted in these wiki pages for common usage: http://wiki.openstreetmap.org/wiki/Relation:boundary http://wiki.openstreetmap.org/wiki/Relation:restriction http://wiki.openstreetmap.org/wiki/Relation:waterway One can always leave it blank if you feel adding a value brings little or no benefit. answered 29 Oct '12, 22:23 robbieonsea |