NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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.

permanent link

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 ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×440
×236
×167
×5

question asked: 17 Mar '15, 16:14

question was seen: 3,745 times

last updated: 18 Mar '15, 14:40

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum