This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

If rendering all relation-tags, are then all way-tag covered, or are the way-tags are to be checked if they need rendering on their own?

0

Hi!

If I render all relations (<relation ...>) that I find in an osm data file, are then all way (<way ...>) covered with that, or do I have to check the ways, if there are ways that haven't been rendered so far?

I have osm-data from two sources: the openstreetmap-export function, and from geofabrik.de

asked 17 Mar '15, 16:14

John215's gravatar image

John215
31225
accept rate: 0%

reverted 17 Mar '15, 16:19


One Answer:

2

Relations are not more than lists of other objects. You can't actually "render" relations in any sensible way, what you -can- do is render the objects that are in the "list". Which in the case of ways means actually taking one more indirection step: ways are simply ordered lists of nodes + the way specific tags.

So tl;dr version: you actually have to render all the ways that the relation refers to.

answered 18 Mar '15, 13:44

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 18 Mar '15, 13:45

...and all the ways that no relation refers to :)

(18 Mar '15, 14:36) scai ♦

Yes the title is actually somewhat at oddes with the content of the question, as the relationship between tags on relations and tags on the consituent objects is complicated and depends on the relation type in question.

I don't think that John215 was actually assuming that all ways are a relation member .....

(18 Mar '15, 14:40) SimonPoole ♦

Source code available on GitHub .