Changes between Version 30 and Version 31 of Help/Plugin/TurnRestrictions
- Timestamp:
- 2011-06-13T01:14:32+02:00 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Plugin/TurnRestrictions
v30 v31 4 4 5 5 == Introduction == 6 In OpenStreetMap a '''turn restriction''' limits navigation options. It represents the restriction that one cannot navigate from a [wiki:/Help/Concepts/Object way] to another way. For instance, the turn restriction depicted below forbids to drive straight. Vehicles have to turn left at the junction where the two ways meet (the so called via-node). Turn restrictions are important for routing and navigation software which are based on OSM data. 6 In OpenStreetMap a '''turn restriction''' limits navigation options. It represents the restriction that one cannot navigate from a [wiki:/Help/Concepts/Object#Ways way] to another way. For instance, the turn restriction depicted below forbids to drive straight. Vehicles have to turn left at the junction where the two ways meet (the so called via-node). Turn restrictions are important for routing and navigation software which are based on OSM data. 7 7 8 8 [[Image(only_left_turn_sample.png)]][[BR]] … … 17 17 Turn restrictions a standard map feature decribed on the [http://wiki.openstreetmap.org/wiki/Relation:restriction OSM wiki]. 18 18 19 Technically, a turn restriction is an OSM [wiki:/Help/Concepts/Object relation]. A turn restriction 19 Technically, a turn restriction is an OSM [wiki:/Help/Concepts/Object#Relations relation]. A turn restriction 20 20 21 * must have a relation member with role {{{from}}} referring to a [wiki:/Help/Concepts/Object way]. We call this way the '''''from'''''-'''way'''. 22 * must have a relation member with role {{{to}}}referring to a [wiki:/Help/Concepts/Object way]. We call this way the '''''to'''''-'''way'''.23 * must have at least of relation member with role {{{via}}} referring to a [wiki:/Help/Concepts/Object node] or [wiki:/Help/Concepts/Objectway]. We call these objects '''''via'''''-'''object'''.21 * must have a relation member with role '''{{{from}}}''' referring to a [wiki:/Help/Concepts/Object#Ways way]. We call this way the '''''from'''''-'''way'''. 22 * must have a relation member with role '''{{{to}}}''' referring to a [wiki:/Help/Concepts/Object#Ways way]. We call this way the '''''to'''''-'''way'''. 23 * 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'''. 24 24 25 25 {{{ … … 30 30 === Creating a turn restriction ===#CreateANewTurnRestriction 31 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 [[Image(source:/trunk/images/new.png)]] in the Turn Restriction Toggle Dialog. Alternatively, select [[Image(source:/trunk/images/new.png)]]'''New''' from the popup menu. 32 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. 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 plattforms the shortcut is '''Ctrl-Shift-T'''. 36 2. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up.[[BR]] 37 [[Image(create-turn-restriction-popup.png)]] [[BR]] 38 Just click on [[Image(source:/trunk/images/new.png)]] '''Create new turn restriction''' to launch the turn restriction editor for a new turn restriction. Alternatively, press the key '''n''' or hit '''Enter'''. 35 1. Press the shortcut for creating or editing a turn restriction. On most plattforms the shortcut is '''{{{Ctrl+Shift+T}}}'''. 36 2. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up. 37 38 [[Image(create-turn-restriction-popup.png)]] [[BR]] 39 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}}}'''. 39 40 40 41 In both cases, the {{{turnrestrictions}}} plugin initializes the new turn restriction with objects from the current JOSM selection: 41 1. The first selected way in the JOSM selection becomes the '' from''-way.42 2. The last selected way in the JOSM selection becomes the '' to''-way43 3. If the '' from''- andthe ''to''-way have a node in common, this node becomes a ''via''-object.42 1. The first selected way in the JOSM selection becomes the '''''from'''''-way. 43 2. The last selected way in the JOSM selection becomes the '''''to'''''-way 44 3. If the '''''from'''''- and '''''to'''''-way have a node in common, this node becomes a ''via''-object. 44 45 45 46 A fast way to create a turn restriction is therefore to 46 1. Select the '' from''- and ''to''-way in JOSM47 2. Press ''' Ctrl-Shift-T'''47 1. Select the '''''from'''''- and '''''to'''''-way in JOSM 48 2. Press '''{{{Ctrl+Shift+T}}}''' 48 49 3. Choose the type of the turn restriction and save it. 49 50 … … 51 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: 52 53 1. Select a turn restriction in the Turn Restriction Toggle Dialog 53 2. Click on [[Image(source:/trunk/images/dialogs/edit.png)]]. Alternatively, select [[Image(source:/trunk/images/dialogs/edit.png)]]'''Edit''' from the popup menu. 54 2. 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. 54 55 55 56 Second, you can launch a new editor with a keyboard shortcut: 56 1. Press the shortcut for creating or editing a turn restriction. On most plattforms the shortcut is ''' Ctrl-Shift-T'''.57 1. Press the shortcut for creating or editing a turn restriction. On most plattforms the shortcut is '''{{{Ctrl+Shift+T}}}'''. 57 58 2. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up.[[BR]] 58 59 [[Image(create-turn-restriction-popup.png)]] [[BR]] … … 60 61 61 62 A fast way to edit a turn restriction is therefore to 62 1. Select the '' from''- or ''to''-way in JOSM63 2. Press ''' Ctrl-Shift-T'''64 3. Type ''' 1''' to lauch the Turn Restriction Editor63 1. Select the '''''from'''''- or '''''to'''''-way in JOSM 64 2. Press '''{{{Ctrl+Shift+T}}}''' 65 3. Type '''{{{1}}}''' to lauch the Turn Restriction Editor 65 66 66 67 === Deleting a turn restriction === 67 68 There are several possible ways to delete a turn restriction. First, you can delete it in the Turn Restriction Toggle Dialog: 68 69 1. Select a turn restriction in the Turn Restriction Toggle Dialog 69 2. Press ''' DEL''' or click on [[Image(source:/trunk/images/dialogs/delete.png)]]. Alternatively, select [[Image(source:/trunk/images/dialogs/delete.png)]]'''Delete''' from the popup menu.70 2. 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. 70 71 71 72 Alternatively, you can [#EditingATurnRestriction launch a Turn Restriction Editor] and click on [[Image(source:/trunk/images/dialogs/delete.png)]] in its toolbar. … … 85 86 86 87 You can apply some commands to the turn restrictions displayed in this dialog. 87 ||'''Create''' a new turn restriction|| Click [[Image(source:/trunk/images/new.png)]] or select [[Image(source:/trunk/images/new.png)]]'''New''' from the popup menu|| 88 ||'''Edit''' a turn restriction||Select the turn restriction and click [[Image(source:/trunk/images/dialogs/edit.png)]] or select [[Image(source:/trunk/images/dialogs/edit.png)]]'''Edit''' from the popup menu|| 89 ||'''Delete''' a turn restriction||Select one or more turn restrictions, press ''' DEL''', or click on [[Image(source:/trunk/images/dialogs/delete.png)]] or select [[Image(source:/trunk/images/dialogs/delete.png)]]'''Delete''' from the popup menu.||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 [[Image(source:/trunk/images/selectall.png)]]'''Select in current data layer''' from the popup menu.|| 91 ||'''Zoom''' to the turn restriction|| Select the turn restriction in the list and then select [[Image(source:/trunk/images/dialogs/autoscale/selection.png)]]'''Zoom to''' from the popup menu.||88 ||'''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|| 89 ||'''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|| 90 ||'''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.|| 91 ||'''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.|| 92 ||'''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.|| 92 93 93 94 {{{ … … 105 106 106 107 === Basic Editor === #BasicEditor 107 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.108 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. 108 109 109 In order to set the '' from''-way110 In order to set the '''''from'''''-way 110 111 1. Select a way in the current edit layer 111 112 2. '''Drag''' it from the list of selcted objects (on the left in the editor) onto the input field '''From:''' … … 113 114 Alternatively, you can 114 115 1. Select a way in the current edit layer 115 2. Copy it (using ''' Ctrl-C''' or [[Image(source:/trunk/images/copy.png)]]'''Copy''' in the popup menu) in the list of selcted objects on the right of the Turn Restriction Editor116 3. Click on the '''From:''' field and paste the copied way (using ''' Ctrl-V''' or [[Image(source:/trunk/images/paste.png)]]''Paste'' from the popup menu)116 2. Copy it (using '''{{{Ctrl+C}}}''' or [[Image(source:/trunk/images/copy.png,20)]]'''Copy''' in the popup menu) in the list of selcted objects on the right of the Turn Restriction Editor 117 3. 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) 117 118 118 119 [[Image(sample-screen-shot-1.png)]][[br]] … … 164 165 To launch the preferences panel for the turnrestrictions plugin: 165 166 166 1. Click on [[Image(source:/trunk/images/preference.png)]] in the JOSM toolbar or press ''' F10'''.167 2. Click on [[Image( turnrestrictions.png)]] to display the preferences panel for the turnrestrictions plugin167 1. Click on [[Image(source:/trunk/images/preference.png)]] in the JOSM toolbar or press '''{{{F10}}}'''. 168 2. Click on [[Image(http://trac.openstreetmap.org/export/HEAD/applications/editors/josm/plugins/turnrestrictions/images/preferences/turnrestrictions.png,20)]] to display the preferences panel for the turnrestrictions plugin 168 169 169 170 [[Image(preferences-screen-shot.png)]] [[BR]] … … 179 180 180 181 === Configure shortcut for creating/editing a turn restriction === 181 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.182 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. 182 183 183 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.184 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. 184 185 186 == See also == 185 187 188 * [http://wiki.openstreetmap.org/wiki/JOSM/Plugins/turnrestrictions Turnrestriction Plugin page] at OSM wiki 189 190 ---- 191 Back to [wiki:Help/Plugins Plugin Help][[BR]] 192 Back to [wiki:/Help Main Help]
