24 | | [[Image(source:trunk/images/data/node.png,20,bottom,margin-right=15,nolink)]] A **node** is an individual point with a defined position. ''With respective tags'' it can be used to indicate shops, benches, individual trees or points of drinking water. |
| 26 | [[JOSMImage(data/node,24,bottom,margin-right=15,link=)]] A **node** is an individual point with a defined position. ''With respective tags'' it can be used to indicate shops, benches, individual trees or points of drinking water. |
| 27 | |
| 28 | Only nodes have [wikitr:/Help/Concepts/Coordinates Coordinates] in the OSM data model. Ways and relations simply refer to nodes. |
| 29 | |
| 30 | ==== Common nodes ==== |
| 31 | |
| 32 | Nodes can be re-used between multiple ways. Multiple ways can refer to a single node (common node). |
| 33 | |
| 34 | A practical meaning of this is demonstrated at the [wikitr:/Help/Action/Draw#Commonnodes Draw Nodes] page. The [wikitr:/Help/Action/MergeNodes Merge Nodes] tool can be used to create common nodes. |
27 | | [[Image(source:trunk/images/data/way.png,20,middle,margin-right=15,margin-bottom=5,nolink)]] A **way** is a sequence of nodes. OSM **way** used to represent linear objects, ''with respective tags'' it can used to describe: a river bank, tree row, kerbs in the streets (among other uses). |
| 37 | [[JOSMImage(data/way,24,middle,margin-right=15,margin-bottom=5,link=)]] A **way** is a sequence of nodes ([https://en.wikipedia.org/wiki/Polygonal_chain a "polygonal chain" from ordinary geometry]). OSM **way** used to represent linear objects, ''with respective tags'' it can used to describe: a river bank, tree row, kerbs in the streets (among other uses). |
29 | | ==== Areas ==== #ClosedWays |
30 | | [[Image(source:trunk/images/data/closedway.png,20,middle,margin-right=15,margin-bottom=5,nolink)]] If a **way** is closed, i.e. if the last node is the same as the first node, it is also called an **area**. Old term for this is ''Closed Ways'' (it is still present at wiki, used in software and by some mappers; other part uses "geometry" when talking just about shape of the objects, without tags). |
| 39 | ==== Direction ==== |
| 40 | Since nodes are ordered in OSM; every way in OSM has a direction. This gives us possibility to add tags (details about object) such as [osmwiki:Key:conveying conveying=*] - to specify direction of escalators and moving walkways or [osmwiki:Key:incline incline=*] which can be used toghter with roads and footways. There [osmwiki:Category:Way_Direction_Dependent more examples] and we can't cover them all. |
32 | | Sometimes single area is not enough to represent an object (for example, a lake with an island in it), then you have to use a [wiki:Help/Concepts/Object#typemultipolygon multi-polygon] |
| 42 | **Note**: Rendering of direction in [wikitr:/Help/MapView MapView] can be set in Preferences under [wikitr:/Help/Preferences/DrawingPreference OSM Data]. |
| 43 | |
| 44 | ==== Segment ====#Segment |
| 45 | Is **a fragment between two consequent points of the way** ([https://en.wikipedia.org/wiki/Line_segment "line segment" from ordinary geometry]). This is not a part of OSM data model, but users often distinguish because of tools than operate on segment level (rather than on complete way); please, distinguish a segment(s) from complete "way"s. |
| 46 | |
| 47 | **Note**: Rendering of segments in [wikitr:/Help/MapView MapView] can be set in Preferences under [wikitr:/Help/Preferences/DrawingPreference OSM Data]. |
| 48 | |
| 49 | ==== Areas ==== #Areas |
| 50 | [[JOSMImage(data/closedway,24,middle,margin-right=15,margin-bottom=5,link=)]] If a **way** is closed, i.e. if the last node is the same as the first node, it is also called an **area**. Old term for this is ''Closed Ways'' (it is still present at wiki, used in software and by some mappers; other part uses "geometry" when talking just about shape of the objects, without tags). |
| 51 | |
| 52 | Sometimes single area is not enough to represent an object (for example, a lake with an island in it), then you have to use a [wikitr:/Help/Concepts/Object#typemultipolygon multi-polygon] |
40 | | ==== Simple explanation ==== |
41 | | [[Image(source:trunk/images/data/relation.png,20,middle,margin-right=15,margin-bottom=5,nolink)]] A **relation**: |
| 59 | This means **you can [#Tags1 skip this big "Relations" section], until you decide to add or edit a relation**. |
| 60 | |
| 61 | ==== Simple explanation ====#SimpleExplanation |
| 62 | [[JOSMImage(data/relation,24,middle,margin-right=15,margin-bottom=5,link=)]] A **relation**: |
56 | | (stub) |
| 78 | * Parts are created using "{{{outer}}}" role. ''Each multi-polygon should have at least one outer part''. |
| 79 | * Holes inside parts - using "{{{inner}}}" role. ''Each part can have from 0 to N holes''. |
| 80 | * Ways that form a ring where all ways are connected between each other using common nodes (JOSM will warn you about mistakes during validation) |
| 81 | * Rarely, holes can be nested. If nesting is more complex than ''single outer'' and ''single inner ring'', role swapping can continue: outer-inner-outer-inner-... |
| 82 | * Outer and inner rings shouldn't have common nodes (but validator will warn you about this and other mistakes) |
| 83 | |
| 84 | Multi-polygon specific tools: |
| 85 | * [wikitr:/Help/Action/CreateMultipolygon create a multipolygon] |
| 86 | * [wikitr:/Help/Action/UpdateMultipolygon update existing multipolygon] |
91 | | == Object ids == |
92 | | 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. |
93 | | * Under **''Preferences -> [[Image(source:trunk/images/preferences/display.png,18,middle)]] [Preferences/Display Display Settings] -> Look and Feel''** it is possible to en- or disable the display of objects ids in the toggle dialogs. |
94 | | * With **''File -> [[Image(source:trunk/images/downloadprimitive.png,18,bottom)]] [Action/DownloadObject Download object ...]''** it is possible to download **objects** by Ids. |
95 | | * **''View -> [[Image(source:trunk/images/info.png,18,bottom)]] [Action/InfoAboutElements Advanced info]''** opens separated windows with informations about selected objects in text format. |
96 | | * **''View -> [[Image(source:trunk/images/info.png,18,bottom)]] [Action/InfoAboutElementsWeb Advanced info (web)]''** opens the **objects' pages** of selected objects on the [osmwww: OSM website] in your web browser. |
| 119 | |
| 120 | == Technical properties == |
| 121 | |
| 122 | === Object id ===#ObjectId |
| 123 | The OSM server assigns each object a unique number, the **object ID** or **OSM ID**. |
| 124 | |
| 125 | In JOSM, a new object doesn't have an ID (its ID is 0) until it is uploaded the first time to the OSM server. |
| 126 | * Under **''[[JOSMImage(preference)]] [wikitr:/Help/Action/Preferences Preferences]''** (or **''`F12`''**) -> [[JOSMImage(preferences/display,24,link=,middle)]] **''[wikitr:/Help/Preferences/Display Display]''** it is possible to en- or disable the display of objects ids in the windows. |
| 127 | * With **''File -> [[JOSMImage(downloadprimitive)]] [wikitr:/Help/Action/DownloadObject Download object ...]''** it is possible to download **objects** by Ids. |
| 128 | |
| 129 | **Note**: The display of object ids in the [wikitr:/Help/Dialog/SelectionList Selection List] can be set in Preferences under **''[wikitr:/Help/Preferences/Display Display]''**. |
| 130 | |
| 131 | |
| 132 | === Object versions and history ===#Objectversionsandhistory |
| 133 | Version numbers (versions) were introduced to simplify wiki-style editing. Unfortunately, to track changes to ways/relations you need to use more complex tools than simple comparison by version number. |
| 134 | |
| 135 | * Contents of the relation can change without change in version or id of the relation (a way can be changed, a node can be changed, a child relation can be changed). |
| 136 | * Contents of the way can change without change in version or id of the way (a child node can be moved back and forth several times, but id of the way may stay the same). |
| 137 | |
| 138 | But you can always track complete history of one node based on history. |
| 139 | Also, you can use time sliced data (region extracts by date) to inspect how objects were changing (and refer to object id and point in time from the database). |
| 140 | |
| 141 | **Note**: The display of object versions in the [wikitr:/Help/Dialog/SelectionList Selection List] can be set in Preferences under [wikitr:/Help/Preferences/Display Display]. |
| 142 | |
| 143 | ==== Information about latest version ==== |
| 144 | * **''View -> [[JOSMImage(info)]] [wikitr:/Help/Action/InfoAboutElements Advanced info]''** (or Keyboard shortcut:**''`Ctrl+I`''**) opens separated windows with informations about selected objects in text format. |
| 145 | * **''View -> [[JOSMImage(info)]] [wikitr:/Help/Action/InfoAboutElementsWeb Advanced info (web)]''** (or Keyboard shortcut:**''`Ctrl+Shift+I`''**) opens the **objects pages** of selected objects on the [osmwww: OSM website] in your web browser. |
107 | | * **''View -> [[Image(source:trunk/images/dialogs/history.png,18,bottom)]] [Action/ObjectHistory History]''** opens the History Browser. The History Browser will show you the **versions** of a particular object. |
108 | | * Alternatively, **''View -> [[Image(source:trunk/images/dialogs/history.png,18,bottom)]] [Action/ObjectHistoryWeb History (web)]''** opens a page on the [osmwww: OSM website] in your web browser which displays the object history, too. |
| 156 | * **''View -> [[JOSMImage(dialogs/history)]] [wikitr:/Help/Action/ObjectHistory History]''** (or Keyboard shortcut:**''`Ctrl+H`''**) opens the History Browser. The History Browser will show you the **versions** of a particular object. |
| 157 | * Alternatively, **''View -> [[JOSMImage(dialogs/history)]] [wikitr:/Help/Action/ObjectHistoryWeb History (web)]''** (or Keyboard shortcut:**''`Ctrl+Shift+H`''**) opens a page on the [osmwww: OSM website] in your web browser which displays the object history, too. |