Changes between Version 9 and Version 10 of Ru:Help/Plugin/TurnRestrictions


Ignore:
Timestamp:
2017-12-22T08:28:37+01:00 (8 years ago)
Author:
ak099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Ru:Help/Plugin/TurnRestrictions

    v9 v10  
    1 [[TranslatedPages(revision=0)]]
    2 = Ограничение на поворот =
     1[[TranslatedPages(revision=40,outdated=В процессе перевода)]]
    32
    4 == Описание ==
    5 Модуль JOSM, позволяющий легко содавать и редактировать отношения типа "Ограничения на поворот".
     3=  Модуль -> Turn Restrictions =
     4[[Image(/pluginicon/turnrestrictions.jar/images/preferences/turnrestrictions.png)]]
     5[[TOC(noheading,inline)]]
    66
    7 == Полезные сылки ==
    8 Описание модуля в вики OSM: http://wiki.openstreetmap.org/wiki/RU:JOSM/Plugins/Turnrestrictions
     7== Введение ==
     8В OpenStreetMap '''ограничение на поворот''' ограничивает варианты навигации. Оно отображает тот факт, что правилами дорожного движения запрещён поворот с одной [wiki:/Ru:Help/Concepts/Object#Ways линии] (например, дороги, велодорожки и т.п.) на другую. Например, ограничение на иллюстрации ниже запрещает ехать прямо. Автомобили должны поворачивать налево на перекрёстке двух дорог (в точке с ролью "via"). Ограничения на поворот важны для программ навигации и прокладки маршрутов, использующих данные OSM. 
     9
     10[[Image(wiki:Help/Plugin/TurnRestrictions:only_left_turn_sample.png)]]
     11
     12Модуль {{{turnrestrictions}}} позволяет редактировать ограничения на поворот. Он состоит из двух главных компонентов:
     13
     14 1. '''Диалоговая панель «Ограничения на поворот»''' - отображается в ленте диалоговых панелей справа. Она содержит список ограничений на поворот в текущем наборе данных и позволяет создавать или удалять ограничения или запускать редактор ограничений на поворот для их правки.
     15
     16 2. '''Редактор ограничений на поворот''' - специальный редактор для правки ограничений на поворот.
     17
     18== Модель тегирования ==
     19Turn restrictions a standard map feature decribed on the [osmwiki:Relation:restriction OSM wiki].
     20
     21Technically, a turn restriction is an OSM [wiki:/Help/Concepts/Object#Relations relation]. A turn restriction
     22
     23 * must have a relation member with role '''{{{from}}}''' referring to a [wiki:/Help/Concepts/Object#Ways way]. We call this way the '''''from'''''-'''way'''.
     24 * must have a relation member with role '''{{{to}}}''' referring to a [wiki:/Help/Concepts/Object#Ways way]. We call this way the '''''to'''''-'''way'''.
     25 * must have at least of relation member with role {{{via}}} referring to a [wiki:Concepts/Object#Nodes node] or [wiki:/Help/Concepts/Object#Ways way]. We call these objects '''''via'''''-'''object'''.
     26
     27{{{
     28#!comment
     29***************************************************************************************************************************
     30}}}
     31== Use Cases ==
     32=== Creating a turn restriction ===#CreateANewTurnRestriction
     33There are several possibilities to create a new turn restriction. First, you can lauch the Turn Restriction Editor for a new turn restriction from the Turn Restriction Toggle Dialog:
     34 1. Click on [[Image(source:/trunk/images/new.png,20)]] in the Turn Restriction Toggle Dialog. Alternatively, select [[Image(source:/trunk/images/new.png,20)]]'''New''' from the popup menu.
     35
     36Alternatively, you can launch a new editor with a keyboard shortcut:
     371. Press the shortcut for creating or editing a turn restriction. On most platforms the shortcut is '''{{{Ctrl+Shift+T}}}'''.
     381. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up.
     39 
     40 [[Image(create-turn-restriction-popup.png)]] [[BR]]
     41 Just click on  [[Image(source:/trunk/images/new.png,20)]] '''Create new turn restriction''' to launch the turn restriction editor for a new turn restriction. Alternatively, press the key '''{{{N}}}''' or hit '''{{{Enter}}}'''.
     42
     43In both cases, the {{{turnrestrictions}}} plugin initializes the new turn restriction with objects from the current JOSM selection:
     441. The first selected way in the JOSM selection becomes the '''''from'''''-way.
     451. The last selected way in the JOSM selection becomes the '''''to'''''-way
     461. If the '''''from'''''- and '''''to'''''-way have a node in common, this node becomes a ''via''-object.
     47
     48A fast way to create a turn restriction is therefore to
     491. Select the '''''from'''''- and '''''to'''''-way in JOSM
     501. Press '''{{{Ctrl+Shift+T}}}'''
     511. Choose the type of the turn restriction and save it.   
     52   
     53=== Editing a turn restriction === #EditingATurnRestriction
     54There are several possible ways to launch a Turn Restriction Editor in order to edit a turn restriction. First, you can lauch the Turn Restriction Editor for an existing turn restriction from the Turn Restriction Toggle Dialog:
     551. Select a turn restriction in the Turn Restriction Toggle Dialog
     561. Click on [[Image(source:/trunk/images/dialogs/edit.png,20)]]. Alternatively, select [[Image(source:/trunk/images/dialogs/edit.png,20)]]'''Edit''' from the popup menu.
     57
     58Second, you can launch a new editor with a keyboard shortcut:
     591. Press the shortcut for creating or editing a turn restriction. On most platforms the shortcut is '''{{{Ctrl+Shift+T}}}'''.
     601. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up.
     61
     62 [[Image(create-turn-restriction-popup.png)]] [[BR]]
     63 Just double-click on the turn restriction you want to edit. Alternatively, for the top 9 turn restrictions displayed in the popup window you can use the shortcuts '''1''' to '''9''' to launch the Turn Restriction Editor. In the example above, you would press '''1''' to start editing.
     64
     65A fast way to edit a turn restriction is therefore to
     661. Select the '''''from'''''- or '''''to'''''-way in JOSM
     671. Press '''{{{Ctrl+Shift+T}}}'''
     681. Type '''{{{1}}}''' to lauch the Turn Restriction Editor
     69 
     70=== Deleting a turn restriction ===
     71There are several possible ways to delete a turn restriction. First, you can delete it in the Turn Restriction Toggle Dialog:
     721. Select a turn restriction in the Turn Restriction Toggle Dialog
     731. Press '''{{{DEL}}}''' or click on [[Image(source:/trunk/images/dialogs/delete.png,20)]]. Alternatively, select [[Image(source:/trunk/images/dialogs/delete.png,20)]]'''Delete''' from the popup menu.
     74
     75Alternatively, you can [#EditingATurnRestriction launch a Turn Restriction Editor] and click on  [[Image(source:/trunk/images/dialogs/delete.png)]] in its toolbar.
     76{{{
     77#!comment
     78*********************************************************************************************
     79Turn Restriction Toggle Dialog                                                               
     80*********************************************************************************************
     81}}}
     82== Turn Restriction Toggle Dialog == #TurnRestrictionToggleDialog
     83The Turn Restriction Toggle Dialog helps you to keep track of the turn restrictions in the current edit layer.
     84
     85Here's a screenshot of the toggle dialog and its popup menu:[[br]]
     86[[Image(toggle-dialog-screenshot.png)]]
     87
     88If you tick the checkbox '''Only participating in selection''' the dialog displays only turn restrictions in which objects from the current selection are participating. If the checkbox isn't selected, then all turn restrictions in the current edit layer are displayed.
     89
     90You can apply some commands to the turn restrictions displayed in this dialog.
     91||'''Create''' a new turn restriction||Click [[Image(source:/trunk/images/new.png,15)]] or select  [[Image(source:/trunk/images/new.png,15)]]'''New''' from the popup menu||
     92||'''Edit''' a turn restriction||Select the turn restriction and click [[Image(source:/trunk/images/dialogs/edit.png,15)]] or select  [[Image(source:/trunk/images/dialogs/edit.png,15)]]'''Edit''' from the popup menu||
     93||'''Delete''' a turn restriction||Select one or more turn restrictions, press '''{{{DEL}}}''', or click on [[Image(source:/trunk/images/dialogs/delete.png,15)]] or select [[Image(source:/trunk/images/dialogs/delete.png,15)]]'''Delete''' from the popup menu.||
     94||'''Select''' the turn restriction||In order to select the turn restriction and its members in the current edit layer, first select the turn restriction in the list and then select [[Image(source:/trunk/images/selectall.png,15)]]'''Select in current data layer''' from the popup menu.||
     95||'''Zoom''' to the turn restriction||Select the turn restriction in the list and then select [[Image(source:/trunk/images/dialogs/autoscale/selection.png,15)]]'''Zoom to''' from the popup menu.||
     96
     97{{{
     98#!comment
     99*********************************************************************************************
     100Turn Restriction Editor                                                               
     101*********************************************************************************************
     102}}}
     103== Turn Restriction Editor ==#TurnRestrictionEditor
     104The Turn Restriction Editor allows you to create and edit turn restriction. It provides two user interfaces:
     105* a '''Basic Editor'''. This is a special purpose user interface for editing the properties of a turn restriction.
     106* an '''Advanced Editor'''. This is a generic user interface for editing the raw data elements of the OSM relation which represents a turn restriction.
     107
     108You can use either of these user interfaces. Regardless of whether you use the Basic Editor or the Advanced Editor you should make sure that the resulting turn restriction is valid. The turn restriction editor checks the turn restriction and shows error messages and warnings in a third user interface, i.e. the list of issues.
     109
     110=== Basic Editor === #BasicEditor
     111The Basic Editor allows you to set the '''''from'''''-way, the '''''to'''''-way, and exceptions to the turn restriction for a selection of vehicle types.
     112
     113In order to set the '''''from'''''-way
     1141. Select a way in the current edit layer
     1151. '''Drag''' it from the list of selected objects (on the left in the editor) onto the input field '''From:'''
     116
     117Alternatively, you can
     1181. Select a way in the current edit layer
     1191. Copy  it (using '''{{{Ctrl+C}}}''' or [[Image(source:/trunk/images/copy.png,20)]]'''Copy''' in the popup menu) in the list of selected objects on the right of the Turn Restriction Editor
     1201. Click on the '''From:''' field and paste the copied way (using '''{{{Ctrl+V}}}''' or [[Image(source:/trunk/images/paste.png,20)]]'''Paste''' from the popup menu)
     121
     122[[Image(sample-screen-shot-1.png)]]
     123
     124In the standard configuration, ''via''-objects aren't displayed in the Basic Editor. You have to switch to the [#AdvancedEditor Advanced Editor] to edit them. In the preferences for the turnrestrictions plugin you can change the default configuration, though. [#Preferences Launch the preference dialog] and [#ToggleEditingOfViaObjects enable displaying/editing of via-objects] in the Basic Editor.
     125
     126The following screen shot shows the Basic Editor configured to display/edit ''via''-objects too.
     127
     128[[Image(basic-editor-with-vias.png)]]
     129
     130=== Advanced Editor === #AdvancedEditor
     131The Advanced Editor allows you to edit the raw OSM data, i.e. the tags and the relation members of the relation representing the turn restriction.
     132
     133[[Image(sample-screen-shot-2.png)]]
     134
     135==== Editing the tags ====
     136In the upper half of the Advanced Editor you can edit the tags of the turn restriction. You can add tags with arbitrary keys and values but please note that some tags have a special meaning in turn restrictions:
     137
     138* {{{type=restriction}}}  - this is a required tag for a turn restriction.
     139* {{{restriction=...}}}   - the value of this tag should be one of the [osmwiki:Relation:restriction supported types for turn restrictions]. Instead of editing the raw tag value you can also select a restriction type from the drop-down box in the [#BasicEditor Basic Editor].
     140* {{{exception=...}}} -  the value of this tag should be a set of [osmwiki:Relation:restriction supported vehicle types]. Instead of editing the raw tag value you can also tick the respective vehicle types in the [#BasicEditor Basic Editor].
     141* {{{day_on=...}}}, {{{day_off=...}}}, {{{hour_on=...}}} and {{{hour_off=...}}} can be used to specify when a turn restriction is actually in place, refer to the [osmwiki:Relation:restriction OSM wiki for more information].
     142
     143
     144==== Editing the members ====
     145In the lower half of the Advanced Editor you can edit the members of the turn restriction relation.
     146
     147In addition to the ''from''-way and the ''to''-way, which you can edit in the  [#BasicEditor Basic Editor] too, you can also enter ''via''-object and a node with role {{{location_hint}}} (see  [osmwiki:Relation:restriction OSM wiki]).
     148
     149To add members just drag-and-drop or copy/paste objects from the JOSM selection view on the right to the list of relation members.
     150
     151You can '''reorder''' the relation members:
     1521. Select one or more members
     1531. Press '''Alt-Up''' to move them up by one position. Alternatively you can select '''Move up''' from the popup menu.
     154
     155 Press '''Alt-Down''' to move them down by one position. Alternatively you can select '''Move down''' from the popup menu.
     156
     157To edit the role of a relation member
     1581. Double-click on the table cell with the role
     1591. Edit the role and press '''ENTER'''
     160
     161=== Resolving Errors and Warnings === #ErrorsAndWarnings
     162[[Image(sample-screen-shot-3.png)]]
     163
     164{{{
     165#!comment
     166*****************************************************************************************************
     167}}}
     168== Preferences ==#Preferences
     169To launch the preferences panel for the turnrestrictions plugin:
     170
     1711. Click on [[Image(source:/trunk/images/preference.png)]] in the JOSM toolbar or press '''{{{F10}}}'''.
     1721. Click on [[Image(osm:source:applications/editors/josm/plugins/turnrestrictions/images/preferences/turnrestrictions.png,20)]] to display the preferences panel for the turnrestrictions plugin
     173
     174[[Image(preferences-screen-shot.png)]]
     175
     176=== Select icon set for road signs ===
     177The turnrestrictions plugin uses one of two icon sets for the type of turn restrictions. In the preferences panel
     178you can configure which icon set should be used, see screenshot above.
     179
     180=== Toggle editing of via-objects in the Basic Editor ===#ToggleEditingOfViaObjects
     181Most turn restrictions entered in OSM have a simple structure. They restrict navigation from one way to another where the two ways have exactly one node in common. This node becomes the only via-object in the turn restriction. In most cases it isn't necessary to display and/or edit it in the Basic Editor. In order to keep simple things simple, the default configuration is therefore not to show via-objects in the Basic Editor.
     182
     183You can override the standard setting, though. If you tick the respective checkbox in the preferences (see screen shot above) the list of via-objects is displayed in the Basic Editor too.
     184
     185=== Configure shortcut for creating/editing a turn restriction ===
     186In the preference dialog you can also configure the shortcut to create/edit a turn restriction. The default shortcut is '''{{{Ctrl+Shift+T}}}''' but you can change it to whatever shortcut you like.
     187
     188Be careful not to override already defined shortcuts, though. For instance, '''{{{Ctrl+S}}}''' is the defined shortcut for '''Save to file'''. If you set the turn restrictions shortcut to '''{{{Ctrl+S}}}''', then pressing '''{{{Ctrl+S}}}''' won't save the current layer any more. The turn restriction editor is launched instead.
     189
     190== See also ==
     191
     192* [http://wiki.openstreetmap.org/wiki/JOSM/Plugins/turnrestrictions Описание модуля в вики OSM] - Historic reference, development of this plugin in 2010-03 was sponsored by [http://www.skobbler.de/ skobbler GmbH]
     193
     194----
     195Назад к [wiki:/Ru:Plugins#JOSMdocu Справке по модулям][[BR]]
     196Back to [wiki:/Ru:Help Основной странице справки]