Changes between Version 13 and Version 14 of Help/Concepts/Object
- Timestamp:
- 2011-07-21T02:23:23+02:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Concepts/Object
v13 v14 10 10 11 11 == Nodes, ways, and relations == #NodesWaysRelations 12 === Nodes === #Nodes12 === Nodes === 13 13 [[Image(source:trunk/images/data/node.png)]] A '''node''' is an individual point with a defined position. 14 14 15 === Ways === #Ways16 [[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'''.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. 17 17 18 === Relations === #Relations 19 [[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 ==== 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**. 20 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 from the start to the terminal station. 20 23 21 24 == Tags == 22 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: 23 * `name`=`Main road` assigned to a '''way'''. This tag indicates that the name of the way is `Main road`.24 * `amenity`=`restaurant` assigned to a '''node'''. This tag indicates that the '''node''' represents a restaurant in the real-world.25 * `route`=`bus` assigned to a '''relation'''. This tag indicates that the relation represents a bus route.26 * `name`=`Main road` assigned to a '''way'''. This tag indicates that the name of the way is `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 relation represents a bus route. 26 29 27 30 Tags can be combined. An object can carry as many tags as necessary. Here's a more complex example: … … 34 37 oneway=yes 35 38 }}} 36 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.39 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. 37 40 38 41 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. … … 43 46 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. 44 47 45 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.48 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. 46 49 47 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.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. 48 51 49 '''View -> [[Image(source:trunk/images/about.png)]] [Action/InfoAboutElements Info about Element]'''(''{{{Ctrl+I}}}'') opens the '''objects' pages''' of selected objects on the [http://www.openstreetmap.org OSM website] in your web browser.52 **View -> [[Image(source:trunk/images/about.png)]] [Action/InfoAboutElements Info about Element]** (''{{{Ctrl+I}}}'') opens the '''objects' pages''' of selected objects on the [http://www.openstreetmap.org OSM website] in your web browser. 50 53 51 54 Alternatively, you can browse the objects directly by entering following address in your web browser: … … 58 61 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]. The History Browser will show you the '''versions''' of a particular object. 59 62 60 Alternatively, '''''View -> [[Image(source:trunk/images/about.png)]] [Action/ObjectHistory Object history]'''''opens a page on the [http://www.openstreetmap.org OSM website] in your web browser which displays the object history, too.63 Alternatively, **''View -> [[Image(source:trunk/images/about.png)]] [Action/ObjectHistory Object history]''** opens a page on the [http://www.openstreetmap.org OSM website] in your web browser which displays the object history, too. 61 64 62 65 ----
