Search:
Login
Preferences
Help/Guide
About Trac
Register
Forgot your password?
Wiki
Timeline
Changelog
Browse Source
View Tickets
New Ticket
Roadmap
Builds
Sonar
Search
Context Navigation
+0
Start Page
Index
History
Editing Ru:Help/Plugin/TurnRestrictions
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
[[TranslatedPages(revision=40,outdated=В процессе перевода)]] = Модуль -> Turn Restrictions = [[Image(/pluginicon/turnrestrictions.jar/images/preferences/turnrestrictions.png)]] [[TOC(noheading,inline)]] == Введение == В OpenStreetMap '''ограничение на поворот''' ограничивает варианты навигации. Оно отображает тот факт, что правилами дорожного движения запрещён поворот с одной [wiki:/Ru:Help/Concepts/Object#Ways линии] (например, дороги, велодорожки и т.п.) на другую. Например, ограничение на иллюстрации ниже запрещает ехать прямо. Автомобили должны поворачивать налево на перекрёстке двух дорог (в точке с ролью "via"). Ограничения на поворот важны для программ навигации и прокладки маршрутов, использующих данные OSM. [[Image(wiki:Help/Plugin/TurnRestrictions:only_left_turn_sample.png)]] Модуль {{{turnrestrictions}}} позволяет редактировать ограничения на поворот. Он состоит из двух главных компонентов: 1. '''Диалоговая панель «Ограничения на поворот»''' - отображается в ленте диалоговых панелей справа. Она содержит список ограничений на поворот в текущем наборе данных и позволяет создавать или удалять ограничения или запускать редактор ограничений на поворот для их правки. 2. '''Редактор ограничений на поворот''' - специальный редактор для правки ограничений на поворот. == Модель тегирования == Ограничения на поворот — это стандартные объекты карты, описанные в [osmwiki:Relation:restriction OSM wiki]. Технически, ограничение на поворот представляет собой [wiki:/Ru:Help/Concepts/Object#Relations отношение]. * Оно должно иметь участника с ролью '''{{{from}}}''' (откуда), представляющего собой [wiki:/Ru:Help/Concepts/Object#Ways линию]. Мы будем называть его '''''from'''''-'''линией'''. * Оно должно иметь участника с ролью '''{{{to}}}''' (куда), представляющего собой [wiki:/Ru:Help/Concepts/Object#Ways линию]. Будем называть его '''''to'''''-'''линией'''. * Оно должно иметь как минимум одного участника с роль {{{via}}} (через), представляющего собой [wiki:Ru:Help/Concepts/Object#Nodes точку] или [wiki:/Help/Concepts/Object#Ways линию]. Будем называть его '''''via'''''-'''объектом'''. {{{ #!comment *************************************************************************************************************************** }}} == Use Cases == === Создание ограничения на поворот ===#CreateANewTurnRestriction Есть несколько способов создать ограничение на поворот. Во-первых, можно открыть редактор ограничений для нового ограничения из диалоговой панели «Ограничения на поворот»: 1. Нажмите [[Image(source:/trunk/images/new.png,20)]] в диалоговой панели или выберите [[Image(source:/trunk/images/new.png,20)]]'''Создать''' в контекстном меню. Или же можно открыть редактор с помощью комбинации клавиш: 1. Нажмите комбинацию клавиш для создания или правки ограничения на поворот. На большинстве платформ это '''{{{Ctrl+Shift+T}}}'''. 1. Если объект из текущего выделения уже участвует в ограничении на поворот, появится следующее окно. [[Image(wiki:Help/Plugin/TurnRestrictions:create-turn-restriction-popup.png)]] [[BR]] Просто нажмите [[Image(source:/trunk/images/new.png,20)]] '''Создать новое ограничение на поворот''', чтобы открыть редактор для нового ограничения, либо нажмите клавишу '''{{{N}}}''' или '''{{{Enter}}}'''. В обоих случаях модуль {{{turnrestrictions}}} создаст новое ограничение на поворот с объектами из текущего выделения JOSM: 1. Первая выделенная линия станет '''''from'''''-линией 1. Последняя выделенная лини станет '''''to'''''-линией 1. Если линии '''''from''''' и '''''to''''' имеют общую точку, она станет '''''via'''''-объектом. Таким образом, для быстрого создания ограничения на поворот 1. Выделите линии '''''from''''' и '''''to''''' в JOSM 1. Нажмите '''{{{Ctrl+Shift+T}}}''' 1. Выберите тип ограничения на поворот и сохраните его. === Редактирование ограничения на поворот === #EditingATurnRestriction Существует несколько способов открыть редактор ограничений. Во-первых, можно открыть его для существующего ограничения из диалоговой панели «Ограничение на поворот»: 1. Выберите ограничение в диалоговой панели 1. Нажмите [[Image(source:/trunk/images/dialogs/edit.png,20)]] или выберите [[Image(source:/trunk/images/dialogs/edit.png,20)]]'''Правка''' в контекстном меню. Во-вторых, можно открыть его комбинацией клавиш: 1. Нажмите комбинацию для создания и правки ограничений на поворот. На большинстве платформ это '''{{{Ctrl+Shift+T}}}'''. 1. Если объекты из текущего выделения уже участвуют в ограничении на поворот, появится следующее окно. [[Image(wiki:Help/Plugin/TurnRestrictions:create-turn-restriction-popup.png)]] [[BR]] Просто выполните двойной щелчок на ограничении, которое нужно отредактировать. Или, для первых 9 ограничений в окне можно воспользоваться клавишами от '''1''' до '''9''' для запуска редактора ограничений. В примере на иллюстрации можно нажать '''1''' для начала редактирования. Таким образом, для быстрого редактирования ограничений на поворот 1. Выделите линии '''''from''''' или '''''to''''' в JOSM 1. Нажмите '''{{{Ctrl+Shift+T}}}''' 1. Нажмите '''{{{1}}}''' для запуска редактора ограничений на поворот === Удаление ограничения на поворот === Существует несколько способов удалить ограничение. Во-первых, можно сделать это из диалоговой панели «Ограничения на поворот»: 1. Выберите ограничение в диалоговой панели 1. Нажмите '''{{{DEL}}}''' или щёлкните на [[Image(source:/trunk/images/dialogs/delete.png,20)]]. Или выберите [[Image(source:/trunk/images/dialogs/delete.png,20)]]'''Удалить''' из контекстного меню. Можно также [#EditingATurnRestriction открыть редактор ограничений на поворот] и нажать [[Image(source:/trunk/images/dialogs/delete.png)]] в его панели инструментов. {{{ #!comment ********************************************************************************************* Turn Restriction Toggle Dialog ********************************************************************************************* }}} == Turn Restriction Toggle Dialog == #TurnRestrictionToggleDialog The Turn Restriction Toggle Dialog helps you to keep track of the turn restrictions in the current edit layer. Here's a screenshot of the toggle dialog and its popup menu:[[br]] [[Image(wiki:Help/Plugin/TurnRestrictions:toggle-dialog-screenshot.png)]] If 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. You can apply some commands to the turn restrictions displayed in this dialog. ||'''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|| ||'''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|| ||'''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.|| ||'''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.|| ||'''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.|| {{{ #!comment ********************************************************************************************* Turn Restriction Editor ********************************************************************************************* }}} == Turn Restriction Editor ==#TurnRestrictionEditor The Turn Restriction Editor allows you to create and edit turn restriction. It provides two user interfaces: * a '''Basic Editor'''. This is a special purpose user interface for editing the properties of a turn restriction. * an '''Advanced Editor'''. This is a generic user interface for editing the raw data elements of the OSM relation which represents a turn restriction. You 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. === Basic Editor === #BasicEditor The Basic Editor allows you to set the '''''from'''''-way, the '''''to'''''-way, and exceptions to the turn restriction for a selection of vehicle types. In order to set the '''''from'''''-way 1. Select a way in the current edit layer 1. '''Drag''' it from the list of selected objects (on the left in the editor) onto the input field '''From:''' Alternatively, you can 1. Select a way in the current edit layer 1. 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 1. 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) [[Image(wiki:Help/Plugin/TurnRestrictions:sample-screen-shot-1.png)]] In 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. The following screen shot shows the Basic Editor configured to display/edit ''via''-objects too. [[Image(wiki:Help/Plugin/TurnRestrictions:basic-editor-with-vias.png)]] === Advanced Editor === #AdvancedEditor The 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. [[Image(wiki:Help/Plugin/TurnRestrictions:sample-screen-shot-2.png)]] ==== Editing the tags ==== In 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: * {{{type=restriction}}} - this is a required tag for a turn restriction. * {{{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]. * {{{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]. * {{{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]. ==== Editing the members ==== In the lower half of the Advanced Editor you can edit the members of the turn restriction relation. In 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]). To add members just drag-and-drop or copy/paste objects from the JOSM selection view on the right to the list of relation members. You can '''reorder''' the relation members: 1. Select one or more members 1. Press '''Alt-Up''' to move them up by one position. Alternatively you can select '''Move up''' from the popup menu. Press '''Alt-Down''' to move them down by one position. Alternatively you can select '''Move down''' from the popup menu. To edit the role of a relation member 1. Double-click on the table cell with the role 1. Edit the role and press '''ENTER''' === Resolving Errors and Warnings === #ErrorsAndWarnings [[Image(sample-screen-shot-3.png)]] {{{ #!comment ***************************************************************************************************** }}} == Preferences ==#Preferences To launch the preferences panel for the turnrestrictions plugin: 1. Click on [[Image(source:/trunk/images/preference.png)]] in the JOSM toolbar or press '''{{{F10}}}'''. 1. Click on [[Image(osm:source:applications/editors/josm/plugins/turnrestrictions/images/preferences/turnrestrictions.png,20)]] to display the preferences panel for the turnrestrictions plugin [[Image(wiki:Help/Plugin/TurnRestrictions:preferences-screen-shot.png)]] === Select icon set for road signs === The turnrestrictions plugin uses one of two icon sets for the type of turn restrictions. In the preferences panel you can configure which icon set should be used, see screenshot above. === Toggle editing of via-objects in the Basic Editor ===#ToggleEditingOfViaObjects Most 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. You 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. === Configure shortcut for creating/editing a turn restriction === In 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. Be 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. == See also == * [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] ---- Назад к [wiki:/Ru:Plugins#JOSMdocu Справке по модулям][[BR]] Back to [wiki:/Ru:Help Основной странице справки]
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.