Sk:Prvky

From OpenStreetMap Wiki
(Redirected from SK:Elements)
Jump to: navigation, search
Dostupné jazyky — Elements
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Baso Minangkabau · bosanski · brezhoneg · català · čeština · corsu · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · latviešu · Lëtzebuergesch · lietuvių · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 吴语 · 粵語 · 中文(繁體)‎ · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް

Mapa pozostáva zo základných prvkov uzol (node) a cesta (way). Vlastnosti prvkov sú určené dvojicami klúč (key),hodnota kľúča (value). Všetky používateľské rozhrania na úpravu mapy používajú tieto základné prvky a umožňujú zadávať hodnoty pre kľúče a hodnoty kľúčov.

Základné prvky sú zhodné s ich internou reprezentáciou v databáze (pozri Data Primitives angl.).

Uzol (node) Uzol

Node element.

Uzly sú základným stavebným prvkom OSM schémy. Uzly pozostávajú z hodnôt zemepisnej šírky a zemepisnej dĺžky (latitude a longitude). Tretí, voliteľný rozmer, hodnota nadmorskej výšky (altitude) môže byť zaznamenávaná. Kľúč key:ele a uzol môže byť tiež definovaný pre daný layer=* (vrstva) alebo level=* (úroveň).

Mesto, alebo dedina môže byť reprezentovaná uzlom s place=* (miesto) a name=* (názov).

Uzly bez ďalších prepojení na iné prvky sa používajú na popis miest, bodov záujmu a pod. V tomto prípade musí mať uzol priradenú aspoň jednu dvojicu kľúč, hodnota kľúča, ktorá hovorí o tom, ako sa uzol má interpretovať (pozri Sk:Map Features, alebo Map Features angl.).

V niektorých prípadoch majú uzly popri ceste značky (tag); ako power=tower (veža) pre reprezentáciu stĺpu s elektrickým vedením, alebo building=entrance pre určenie vstupu do budovy.

Cesta (way) Cesta Uzavretá cesta

way element.

Cesta je prepojenie uzlov, ktoré popisuje priebeh cesty. Môže predstavovať napríklad ulicu, diaľnicu ale aj rieku...

Cestu tvoria uzly, na ktorých má cesta rovnaké vlastnosti napr. rovnaký typ cesty, rovnaké obmedzenie rýchlosti. Neskor môže byť cesta rozdelená na menšie časti, keď sa zistí, že existujúca cesta nemá rovnaké vlastnosti po celej svojej dĺže.

Cesta musí mať priradenú aspoň jednu dvojicu kľúč, hodnota kľúča.

Oblasť (area) Oblasť

Area element.

Oblasť nie je skutočný prvok, pretože je to v podstate cesta, ktorej koniec je v jej začiatku.

Relation Relation

Main article: Relation Help translate this into Slovak!

A relation is a multi-purpose data structure that documents a relationship between two or more data elements (nodes, ways, and/or other relations). Examples include:

  • A route relation, which lists the ways that form a major (numbered) highway, a cycle route, or a bus route.
  • A turn restriction that says you can't turn from one way into another way.
  • A multipolygon that describes an area (whose boundary is the 'outer way') with holes (the 'inner ways').

Thus, relations can have different meanings. The relation's meaning is defined by its tags. Typically, the relation will have a 'type' tag. The relation's other tags need to be interpreted in light of the type tag.

The relation is primarily an ordered list of nodes, ways, or other relations. These objects are known as the relation's members.

Each element can optionally have a role within the relation. For example, a turn restriction would have members with "from" and "to" roles, describing the particular turn that is forbidden.

A single element such as a particular way may appear multiple times in a relation.

Tag Tag

Main article: Tag Help translate this into Slovak!

All types of data element (nodes, ways and relations) can have tags. Tags describe the meaning of the particular element to which they are attached.

A tag consists of two free format text fields; a 'key' and a 'value'. Each of these are Unicode strings of up to 255 characters. For example, highway=residential defines the way as a road whose main function is to give access to people's homes.

There is no fixed dictionary of tags, but there are many conventions documented on this wiki (starting with the Map Features page). Tag usage can be measured with the Taginfo application. If there is more than one way to tag a given feature, it's probably best to use the most common approach.

Spoločné tagy

Within the OSM database, we store these attributes for nodes, ways and relations. Your application may not need to make use of all of them, and some third-party extracts produced from OSM data may not reproduce them all.

Name Value Description
id integer (64-bit) Used for identifying the element. Element types have their own ID space, so there could be a node with id=100 and a way with id=100, which are unlikely to be related or geographically near to each other.
Positive (>0) values are used for all existing elements (and will remain assigned when they are modified or deleted); negative values (<0) are reserved (their scope limited to the current changeset and never stored in the database) and only used when sending data to the OSM database for identifying new objects to create and reference them in other created or modified objects (the server will replace these temporary identifiers sent by the editing application, by assigning an actual positive identifier for each created object, and will return a mapping from the negative identifiers used to their assigned positive identifiers).
user character string The display name of the user who last modified the object (informative only and may be empty). A user can change their display name at any time (existing elements will reflect the new user name without needing any version change).
uid integer The numeric identifier of the user who last modified the object. An user identifier never changes.
timestamp W3C standard date and time formats. Time of the last modification (e.g. "2016-12-31T23:59:59.999Z").
visible "true" or "false" Whether the object is deleted or not in the database, if visible="false" then the object should only be returned by history calls.
version integer The edit version of the object. Newly created objects start at version 1 and the value is incremented by the server when a client uploads a new version of the object. The server will reject a new version of an object if the version sent by the client does not match the current version of the object in the database.
changeset integer The changeset number in which the object was created or updated (supporting 64-bit is recommended in applications for compatibility with long term evolution of the OSM database, but applications that only query data without updating them may ignore this informative attribute).

Of course, in addition, we store the tags, and also a full editing history of every element.

Viď tiež