| | 1 | [[TranslatedPages]] |
| | 2 | |
| | 3 | = Objekty - Základní stavební kameny OSM dat a map = |
| | 4 | |
| | 5 | JOSM vám pomáhá vkládat data a popis reálného světa do geo-databáze OSM. Přes ohromnou rozmanitost a komplexnost objektů reálného světa, umožňuje JOSM pracovat pouze se třemi typy objektů použitých jako základní stavební kameny pro vytváření map: [[Image(source:trunk/images/data/node.png)]] **[#Nodes body]**, [[Image(source:trunk/images/data/way.png)]] **[#Ways cesty]** a [[Image(source:trunk/images/data/relation.png)]] **[#Relations relace]**. |
| | 6 | |
| | 7 | Jednotlivým objektům lze přiřazovat **[#Tags tagy]**. Právě přiřazená sada tagů odlišuje bod reprezentující restauraci od budu reprezentujícího kostel nebo cestu reprezentující ulici od řeky, případně relaci autobusového spoje od relace cyklostezky. |
| | 8 | |
| | 9 | [[TOC(inline,heading=Obsah)]] |
| | 10 | |
| | 11 | == Body, cesty a relace == #NodesWaysRelations |
| | 12 | === Body === |
| | 13 | [[Image(source:trunk/images/data/node.png)]] **Bod** představuje jedno konkretní místo s definovanými souřadnicemi. |
| | 14 | |
| | 15 | === Cesty === |
| | 16 | [[Image(source:trunk/images/data/way.png)]] **Cesta** je sekvencí bodů. Bez ohledu na název, [[Image(source:trunk/images/data/way.png)]] **cesta** nemusí reprezentovat jen skutečnou cestu(silnici, chodník...) v reálném světě. OSM [[Image(source:trunk/images/data/way.png)]] **cesty** reprezentují tké řeky, hranice států nebo například budovy. |
| | 17 | |
| | 18 | ==== Uzavřené cesty (Plochy) ==== #ClosedWays |
| | 19 | Pokud je [[Image(source:trunk/images/data/closedway.png)]] **cesta** uzavřená, tzn. poslední a první [[Image(source:trunk/images/data/node.png)]] **bod** cesty jsou stejné, nazývá se také [[Image(source:trunk/images/data/closedway.png)]] **plochou** nebo **oblastí**. |
| | 20 | |
| | 21 | === Relace === |
| | 22 | [[Image(source:trunk/images/data/relation.png)]] **Relation** je sada ostatních objektů - [[Image(source:trunk/images/data/way.png)]] **cest** (reprezentujících například silniční úseky) a [[Image(source:trunk/images/data/node.png)]] **bodů** (reprezentujících například autobusové zastávky). Taková relace pak představuje trasu autobusové linky. Každému objektu v [[Image(source:trunk/images/data/relation.png)]] **relaci** lze přidělit **roli**, například `stop` pro autobusovou zastávku nebo `forward` pro segment cesty jíž projíždí autobusová linka pouze po směru trasy. |
| | 23 | |
| | 24 | == Tagy == |
| | 25 | **Tag** je kombinace název/hodnota přidělená objektu. Tagy jsou používány k detailnímu popisu objektů. Pokud napíšeme `foo`=`bar` míníme tím ''Tagu s klíčem foo byla přidělena hodnota bar''. Několik příkladů: |
| | 26 | * `name`=`Křižíkova` přiděleno **cestě**. Tento tag indikuje, že se cesta jmenuje `Křižíkova`. |
| | 27 | * `amenity`=`restaurant` přiděleno **bodu**. tento tag indikuje, že **bod** představuje v reálném světě restauraci. |
| | 28 | * `route`=`bus` přiděleno **relaci**. Tento tag indikuje, že relace představuje autobusovou linku. |
| | 29 | |
| | 30 | Tagy lze různě kombinovat. Objektu může být přiděleno libovolné množství tagů. Komplexnější příklad: |
| | 31 | |
| | 32 | {{{ |
| | 33 | highway=living_street |
| | 34 | name=Křižíkova |
| | 35 | name:de=Hauptstrasse |
| | 36 | maxspeed=30 |
| | 37 | hgv=no |
| | 38 | oneway=yes |
| | 39 | }}} |
| | 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. |
| | 42 | |
| | 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. |
| | 44 | |
| | 45 | In the [[Image(source:trunk/images/dialogs/propertiesdialog.png)]] [Dialog/Properties Properties Dialog] you can assign tags to an object, remove tags from an object, or edit assigned tags. |
| | 46 | |
| | 47 | == Object ids == |
| | 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. |
| | 56 | |
| | 57 | Alternatively, you can browse the objects directly by entering following address in your web browser: |
| | 58 | |
| | 59 | {{{ |
| | 60 | http://www.openstreetmap.org/browse/[node/way/relation]/[ID] |
| | 61 | }}} |
| | 62 | |
| | 63 | == Object versions == |
| | 64 | 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 | |
| | 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]. |
| | 71 | |
| | 72 | ---- |
| | 73 | Back to [wiki:/Help Main Help] |