Changes between Version 17 and Version 18 of Help/Concepts/Object
- Timestamp:
- 2012-01-24T18:32:38+01:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Concepts/Object
v17 v18 11 11 == Nodes, ways, and relations == #NodesWaysRelations 12 12 === Nodes === 13 [[Image(source:trunk/images/data/node.png)]] A **node** is an individual point with a defined position. 13 [[Image(source:trunk/images/data/node.png,20)]] A **node** is an individual point with a defined position. 14 14 15 15 === Ways === 16 [[Image(source:trunk/images/data/way.png)]] A **way** is a sequence of nodes. Despite its name a [[Image(source:trunk/images/data/way.png)]] **way** doesn't represent ways in the real-world only. An OSM [[Image(source:trunk/images/data/way.png)]] **way** is also used to represent a river, the boundaries of a country, or even a building. 16 [[Image(source:trunk/images/data/way.png,20)]] A **way** is a sequence of nodes. Despite its name a [[Image(source:trunk/images/data/way.png)]] **way** doesn't represent ways in the real-world only. An OSM [[Image(source:trunk/images/data/way.png)]] **way** is also used to represent a river, the boundaries of a country, or even a building. 17 17 18 18 ==== Closed Ways (Areas) ==== #ClosedWays 19 If a [[Image(source:trunk/images/data/closedway.png)]]**way** is closed, i.e. if the last [[Image(source:trunk/images/data/node.png)]] **node** is the same as the first [[Image(source:trunk/images/data/node.png)]] **node**, it is also called an [[Image(source:trunk/images/data/closedway.png)]] **area**.19 [[Image(source:trunk/images/data/closedway.png,20)]] If a **way** is closed, i.e. if the last [[Image(source:trunk/images/data/node.png)]] **node** is the same as the first [[Image(source:trunk/images/data/node.png)]] **node**, it is also called an [[Image(source:trunk/images/data/closedway.png)]] **area**. 20 20 21 21 === Relations === 22 [[Image(source:trunk/images/data/relation.png)]] A **relation** is an sequence of other objects, for instance a sequence of [[Image(source:trunk/images/data/way.png)]] **ways** (representing road segments) and [[Image(source:trunk/images/data/node.png)]] **nodes** (representing bus stops) which represent a bus route. Each object participating in a [[Image(source:trunk/images/data/relation.png)]] **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 and which is only used in forward direction. 22 [[Image(source:trunk/images/data/relation.png,20)]] A **relation** is an sequence of other objects, for instance a sequence of [[Image(source:trunk/images/data/way.png)]] **ways** (representing road segments) and [[Image(source:trunk/images/data/node.png)]] **nodes** (representing bus stops) which represent a bus route. Each object participating in a [[Image(source:trunk/images/data/relation.png)]] **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 and which is only used in forward direction. 23 23 24 24 == Tags == 25 25 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: 26 * `name`=`Main road` assigned to a **way**. This tag indicates that the name of the wayis `Main road`.27 * `amenity`=`restaurant` assigned to a **node**. This tag indicates that the **node** represents a restaurant in the real-world. 28 * `route`=`bus` assigned to a **relation**. This tag indicates that the relationrepresents a bus route.26 * `name`=`Main road` assigned to a [[Image(source:trunk/images/data/way.png)]] **way**. This tag indicates that the name of the [[Image(source:trunk/images/data/way.png)]] **way** is `Main road`. 27 * `amenity`=`restaurant` assigned to a [[Image(source:trunk/images/data/node.png)]] **node**. This tag indicates that the [[Image(source:trunk/images/data/node.png)]] **node** represents a restaurant in the real-world. 28 * `route`=`bus` assigned to a [[Image(source:trunk/images/data/relation.png)]] **relation**. This tag indicates that the [[Image(source:trunk/images/data/relation.png)]] **relation** represents a bus route. 29 29 30 30 Tags can be combined. An object can carry as many tags as necessary. Here's a more complex example: … … 39 39 }}} 40 40 41 Assigned to a [[Image(source:trunk/images/data/way.png)]] **way**, this set of **tags** indicate, that the [[Image(source:trunk/images/data/way.png)]] '''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.41 Assigned to a [[Image(source:trunk/images/data/way.png)]] **way**, this set of **tags** indicate, that the [[Image(source:trunk/images/data/way.png)]] **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. 42 42 43 43 You are free to assign an object whatever tag you feel necessary. However, there is a list of so called [https://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. … … 47 47 == Object ids == 48 48 The OSM server assigns each object a unique number, the **object ID** or **OSM ID**. A new object doesn't have an ID (it's ID is 0) until it is uploaded the first time to the OSM server. 49 50 Under **''[[Image(source:trunk/images/preference.png)]] [Action/Preferences Preferences] -> [[Image(source:trunk/images/preferences/display.png,20)]] [Preferences/Display Display Settings] -> Look and Feel''** it is possible to en- or disable the display of objects ids in the toggle dialogs. 51 52 With **''[Menu/File File] -> [[Image(source:trunk/images/downloadprimitive.png)]] [Action/DownloadObject Download object ...]''** (''{{{Ctrl+Shift+O}}}'') it is possible to download **objects** by Ids. 53 54 **''[Menu/View View] -> [[Image(source:trunk/images/about.png)]] [Action/InfoAboutElements Advanced info]''** (''{{{Ctrl+I}}}'') opens seperated windows with informations about selected objects in text format. [[BR]] 55 **''[Menu/View View] -> [[Image(source:trunk/images/about.png)]] [Action/InfoAboutElementsWeb Advanced info (web)]''** (''{{{Ctrl+Shift+I}}}'') opens the **objects' pages** of selected objects on the [http://www.openstreetmap.org OSM website] in your web browser. 49 * Under **''[[Image(source:trunk/images/preference.png)]] [Action/Preferences Preferences] -> [[Image(source:trunk/images/preferences/display.png,20)]] [Preferences/Display Display Settings] -> Look and Feel''** it is possible to en- or disable the display of objects ids in the toggle dialogs. 50 * With **''[Menu/File File] -> [[Image(source:trunk/images/downloadprimitive.png)]] [Action/DownloadObject Download object ...]''** {''{{{Ctrl+Shift+O}}}''} it is possible to download **objects** by Ids. 51 * **''[Menu/View View] -> [[Image(source:trunk/images/about.png)]] [Action/InfoAboutElements Advanced info]''** {''{{{Ctrl+I}}}''} opens seperated windows with informations about selected objects in text format. 52 * **''[Menu/View View] -> [[Image(source:trunk/images/about.png)]] [Action/InfoAboutElementsWeb Advanced info (web)]''** {''{{{Ctrl+Shift+I}}}''} opens the **objects' pages** of selected objects on the [http://www.openstreetmap.org OSM website] in your web browser. 56 53 57 54 Alternatively, you can browse the objects directly by entering following address in your web browser: … … 64 61 Each object has a **version**. The **version** is incremented whenever the object is uploaded to the server and the OSM server not only stores the most recent version of an object, but it's complete **history**. 65 62 66 **''[Menu/View View] -> [[Image(source:trunk/images/about.png)]] [Action/ObjectHistory History]''** (''{{{Ctrl+H}}}'') opens the [Dialog/History#Workingwiththehistorybrowser History Browser]. The History Browser will show you the **versions** of a particular object. 67 [[BR]] 68 Alternatively, **''[Menu/View View] -> [[Image(source:trunk/images/about.png)]] [Action/ObjectHistoryWeb History (web)]''** (''{{{Ctrl+Shift+H}}}'') opens a page on the [http://www.openstreetmap.org OSM website] in your web browser which displays the object history, too. 69 70 In the [[Image(source:trunk/images/dialogs/history.png)]] [Dialog/History History Dialog] you can load the **history** of an object and launch the [Dialog/History#Workingwiththehistorybrowser History Browser]. 63 * **''[Menu/View View] -> [[Image(source:trunk/images/about.png)]] [Action/ObjectHistory History]''** {''{{{Ctrl+H}}}''} opens the [Dialog/History#Workingwiththehistorybrowser History Browser]. The History Browser will show you the **versions** of a particular object. 64 * Alternatively, **''[Menu/View View] -> [[Image(source:trunk/images/about.png)]] [Action/ObjectHistoryWeb History (web)]''** {''{{{Ctrl+Shift+H}}}''} opens a page on the [http://www.openstreetmap.org OSM website] in your web browser which displays the object history, too. 65 * In the [[Image(source:trunk/images/dialogs/history.png)]] [Dialog/History History Dialog] you can load the **history** of an object and launch the [Dialog/History#Workingwiththehistorybrowser History Browser]. 71 66 72 67 ----