[OSM-talk] specific Relations

Stephen Gower socks-openstreetmap.org at earth.li
Fri Oct 19 16:28:00 BST 2007


On Mon, Oct 15, 2007 at 04:37:17PM +0200, Frederik Ramm wrote:
> Hi,
> 
> >   So, after all my long-winded verbage, my question is: do members
> >   *have* to be self-closing XML tags, or could they also contain
> >   <tag>s?
> 
> The membership itself is restricted to the role tag 
  
  Were there technical reasons for this, or was it an arbitary design
  decision?
   
> if need be you can have arbitrary nesting of relationships.

  I can see from this (and the example you gave that I've cut) that
  it is possible, but I can also see that it's going to be way too
  complicated for my little brain!
  
  For me, it would be great to be allowed to do something like
  
<relation id="1976">
  <tag k="type" v="route" />
  <tag k="name" v="Oxford Bus 5" />
  <member type="node" ref="123" role="bus_stop" />
  <member type="node" ref="321" role="bus_stop">
    <tag k="restriction" v="board_only" />
  </member>
</relation>

  I realise you probably understood what I was saying; I wrote that
  out to see if I could spot a technical reason why it can't work -
  but I've very little experience in this direction, so it doesn't
  surprise me I haven't.

  If the only solution really is nested relations, I shall have to
  leave it to someone with more brain than me - perhaps I'll make the
  map my wife wants with colouring pencils.  Representing this with
  nested relations sees to me like writing a webserver in PostScript,
  but I'm sure someone out there is up to the task :-)
  
  s




More information about the talk mailing list