Changes between Version 6 and Version 7 of Help/Concepts/Object
- Timestamp:
- 2010-07-09T01:54:48+02:00 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Concepts/Object
v6 v7 13 13 * [[Image(source:/trunk/images/data/node.png)]] - a '''node''' is an individual point with a defined position. 14 14 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 re spresent 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'''. 16 16 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 assig end a '''role''', for instance `stop` for a bus stop in the bus route, or `forward` for a road segmentewhich 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. 18 18 19 19 == Tags == 20 A '''tag''' is a name/value pair assig end 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 aretwoexamples:20 A '''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: 21 21 * `name`=`Main road` assigned to a '''way'''. This tag indicates that the name of the way is `Main road`. 22 22 * `amenity`=`restaurant` assigned to a '''node'''. This tag indicates that the '''node''' represents a restaurant in the real-world. … … 32 32 oneway=yes 33 33 }}} 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.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. 35 35 36 36 You 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.
