[OSM-talk] technical question: will nested relations get rendered?

Roman Neumüller r.neumuller at gmail.com
Sat Jul 4 06:01:14 BST 2009


This is a technical question - maybe it should go to talk-dev.

Idea:
   Make a map of a river basin
Example:
   http://www.openstreetmap.org/?relation=166216

I started to make relations for rivers using type=river -
in the example it's Lena river with tributaries Vitim,
Kirenga, Olyokma and Vilyuy. What I thought I could do is
to create a parent relation (say type=river basin) and to
only add child-relations for Lena and its tributaries.
Unfortunately this didn't get rendered.

Question:
Is it technical possible to render nested relations
(parent relation which contain only child relations)?

Advantage would be that as the child relation are getting
updated the parent will automatically get updated too.
For now the above example contains all single river-ways
of five different rivers added manually for being able to get
the relation being rendered correctly. In that way it has
over 100 members. Using child relations I'd only add five
members...

Thinking further I would actually like to add sub-basins
to the Lena basin, so the tree would look like this:

   Lena basin
     Vilyuy basin
       Chona basin
         ...
     Kirenga basin
       Minya basin
       Khanda basin
       ...
     Vitim basin
     Olyokma basin
     ...

with several nested parent-child relations...
But first it needs to be renderable ;-)

Roman





More information about the talk mailing list