| 1 | [[TranslatedPages(revision=36)]] |
| 2 | = Plug-in -> Beperking afslaan = |
| 3 | [[Image(/pluginicon/turnrestrictions.jar/images/preferences/turnrestrictions.png)]] |
| 4 | [[TOC(noheading,inline)]] |
| 5 | |
| 6 | == Introductie == |
| 7 | In OpenStreetMap beperkt een '''beperking afslaan''' de opties voor navigatie. Het geeft de beperking weer dat iemand niet kan navigeren vanaf een [wiki:/Nl:Help/Concepts/Object#Ways weg] naar een andere weg. Bijvoorbeeld: de hieronder weergegeven beperking afslaan verbiedt om rechtdoor te gaan. Voertuigen moeten linksaf slaan op de kruising waar de twee wegen elkaar kruisen (de zogenaamde via-knoop). Beperkingen afslaan zijn belangrijk voor routerings- en navigatiesoftware die zijn gebaseerd op gegevens van OSM. |
| 8 | |
| 9 | [[Image(Help/Plugin/TurnRestrictions:only_left_turn_sample.png)]] |
| 10 | |
| 11 | De plug-in {{{turnrestrictions}}} ondersteunt het bewerken van beperkingen afslaan. Hij bestaat uit twee belangrijke componenten: |
| 12 | |
| 13 | 1. '''dialoogvenster Beperking afslaan''' - het dialoogvenster beperking afslaan wordt weergegeven in het gedeelte van de schakelvensters aan de rechterkant. Het geeft de lijst met Beperkingen afslaan weer in de huidige gegevensset en staat het maken en verwijderen van beperkingen afslaan toe, of het starten van de Bewerker Beperking afslaan om een Beperking afslaan te bewerken. |
| 14 | |
| 15 | 2. '''Bewerker Beperking afslaan''' - de Bewerker Beperking afslaan is een bewerker met als speciaal doel de beperkingen afslaan. |
| 16 | |
| 17 | == Terminologie == |
| 18 | Beperking afslaan is een mogelijkheid die wordt beschreven op de [osmwiki:Relation:restriction wiki van OSM]. |
| 19 | |
| 20 | Technisch is een Beperking afslaan een [wiki:/Nl:Help/Concepts/Object#Relations relatie] in OSM. Een Beperking afslaan |
| 21 | |
| 22 | * moet een lid van een relatie hebben met de rol '''{{{from}}}''' verwijzend naar een [wiki:/Nl:Help/Concepts/Object#Ways weg]. We noemen deze weg de '''''from'''''-'''weg'''. |
| 23 | * moet een lid van een relatie hebben met de rol '''{{{to}}}''' verwijzend naar een [wiki:/Nl:Help/Concepts/Object#Ways weg]. We noemen deze weg de '''''to'''''-'''weg'''. |
| 24 | * moet ten minste een lid van de relatie hebben met de rol {{{via}}} verwijzend naar een [wiki:/Nl:Help/Concepts/Object#Nodes knoop] of [wiki:/Nl:Help/Concepts/Object#Ways weg]. We noemen deze objecten '''''via'''''-'''object'''. |
| 25 | |
| 26 | {{{ |
| 27 | #!comment |
| 28 | *************************************************************************************************************************** |
| 29 | }}} |
| 30 | == Gevallen van gebruik == |
| 31 | === Een Beperking afslaan maken ===#CreateANewTurnRestriction |
| 32 | 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: |
| 33 | 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. |
| 34 | |
| 35 | Alternatively, you can launch a new editor with a keyboard shortcut: |
| 36 | 1. Press the shortcut for creating or editing a turn restriction. On most plattforms the shortcut is '''{{{Ctrl+Shift+T}}}'''. |
| 37 | 1. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up. |
| 38 | |
| 39 | [[Image(create-turn-restriction-popup.png)]] [[BR]] |
| 40 | 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}}}'''. |
| 41 | |
| 42 | In both cases, the {{{turnrestrictions}}} plugin initializes the new turn restriction with objects from the current JOSM selection: |
| 43 | 1. The first selected way in the JOSM selection becomes the '''''from'''''-way. |
| 44 | 1. The last selected way in the JOSM selection becomes the '''''to'''''-way |
| 45 | 1. If the '''''from'''''- and '''''to'''''-way have a node in common, this node becomes a ''via''-object. |
| 46 | |
| 47 | A fast way to create a turn restriction is therefore to |
| 48 | 1. Select the '''''from'''''- and '''''to'''''-way in JOSM |
| 49 | 1. Press '''{{{Ctrl+Shift+T}}}''' |
| 50 | 1. Choose the type of the turn restriction and save it. |
| 51 | |
| 52 | === Editing a turn restriction === #EditingATurnRestriction |
| 53 | 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: |
| 54 | 1. Select a turn restriction in the Turn Restriction Toggle Dialog |
| 55 | 1. 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. |
| 56 | |
| 57 | Second, you can launch a new editor with a keyboard shortcut: |
| 58 | 1. Press the shortcut for creating or editing a turn restriction. On most plattforms the shortcut is '''{{{Ctrl+Shift+T}}}'''. |
| 59 | 1. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up. |
| 60 | |
| 61 | [[Image(create-turn-restriction-popup.png)]] [[BR]] |
| 62 | 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. |
| 63 | |
| 64 | A fast way to edit a turn restriction is therefore to |
| 65 | 1. Select the '''''from'''''- or '''''to'''''-way in JOSM |
| 66 | 1. Press '''{{{Ctrl+Shift+T}}}''' |
| 67 | 1. Type '''{{{1}}}''' to lauch the Turn Restriction Editor |
| 68 | |
| 69 | === Deleting a turn restriction === |
| 70 | There are several possible ways to delete a turn restriction. First, you can delete it in the Turn Restriction Toggle Dialog: |
| 71 | 1. Select a turn restriction in the Turn Restriction Toggle Dialog |
| 72 | 1. 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. |
| 73 | |
| 74 | Alternatively, you can [#EditingATurnRestriction launch a Turn Restriction Editor] and click on [[Image(source:/trunk/images/dialogs/delete.png)]] in its toolbar. |
| 75 | {{{ |
| 76 | #!comment |
| 77 | ********************************************************************************************* |
| 78 | Turn Restriction Toggle Dialog |
| 79 | ********************************************************************************************* |
| 80 | }}} |
| 81 | == Turn Restriction Toggle Dialog == #TurnRestrictionToggleDialog |
| 82 | The Turn Restriction Toggle Dialog helps you to keep track of the turn restrictions in the current edit layer. |
| 83 | |
| 84 | Here's a screenshot of the toggle dialog and its popup menu:[[br]] |
| 85 | [[Image(toggle-dialog-screenshot.png)]] |
| 86 | |
| 87 | 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. |
| 88 | |
| 89 | You can apply some commands to the turn restrictions displayed in this dialog. |
| 90 | ||'''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|| |
| 91 | ||'''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|| |
| 92 | ||'''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.|| |
| 93 | ||'''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.|| |
| 94 | ||'''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.|| |
| 95 | |
| 96 | {{{ |
| 97 | #!comment |
| 98 | ********************************************************************************************* |
| 99 | Turn Restriction Editor |
| 100 | ********************************************************************************************* |
| 101 | }}} |
| 102 | == Turn Restriction Editor ==#TurnRestrictionEditor |
| 103 | The Turn Restriction Editor allows you to create and edit turn restriction. It provides two user interfaces: |
| 104 | * a '''Basic Editor'''. This is a special purpose user interface for editing the properties of a turn restriction. |
| 105 | * an '''Advanced Editor'''. This is a generic user interface for editing the raw data elements of the OSM relation which represents a turn restriction. |
| 106 | |
| 107 | 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. |
| 108 | |
| 109 | === Basic Editor === #BasicEditor |
| 110 | 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. |
| 111 | |
| 112 | In order to set the '''''from'''''-way |
| 113 | 1. Select a way in the current edit layer |
| 114 | 1. '''Drag''' it from the list of selcted objects (on the left in the editor) onto the input field '''From:''' |
| 115 | |
| 116 | Alternatively, you can |
| 117 | 1. Select a way in the current edit layer |
| 118 | 1. 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 |
| 119 | 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) |
| 120 | |
| 121 | [[Image(sample-screen-shot-1.png)]] |
| 122 | |
| 123 | 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. |
| 124 | |
| 125 | The following screen shot shows the Basic Editor configured to display/edit ''via''-objects too. |
| 126 | |
| 127 | [[Image(basic-editor-with-vias.png)]] |
| 128 | |
| 129 | === Advanced Editor === #AdvancedEditor |
| 130 | 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. |
| 131 | |
| 132 | [[Image(sample-screen-shot-2.png)]] |
| 133 | |
| 134 | ==== Editing the tags ==== |
| 135 | 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: |
| 136 | |
| 137 | * {{{type=restriction}}} - this is a required tag for a turn restriction. |
| 138 | * {{{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]. |
| 139 | * {{{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]. |
| 140 | * {{{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]. |
| 141 | |
| 142 | |
| 143 | ==== Editing the members ==== |
| 144 | In the lower half of the Advanced Editor you can edit the members of the turn restriction relation. |
| 145 | |
| 146 | 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]). |
| 147 | |
| 148 | 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. |
| 149 | |
| 150 | You can '''reorder''' the relation members: |
| 151 | 1. Select one or more members |
| 152 | 1. Press '''Alt-Up''' to move them up by one position. Alternatively you can select '''Move up''' from the popup menu. |
| 153 | |
| 154 | Press '''Alt-Down''' to move them down by one position. Alternatively you can select '''Move down''' from the popup menu. |
| 155 | |
| 156 | To edit the role of a relation member |
| 157 | 1. Double-click on the table cell with the role |
| 158 | 1. Edit the role and press '''ENTER''' |
| 159 | |
| 160 | === Resolving Errors and Warnings === #ErrorsAndWarnings |
| 161 | [[Image(sample-screen-shot-3.png)]] |
| 162 | |
| 163 | {{{ |
| 164 | #!comment |
| 165 | ***************************************************************************************************** |
| 166 | }}} |
| 167 | == Preferences ==#Preferences |
| 168 | To launch the preferences panel for the turnrestrictions plugin: |
| 169 | |
| 170 | 1. Click on [[Image(source:/trunk/images/preference.png)]] in the JOSM toolbar or press '''{{{F10}}}'''. |
| 171 | 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 |
| 172 | |
| 173 | [[Image(preferences-screen-shot.png)]] |
| 174 | |
| 175 | === Select icon set for road signs === |
| 176 | The turnrestrictions plugin uses one of two icon sets for the type of turn restrictions. In the preferences panel |
| 177 | you can configure which icon set should be used, see screenshot above. |
| 178 | |
| 179 | === Toggle editing of via-objects in the Basic Editor ===#ToggleEditingOfViaObjects |
| 180 | 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. |
| 181 | |
| 182 | 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. |
| 183 | |
| 184 | === Configure shortcut for creating/editing a turn restriction === |
| 185 | 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. |
| 186 | |
| 187 | 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. |
| 188 | |
| 189 | == See also == |
| 190 | |
| 191 | * [http://wiki.openstreetmap.org/wiki/JOSM/Plugins/turnrestrictions Turnrestriction Plugin page] at OSM wiki |
| 192 | |
| 193 | ---- |
| 194 | Back to [wiki:/Plugins#JOSMdocu Plugin Help][[BR]] |
| 195 | Back to [wiki:/Help Main Help] |