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

I assume it's unnecessary, but just out of curiosity, the building part here has a relation linked to the building. How do you create that? Are there any pros/cons in doing it?

http://www.openstreetmap.org/edit?relation=3824021#map=22/52.51651/13.45273

asked 27 Oct '17, 18:53

chachafish's gravatar image

chachafish
411121422
accept rate: 8%


"Except in those rare cases, building relations are redundant and provide no additional information. Adding them would not only be a waste of time, it would also further raise the barrier of entry for new mappers (who often consider relation editing challenging and counter-intuitive). As such, adding them unnecessarily is generally not a good idea."

Tordanik, while I appreciate the fact that relation processing is difficult, relations by itself are not "bad". To continuously stress that building relations should be avoided, is in my opinion unnecessary and counter productive. If you want to ignore them in processing, you always can, but they do also have clear merits in relation to (web)navigation of parts, and as such I object to your statement that they "provide no additional information". I have seen many complex 3D buildings that were almost incomprehensible and impossible to navigate on the main OSM website without a type=building relation to group the parts in a logical way. The simple answer as to which parts belong to the building, is often most easily answered on the main OSM website through a building relation. If setup carefully, you can than easily drill down different parts or even levels through weblinks, greatly easing insight into the structure in a plain 2D view.

permanent link

answered 28 Oct '17, 09:10

mboeringa's gravatar image

mboeringa
1.5k21527
accept rate: 9%

1

When I say that building relations don't add information, I'm talking about the data, not about what shows up on any particular map. The information is already there without the relation, it's just not easily visible on osm.org.

However, the osm.org website has never intentionally added the ability to render or browse 3D buildings. So any ability to inspect 3D buildings on osm.org is pretty much accidental at this point. It's still an advantage to be able to do so, but I feel that it's not an important enough benefit on its own to justify using building relations. Instead of altering the data to achieve this result, I'd much rather see the software improved.

And just to avoid a possible misunderstanding: Processing building relations isn't particularly hard, and as building relations cannot always be avoided (most of the time, yes, but not always), that ability is necessary for a feature-complete 3D renderer anyway. So my concern isn't processing the data, it's editing it.

(29 Oct '17, 14:57) Tordanik

Most 3D buildings in the database do not use building relations. In the absence of relations, building parts simply belong to the building that geometrically contains them. Situations where that simple rule doesn't work are very rare, but they do exist: When multiple building outlines overlap, relations are needed to avoid ambiguity.

Except in those rare cases, building relations are redundant and provide no additional information. Adding them would not only be a waste of time, it would also further raise the barrier of entry for new mappers (who often consider relation editing challenging and counter-intuitive). As such, adding them unnecessarily is generally not a good idea.

To create a building relation in JOSM, follow the following steps:

  • Select all the building parts and building outlines (use shift+click or draw a selection box).
  • Create a new relation by using the "create new relation" button.
  • The relation editor will open. Add all the selected elements to the relation.
  • Add the role part to all parts, and the role outline to the outline.
  • Add the tag type=building to the relation itself.
  • Close the relation editor by pressing "OK".

You can also create a buildling relation in iD as follows:

  • Select the building outline.
  • In the "all relations" section on the bottom left, click the "+" button and select "New relation".
  • There's no preset for building relation, so select the plain "Relation".
  • In the "type" field, enter building.
  • In the "all members" section below that, add the role outline for your building outline.
  • Now perform the following steps for each building part:
  • Select the building part
  • In the "all relations" section on the bottom left, click the "+" button and select your recently created building relation from the drop-down list.
  • Add part in the role field that appears.
permanent link

answered 27 Oct '17, 19:40

Tordanik's gravatar image

Tordanik
12.0k15106147
accept rate: 35%

edited 27 Oct '17, 20:07

Cheers, buddy

(28 Oct '17, 02:54) chachafish

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:

×252
×128
×37

question asked: 27 Oct '17, 18:53

question was seen: 3,491 times

last updated: 29 Oct '17, 14:57

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