Changes between Version 48 and Version 55 of Help/Plugin/TurnRestrictions
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Plugin/TurnRestrictions
v48 v55 4 4 = Plugin -> Turn Restrictions = 5 5 6 [[Image(source:osm/applications/editors/josm/plugins/turnrestrictions/images/preferences/turnrestrictions.png,48,link=,middle)]] 6 [[Image(source:osm/applications/editors/josm/plugins/turnrestrictions/images/preferences/turnrestrictions.png,48,link=,middle,margin-right=20)]] 7 7 8 8 == Introduction == … … 13 13 The ''**turnrestrictions**'' plugin supports editing of turn restrictions. It consists of two major components: 14 14 15 1. **Turn Restriction Toggle Dialog** - the turn restrictions toggle dialog is displayed on the right in the Toggle Dialogs Section. It displays the list of turn restrictions in the current data set and allows to create or delete turn restrictions, or to launch the Turn Restriction Editor to edit a turn restriction. 16 1. **Turn Restriction Editor** - the Turn Restriction Editor is a special purpose editor for turn restrictions. 15 1. **Turn Restriction Panel** - the turn restrictions panel is displayed on the right in sidebar. It displays the list of turn restrictions in the current data set and allows to create or delete turn restrictions, or to launch the Turn Restriction Editor to edit a turn restriction. 16 1. **Turn Restriction Editor (`Alt+Shift+2`)** - the Turn Restriction Editor is a special purpose editor for turn restrictions. 17 17 18 18 19 == Tagging model == … … 23 24 * must have a relation member with role **`from`** referring to a [wikitr:/Help/Concepts/Object#Ways way]. We call this way the **''from**''-**way**. 24 25 * must have a relation member with role **`to`** referring to a [wikitr:/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 [wikitr:/Help/Concepts/Object#Nodes node] or [wikitr:/Help/Concepts/Object#Ways way]. We call these objects **''via**''-**object**. 26 26 * must have at least one relation member with role `via` referring to a [wikitr:/Help/Concepts/Object#Nodes node] or [wikitr:/Help/Concepts/Object#Ways way]. We call these objects **''via**''-**object**. 27 27 28 28 29 29 == Use Cases == 30 30 === Creating a turn restriction ===#CreateANewTurnRestriction 31 There 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:32 1. Click on [[JOSMImage(new,link=,24,middle)]] in the Turn Restriction Toggle Dialog. Alternatively, select [[JOSMImage(new,link=,24,middle)]] **New** from the popup menu.31 There 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 Panel: 32 1. Click on [[JOSMImage(new,link=,24,middle)]] in the Turn Restriction Panel. Alternatively, select [[JOSMImage(new,link=,24,middle)]] **New** from the popup menu. 33 33 34 34 Alternatively, you can launch a new editor with a keyboard shortcut: 35 1. Press the shortcut for creating or editing a turn restriction. On most platforms the shortcut is **` Ctrl+Shift+T`**.35 1. Press the shortcut for creating or editing a turn restriction. On most platforms the shortcut is **`Alt+Shift+2`**. 36 36 1. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up. 37 37 38 38 [[Image(create-turn-restriction-popup.png,link=)]] \\ 39 Just click on [[JOSMImage(new,link=,24,middle)]] **Create new turn restriction** to launch the turn restriction editor for a new turn restriction. Alternatively, press the key **`N`** or hit **`Enter`**.39 Just click on [[JOSMImage(new,link=,24,middle)]] **Create new turn restriction** to launch the turn restriction editor for a new turn restriction. Alternatively, press the key **`N`** or hit **`Enter`**. 40 40 41 41 In both cases, the ''turnrestrictions'' plugin initializes the new turn restriction with objects from the current JOSM selection: … … 46 46 A fast way to create a turn restriction is therefore to 47 47 1. Select the **''from**''- and **''to**''-way in JOSM 48 1. Press **` Ctrl+Shift+T`**48 1. Press **`Alt+Shift+2`** 49 49 1. Choose the type of the turn restriction and save it. 50 50 51 51 === Editing a turn restriction === #EditingATurnRestriction 52 There 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:53 1. Select a turn restriction in the Turn Restriction Toggle Dialog52 There 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 Panel: 53 1. Select a turn restriction in the Turn Restriction Panel 54 54 1. Click on [[JOSMImage(dialogs/edit,link=,24,middle)]]. Alternatively, select [[JOSMImage(dialogs/edit,link=,24,middle)]] **Edit** from the popup menu. 55 55 56 56 Second, you can launch a new editor with a keyboard shortcut: 57 1. Press the shortcut for creating or editing a turn restriction. On most platforms the shortcut is **` Ctrl+Shift+T`**.57 1. Press the shortcut for creating or editing a turn restriction. On most platforms the shortcut is **`Alt+Shift+2`**. 58 58 1. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up. 59 59 … … 63 63 A fast way to edit a turn restriction is therefore to 64 64 1. Select the **''from**''- or **''to**''-way in JOSM 65 1. Press **` Ctrl+Shift+T`**66 1. Type **`1`** to lauch the Turn Restriction Editor 65 1. Press **`Alt+Shift+2`** 66 1. Type **`1`** to launch the Turn Restriction Editor 67 67 68 68 === Deleting a turn restriction === 69 There are several possible ways to delete a turn restriction. First, you can delete it in the Turn Restriction Toggle Dialog:70 1. Select a turn restriction in the Turn Restriction Toggle Dialog69 There are several possible ways to delete a turn restriction. First, you can delete it in the Turn Restriction Panel: 70 1. Select a turn restriction in the Turn Restriction Panel 71 71 1. Press **`DEL`** or click on [[JOSMImage(dialogs/delete,link=,24,middle)]]. Alternatively, select [[JOSMImage(dialogs/delete,link=,24,middle)]] **Delete** from the popup menu. 72 72 73 Alternatively, you can [#EditingATurnRestriction launch a Turn Restriction Editor] and click on [[JOSMImage(dialogs/delete,link=,24,middle)]] in its toolbar.73 Alternatively, you can [#EditingATurnRestriction launch a Turn Restriction Editor] and click on [[JOSMImage(dialogs/delete,link=,24,middle)]] in its toolbar. 74 74 75 75 76 == Turn Restriction Panel == #TurnRestrictionPanel 77 [=#TurnRestrictionToggleDialog] 78 The Turn Restriction Panel helps you to keep track of the turn restrictions in the current edit layer. 76 79 77 == Turn Restriction Toggle Dialog == #TurnRestrictionToggleDialog 78 The Turn Restriction Toggle Dialog helps you to keep track of the turn restrictions in the current edit layer. 79 80 Here's a screenshot of the toggle dialog and its popup menu: \\ 80 Here's a screenshot of the panel and its popup menu: \\ 81 81 [[Image(toggle-dialog-screenshot.png,link=)]] 82 82 … … 84 84 85 85 You can apply some commands to the turn restrictions displayed in this dialog. 86 ||**Create** a new turn restriction||Click [[JOSMImage(new,link=,24,middle)]] or select [[JOSMImage(new,link=,24,middle)]] **New** from the popup menu|| 87 ||**Edit** a turn restriction||Select the turn restriction and click [[JOSMImage(dialogs/edit,link=,24,middle)]] or select [[JOSMImage(dialogs/edit,link=,24,middle)]] **Edit** from the popup menu|| 86 ||=**Command**=||=**Description**=|| 87 ||**Create** a new turn restriction||Click [[JOSMImage(new,link=,24,middle)]] or select [[JOSMImage(new,link=,24,middle)]] **New** from the popup menu.|| 88 ||**Edit** a turn restriction||Select the turn restriction and click [[JOSMImage(dialogs/edit,link=,24,middle)]] or select [[JOSMImage(dialogs/edit,link=,24,middle)]] **Edit** from the popup menu.|| 88 89 ||**Delete** a turn restriction||Select one or more turn restrictions, press **`DEL`**, or click on [[JOSMImage(dialogs/delete,link=,24,middle)]] or select [[JOSMImage(dialogs/delete,link=,24,middle)]] **Delete** from the popup menu.|| 89 90 ||**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 [[JOSMImage(selectall,link=,24,middle)]] **Select in current data layer** from the popup menu.|| 90 91 ||**Zoom** to the turn restriction||Select the turn restriction in the list and then select [[JOSMImage(dialogs/autoscale/selection,link=,24,middle)]] **Zoom to** from the popup menu.|| 91 92 92 93 93 … … 129 129 * `type=restriction` - this is a required tag for a turn restriction. 130 130 * `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]. 131 * `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]. 132 * `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]. 133 131 * `except=...` - 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]. 132 * (`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].) **''Deprecated, please use [osmwiki:/Conditional_restrictions conditional restrictions] instead.''** 134 133 135 134 ==== Editing the members ==== 136 In the lower half of the Advanced Editor you can edit the membersof the turn restriction relation.135 In the lower half of the Advanced Editor you can edit the [osmwiki:Relation:restriction#Members members] of the turn restriction relation. 137 136 138 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 withrole `location_hint`(see [osmwiki:Relation:restriction OSM wiki]).137 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''-objects. (The role `location_hint` is deprecated as it is not verifiable on the ground). 139 138 140 139 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. … … 152 151 === Resolving Errors and Warnings === #ErrorsAndWarnings 153 152 [[Image(sample-screen-shot-3.png,link=)]] 154 155 153 156 154 … … 172 170 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. 173 171 174 {{{#!comment175 Shortcut configuration does not work, atm, and will probably not be readded to the plugin preferences. See #21243176 }}}177 178 {{{#!comment179 === Configure shortcut for creating/editing a turn restriction ===180 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.181 182 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.183 }}}184 172 185 173 == See also == 186 174 * [osmwiki:JOSM/Plugins/turnrestrictions Turnrestriction Plugin page] - Historic reference, development of this plugin in 2010-03 was sponsored by [https://www.skobbler.de/ skobbler GmbH] 187 175 176 188 177 ---- 189 178 Back to [wikitr:/Plugins#JOSMdocu Plugin Help] \\
