Changes between Version 6 and Version 7 of Help/Concepts/Object


Ignore:
Timestamp:
2010-07-09T01:54:48+02:00 (16 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Help/Concepts/Object

    v6 v7  
    1313 * [[Image(source:/trunk/images/data/node.png)]] - a  '''node'''  is an individual point with a defined position.
    1414
    15  * [[Image(source:/trunk/images/data/way.png)]] - a '''way''' is a sequence of nodes. Despite its name a '''way''' doesn't represent ways in the real-world only. An OSM '''way''' is also used to respresent a river, the boundaries of a country, or even a building. If a '''way''' is closed, i.e. if the last node is the same as  the first node, it is also called an '''area'''.
     15 * [[Image(source:/trunk/images/data/way.png)]] - a '''way''' is a sequence of nodes. Despite its name a '''way''' doesn't represent ways in the real-world only. An OSM '''way''' is also used to represent a river, the boundaries of a country, or even a building. If a '''way''' is closed, i.e. if the last node is the same as  the first node, it is also called an '''area'''.
    1616
    17  * [[Image(source:/trunk/images/data/relation.png)]] - a '''relation''' is an sequence of other objects, for instance a sequence of '''ways''' (representing road segments) and '''nodes''' (representing bus stops) which represent a bus route. Each object participating in a '''relation''' can be assigend a '''role''', for instance `stop` for a bus stop in the bus route, or `forward` for a road segmente which is part of the bus route from the start to the terminal station.
     17 * [[Image(source:/trunk/images/data/relation.png)]] - a '''relation''' is an sequence of other objects, for instance a sequence of '''ways''' (representing road segments) and '''nodes''' (representing bus stops) which represent a bus route. Each object participating in a '''relation''' can be assigned a '''role''', for instance `stop` for a bus stop in the bus route, or `forward` for a road segment which is part of the bus route from the start to the terminal station.
    1818
    1919== Tags ==
    20 A '''tag''' is a name/value pair assigend to an object. Tags are used to describe an object in detail. If we write `foo`=`bar` we mean ''The tag with key foo is assigned the value bar''. Here are two examples:
     20A '''tag''' is a name/value pair assigned to an object. Tags are used to describe an object in detail. If we write `foo`=`bar` we mean ''The tag with key foo is assigned the value bar''. Here are some examples:
    2121  * `name`=`Main road` assigned to a '''way'''. This tag indicates that the name of the way is `Main road`.
    2222  * `amenity`=`restaurant` assigned to a '''node'''. This tag indicates that the '''node''' represents a restaurant in the real-world.
     
    3232oneway=yes
    3333}}}
    34 Assigned to a way, this set of '''tags''' indicate, that the '''way''' represents a living street with name ''Main road'' (the german name be ''Hauptstrasse''). Speed is limited to 30km/h and heavy goods vehicles (hgv) are not allowed. Furthermore, it's a one way street.
     34Assigned to a way, this set of '''tags''' indicate, that the '''way''' represents a living street with name ''Main road'' (the German name be ''Hauptstrasse''). Speed is limited to 30km/h and heavy goods vehicles (hgv) are not allowed. Furthermore, it's a one way street.
    3535
    3636You are free to assign an object whatever tag you feel necessary. However, there is a list of so called [http://wiki.openstreetmap.org/wiki/Map_Features Map Features], i.e. a canonical list of '''tags''' with a well-defined meaning which are often used by mappers. Whenever possible you are adviced to stick to these tags because map renderers, routing engines, and other pieces of software rely on them.