SemanticElements

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — SemanticElements
· English · Nederlands

Semantic Elements represent the geometry of physical world objects. They consist of

  • Node Point (defining points in space),
  • Way Closed way Linear (defining linear features), and
  • Area Polygon (defining simple or complex polygons, usually as area boundaries), and
  • Relation Relational (which are sometimes used to explain how other elements work together).

SemanticElements vs Elements

Elements and SemanticElements are often used interchangeably in OSM, but this can cause confusion. The former is a data primitive used to represent the later. Elements are an implementation detail, while semantic elements carry the desired meaning.

Confusion typically arrises when looking at areas, which for historical reasons can be implemented either using closed ways or multipolygons. So depending on the context, the term "way" may describe either a linear feature or an area. Specifying "osm way", "closed way", "polygon", or "linear way" might clear things up.