<div class="gmail_quote">On Sun, Aug 30, 2009 at 9:14 PM, John Smith <span dir="ltr"><<a href="mailto:deltafoxtrot256@gmail.com">deltafoxtrot256@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/8/31 Roy Wallace <<a href="mailto:waldo000000@gmail.com">waldo000000@gmail.com</a>>:<br>
<br>
That sounds more or less what I had in mind, yes, except the example<br>
osm file used relations acting as children of the way almost, why<br>
can't ways simply have children of their own instead of using<br>
relations?</blockquote></div><br>I understand why you feel that using a way+node relation or way+direction tag may be a hack, but "children" are also a hack. Children not only only a single problem (that of a way being asked to take on additional metadata that really belongs to only a portion of the way) but solves it by poorly duplicating relations! Relations are capable of modeling the same parent-child relationship you desire and exist precicely to relate many pieces into a whole.<br>
<br>I'm not saying that the "lane and lane group" proposal is perfect either. In my opinion it abuses relations so as not to upset the status quo too much. Personally I think <a href="http://wiki.openstreetmap.org/wiki/Relations/Proposed/Collected_Ways">http://wiki.openstreetmap.org/wiki/Relations/Proposed/Collected_Ways</a> does a much better job of using relations correctly. Multiple sub-ways are related to each other, with the relation holding the generic tags and sub-ways containing any overriding information. If renderers supported it, it'd be the ideal way of representing "child" ways.<br>
<br><br><br>Somewhat tangentally, while finding the Collected Ways proposal I stumbled across the "enforcement" relation. It's an "approved" use of relations and acts almost identically to the stop relation proposal. Though this doesn't mean it's not a hack, it does indicate that the community seems to be ok with using relations in the way proposed.<br>