|The building relation is used to group elements that form a building in simple 3D modelling.|
|Status: in use|
|Tools for this tag|
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 modeling was also used for indoor mapping to group building levels, but with the introduction of Simple Indoor Mapping in 2012 these relations are deprecated.
For 3D modelling
Further details, in particular the properties that can be assigned to the individual parts of the building, are described in Simple_3D_Buildings.
|outline||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||one or more||Building parts. These parts differ from each other in terms of height, roof-shape, colour, material, ...|
|ridge||zero or more||Ways which make up the roof ridges of a building or building part.|
|edge||zero or more||Ways which make up the roof edges of a building or building part.|
For indoor mapping
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
|level_n||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||one or more||Building entrances. There should be at least one member, the main entrance.|
Examples tested 2014-12-15:
- Simple building with 3 members, the main house as the outline, two cylindrical parts on top, one of them defining the dome-shaped roof:
- 3D view: Frankfurter Tor, Berlin (osm2world)
- More complex church building with some towers and different roof types:
- 3D view: Niklolaikirche, Berlin (osm2world)
- Empire State Building
- 3D view: Empire State Building (F4)
- Indoor mapping example (with levels)
- 2D view: ECE Paris - Campus Eiffel, Paris (OpenLevelUp!)
Further Demo areas here.