Relation:building

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — Relation:building
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Baso Minangkabau · bosanski · brezhoneg · català · čeština · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · latviešu · Lëtzebuergesch · lietuvių · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · português do Brasil · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 吴语 · 粵語 · 中文(繁體)‎ · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް
Public-images-osm logo.svg building
Building part areas in building area.svg
Description
The building relation is used to group elements that form a building in simple 3D modelling.
Group: Buildings
Members
  • Way - outline
  • Way - part
  • see description for further members
Status: In use

Disambiguation: This page describes the use of relations of type=building as used as a core element in modelling Simple 3D Buildings, which is used in about 6000 relations as of 2014-12-12. There was an earlier proposal for this tag in the context of address mapping, apparently abandoned in 2007.


Relations of type=building are used to group elements that form a building in simple 3D modelling. This kind of relation is also used for indoor mapping to group building levels.

Tagging

type=building are used in two contexts: 3D modelling and indoor mapping. We will here distinguish those two usages, however they can be combined in a same relation.

For 3D modelling

They relate building:part=yes, roof:ridge=yes and roof:edge=yes to a building outline.

Further details, in particular the properties that can be assigned to the individual parts of the building, are described in Simple_3D_Buildings.

Role Elements Recurrence Comment
outline Area Relation one or more The area that makes up the building outline, e.g. the walls.
This outline needs to be tagged with Tag:building=yes or another building value for compatibility with 2D-renderers.
part Area one or more Building parts. These parts differ from each other in terms of height, roof-shape, colour, material, ...
ridge Way zero or more Ways which make up the roof ridges of a building or building part.
edge Way zero or more Ways which make up the roof edges of a building or building part.

For indoor mapping

An example of building relation (indoor mapping) and its members

In this case, this kind of relation is used to group type=level relations in a same building entity. Each level has a level_n role, where n is the level number (level_0 for ground). Entrances can be added in the relation with the entrance role. This was first described in IndoorOSM proposal. See also entrance=* and amenity=parking_entrance

Role Elements Recurrence Comment
level_n Relation one or more For type=level relations, with n as the level number (level_-1, level_0, level_1, ...). There should be at least one member (level_0).
entrance Node one or more Building entrances. There should be at least one member, the main entrance.

Examples

Examples tested 2014-12-15:

Further Demo areas here.

See also