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

I've been tracing buildings using separate areas for different roof levels as recommended on the wiki.

How should I go about tagging them and signifying that they belong to the same structure?

Here's an example:

alt text

If I were to just paste the same tags onto each shape, it would look like there were multiples of the same building. What do I do? Should I be using some kind of relation?

asked 20 Jun '11, 00:43

Sekai's gravatar image

Sekai
291558
accept rate: 0%

edited 20 Jun '11, 00:44


That recommendation on the wiki is not necessarily widely accepted. I can see the interest in rendering different roof levels from those with an interest in 3-D rendering.

It is acceptable to draw a single outline for the collective building. Where it is attached you could reasonably call it one building, and tag it as such.

If you wish to show more detail, including the multiple roof levels, a multipolygon relation is the way to go.

  • Draw the multiple, adjacent polygons.
  • Create a relation, type=multipolygon
  • building=yes
  • addr:housenumber=123
  • addr:street=Sesame Street
  • name=as appropriate
  • amenity=university; or other as appropriate
  • make each individual building outline a member of the relation, with role=outer

That should do it.

Those interested in 3D rendering will probably suggest tags for the various roof levels as well. Incomplete or contentious examples may be seen here.

permanent link

answered 20 Jun '11, 01:11

Richard%20Weait's gravatar image

Richard Weait
3.0k133452
accept rate: 17%

Thanks for the clear explanation! Am I correct in thinking that only the relation should be tagged and not the individual polygons? (as long as the tag relates to the building as a whole)

(20 Jun '11, 18:34) Sekai
1

Yes, you do not need the tags on the building ways if you have them on the relation.

(20 Jun '11, 19:10) Gnonthgol ♦

This multipolygon relation would be invalid because the outer rings must not share paths. See https://gis.stackexchange.com/questions/298307/invalid-multipolygon-of-valid-individual-polygons/298312

Map the building accordingly https://wiki.openstreetmap.org/wiki/Simple_3D_Buildings

permanent link

answered 22 Apr '21, 17:31

Robhubi's gravatar image

Robhubi
111
accept rate: 0%

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:

×930
×236
×75
×4

question asked: 20 Jun '11, 00:43

question was seen: 7,225 times

last updated: 22 Apr '21, 17:31

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