8 | | = Relation Editor window = |
9 | | |
10 | | The relation editor window is one of many options to create, modify, and delete relations; this is most comprehensive tool in core JOSM. |
11 | | |
12 | | == Activation steps == |
13 | | |
14 | | * in [Help/Dialog/RelationEditor Relation editor]: |
15 | | * [#Buttonsontop Duplicate button] will open created relation in RE |
16 | | * [#Buttons Buttons in "Memberships" part] can open one or multiple RE |
17 | | * [#Table Double click complete relation in memberships table] to open RE |
18 | | * [#ParentRelationstab Selection relation(s), then press "Edit" button in "Parent Relations" tab] to open one or multiple RE |
19 | | * [#ParentRelationstab Double click on item in "Parent Relations" tab] to open RE |
20 | | * in [Help/Dialog/TagsMembership Tags/Membership window]: |
21 | | * If there "Member of" table, you can: |
22 | | * Use [Help/Dialog/TagsMembership#rightclickmembership right mouse click] and select "Edit" to open RE |
23 | | * [Help/Dialog/TagsMembership#doubleclickmembership Double click an item] to open RE |
24 | | * in [Help/Dialog/RelationList Relations window]: |
25 | | * Use "''Create a relation''" button to create a new relation and open it in RE |
26 | | * Select relations (in "Relations" window), use second button to open one or multiple RE |
27 | | * Duplicate relation button will open it in RE |
28 | | * in [Help/Dialog/SelectionList Selection window]: |
29 | | * Select relation(s) (but now in "Selection" window), use "Edit" context command to open RE |
30 | | * Double click a relation to open RE |
31 | | |
32 | | == Relation Editor == |
33 | | |
34 | | === Buttons on top === |
35 | | |
36 | | || [[Image(source:trunk/images/dialogs/refresh.png)]] || Refresh relation from data layer (see [#RelationChangedOutsideOfEditor below] for more explanation) || |
37 | | || [[Image(source:trunk/images/save.png)]] || Apply the current changes made within the relation editor to the data TODO: clarify when to use it || |
38 | | || [[Image(source:trunk/images/dialogs/select.png)]] || Select the relation of the relation editor window || |
39 | | || [[Image(source:trunk/images/duplicate.png)]] || Clone e.g create a copy of the relation and open it in another relation editor window || |
40 | | || [[Image(source:trunk/images/dialogs/delete.png)]] || Delete the currently edited relation || |
| 6 | A Relation editor handles the members and [wikitr:/Help/Concepts/Object#Tags1 tags] of exactly one [[JOSMImage(data/relation)]] [wikitr:/Help/Concepts/Object#Relations relation]. \\ |
| 7 | \\ |
| 8 | Don't confuse it with the [wikitr:/Help/Dialog/RelationList Relations list panel]. That [wikitr:/Help/ToggleDialogs Sidebar] panel lists all relations. |
| 11 | == The Dialog Layout == |
| 12 | === Buttons on top ===#Buttonsontop |
| 13 | ||= **Icon** =||= **Description** =|| |
| 14 | || [[JOSMImage(dialogs/refresh)]] || Refresh relation from data layer (see [#RelationChangedOutsideOfEditor below] for more explanation) || |
| 15 | || [[JOSMImage(save)]] || Apply the current changes made within the relation editor to the data (see [#RelationChangedOutsideOfEditor below] for more explanation) || |
| 16 | || [[JOSMImage(dialogs/select)]] || Select the relation of the relation editor || |
| 17 | || [[JOSMImage(duplicate)]] || Clone e.g create a copy of the relation and open it in another relation editor || |
| 18 | || [[JOSMImage(dialogs/delete,24,link=,middle)]] || Delete the currently edited relation || |
| 19 | |
48 | | ==== Upper half, tags of the relation itself ==== |
49 | | On top in the upper part are links to presets matching the current '''''tags of the relation''''' and below are the tags in a table. |
| 25 | In between the two parts the horizontal separator includes two buttons on the left side with a [[JOSMImage(svpUp,link=,middle,16)]] up and [[JOSMImage(svpDown,link=,middle,16)]] down arrow to move the separator to center, up or down and hide, respectively, display the upper or lower part. |
51 | | Presets matching relation can be opened here (they are more suggestive than tags panel). [/wiki/Introduction#Leftmouseclickonrespectivepresetheadingwillopencompletepresetview Click respective link to open full preset], as usual. |
| 27 | ==== Tags of Relation (upper part) ====#TagsRelation |
| 28 | On top in the upper part are links to presets matching the current ''**tags of the relation**'' and below are the tags in a table. |
| 29 | |
| 30 | Presets matching relation can be opened here (they are more suggestive than tags panel). [wikitr:/Introduction#Leftmouseclickonrespectivepresetheadingwillopencompletepresetview Click respective link to open full preset], as usual. |
| 31 | |
| 32 | [[Image(relation_editor.png,right,margin-left=15,link=)]] |
66 | | * its role on the left |
67 | | * in the middle the object type as icon plus some identifier like name, ref or simply the id of the object |
68 | | * Double-clicking on a line with ''complete relation'' there will open this ''Relationship editor'' for the relation in question |
69 | | * on the right information about neighbor ways' connections useful for consistency checks like checking that the members of a [Help/Concepts/Object#typemultipolygon multipolygon] form closed ways or that a route is a complete line without missing some ways in the middle. |
| 49 | ||= **Title** =||= **Description** =|| |
| 50 | || Role || its role || |
| 51 | || Refers to || the object type as icon plus some identifier like name, ref or simply the id of the object ; Double-clicking on a line with ''complete relation'' there will open this ''Relationship editor'' for the relation in question || |
| 52 | || || on the right information about neighbor ways' connections useful for consistency checks like checking that the members of a [wikitr:/Help/Concepts/Object#typemultipolygon multipolygon] form closed ways or that a route is a complete line without missing some ways in the middle || |
75 | | * Zoom to - will zoom to the topmost element of the [#Currentlyselectedmembers currently selected members] |
76 | | * Zoom to Gap (actionable only when gap is selected) - will zoom to gap |
77 | | * Zoom to previous gap |
78 | | * Zoom to next gap |
| 57 | ||= **Icon** =||= **Name** =||= **Description** =|| |
| 58 | || || Zoom to || select the topmost element of the [#Currentlyselectedmembers currently selected members] in [[JOSMImage(dialogs/selectionlist)]] [wikitr:/Help/Dialog/SelectionList selection list panel] and zoom to it || |
| 59 | |||| |
| 60 | || || Zoom to Gap || will zoom to gap (only available when gap is selected) || |
| 61 | |||| |
| 62 | || || Select previous gap || select the previous member ahead without connection above || |
| 63 | || || Select next gap || select the next member behind without connection below || |
| 64 | || [[JOSMImage(dialogs/history)]] || History || open a [wikitr:/Help/Action/ObjectHistory History browser] for each [#Currentlyselectedmembers currently selected member] || |
88 | | || [[Image(source:trunk/images/dialogs/moveup.png)]] || Move the [#Currentlyselectedmembers currently selected members] up (**`Alt+up`**) || |
89 | | || [[Image(source:trunk/images/dialogs/movedown.png)]] || Move ''the currently selected members'' down (**`Alt+down`**) || |
90 | | || || || |
91 | | || [[Image(source:trunk/images/dialogs/edit.png)]] || Open additional relation editors for ''the currently selected members'' of object type relation || |
92 | | || [[Image(source:trunk/images/dialogs/delete.png)]] || Remove ''the currently selected members'' from the relation (**`Alt+Delete`**) || |
93 | | || || || |
94 | | || [[Image(source:trunk/images/dialogs/sort.png)]] || Sort ''the currently selected members'' (**`Alt+End`**) || |
95 | | || [[Image(source:trunk/images/dialogs/sort_below.png)]] || Sort ''the currently selected members'' and all members below ([ExpertMode expert mode] only) || |
96 | | || [[Image(source:trunk/images/dialogs/relation/reverse.png)]] || Reverse the order of the currently selected members || |
97 | | || || || |
98 | | || [[Image(source:trunk/images/dialogs/relation/downloadincomplete.png)]] || Download all incomplete members (**`Alt+Home`**) || |
99 | | || [[Image(source:trunk/images/dialogs/relation/downloadincompleteselected.png)]] || Download selected incomplete members || |
| 74 | ||= **Icon** =||= **Shortcut** =||= **Description** =|| |
| 75 | || [[JOSMImage(dialogs/up)]] || **`Alt+up`** || Move the [#Currentlyselectedmembers currently selected members] up || |
| 76 | || [[JOSMImage(dialogs/down)]] || **`Alt+down`** || Move ''the currently selected members'' down || |
| 77 | |||| |
| 78 | || [[JOSMImage(dialogs/edit)]] || || Open additional relation editors for ''the currently selected members'' of object type relation || |
| 79 | || [[JOSMImage(dialogs/delete,24,link=,middle)]] || **`Alt+Delete`** || Remove ''the currently selected members'' from the relation || |
| 80 | |||| |
| 81 | || [[JOSMImage(dialogs/sort)]] || **`Alt+End`** || Sort ''the currently selected members'' || |
| 82 | || [[JOSMImage(dialogs/sort_below)]] || || Sort ''the currently selected members'' and all members below ([wikitr:/Help/ExpertMode expert mode] only) || |
| 83 | || [[JOSMImage(dialogs/reverse)]] || || Reverse the order of the currently selected members || |
| 84 | |||| |
| 85 | || [[JOSMImage(dialogs/relation/downloadincomplete)]] || **`Alt+Home`** || Download all incomplete members || |
| 86 | || [[JOSMImage(dialogs/relation/downloadincompleteselected)]] || || Download selected incomplete members || |
103 | | ==== Bottom half, right side, selection ==== |
104 | | In the lower right part is the selection list where currently selected objects in the current data set are shown. The list is basically a mirror of the [Dialog/SelectionList Selection window]. Objects with yellow background color are already member of the relation. |
| 90 | Text field below the table can be used to set a role to all [#Currentlyselectedmembers Currently selected members] |
| 91 | |
| 92 | |
| 93 | ==== Selection List (bottom half, right side) ====#SelectionList |
| 94 | In the lower right part is the selection list where currently selected objects in the current data set are shown. The list is basically a mirror of the [wikitr:/Help/Dialog/SelectionList Selection list]. Objects with yellow background color are already member of the relation. |
108 | | || [[Image(source:trunk/images/dialogs/conflict/copystartright.svg)]] || Add all objects selected in the current data set before the first member || |
109 | | || [[Image(source:trunk/images/dialogs/conflict/copybeforecurrentright.svg,)]] || Add all objects selected in the current data set before the first selected member || |
110 | | || [[Image(source:trunk/images/dialogs/conflict/copyaftercurrentright.svg)]] || Add all objects selected in the current data set after the last member selected member || |
111 | | || [[Image(source:trunk/images/dialogs/conflict/copyendright.svg)]] || Add all objects selected in the current data set after the last member || |
112 | | || || || |
113 | | || [[Image(source:trunk/images/dialogs/relation/selectmembers.svg)]] || Select relation members in the member list which refer to objects in the current selection || |
114 | | || [[Image(source:trunk/images/dialogs/relation/selectprimitives.svg)]] || Select objects in the current data set for currently selected relation members in the member list || |
115 | | || || || |
116 | | || [[Image(source:trunk/images/dialogs/relation/deletemembers.svg)]] || Remove all members referring to one of the selected objects in the current data set |
| 98 | ||= **Icon** =||= **Description** =|| |
| 99 | || [[JOSMImage(dialogs/conflict/copystartright)]] || Add all objects selected in the current data set before the first member || |
| 100 | || [[JOSMImage(dialogs/conflict/copybeforecurrentright,)]] || Add all objects selected in the current data set before the first selected member || |
| 101 | || [[JOSMImage(dialogs/conflict/copyaftercurrentright)]] || Add all objects selected in the current data set after the last member selected member || |
| 102 | || [[JOSMImage(dialogs/conflict/copyendright)]] || Add all objects selected in the current data set after the last member || |
| 103 | |||| |
| 104 | || [[JOSMImage(dialogs/relation/selectmembers)]] || Select relation members in the member list which refer to objects in the current selection || |
| 105 | || [[JOSMImage(dialogs/relation/selectprimitives)]] || Select objects in the current data set for currently selected relation members in the member list || |
| 106 | |||| |
| 107 | || [[JOSMImage(dialogs/relation/deletemembers)]] || Remove all members referring to one of the selected objects in the current data set || |
163 | | '''So the workflow should always be like this (if you want to do changes in the relation editor ''and'' the data layer at the same time, i.e. while the relation editor stays open):''' |
164 | | * '''After doing changes in the relation editor and before doing changes in the data layer press the [[Image(source:trunk/images/save.png)]] apply button.''' |
165 | | * '''After doing changes in the data layer and before doing changes in the relation editor press the [[Image(source:trunk/images/dialogs/refresh.png)]] refresh button.''' |
| 152 | **So the workflow should always be like this** (if you want to do changes in the relation editor **''and''** the data layer at the same time, i.e. while the relation editor stays open): |
| 153 | * **After doing changes in the relation editor** and **before doing changes in the data layer** press the [[JOSMImage(save)]] apply button. |
| 154 | * **After doing changes in the data layer** and **before doing changes in the relation editor** press the [[JOSMImage(dialogs/refresh)]] refresh button. |
174 | | * [[Image(source:trunk/images/dialogs/relationlist.png,20,middle)]] [Dialog/RelationList Relations window] - all loaded relations are listed here |
175 | | * [Concepts/Object Object] - detailed explanation what ''relation'' is |
176 | | * [[Help/Relations]] - steps how to create parent relations, edit parent/child relations and so on |
177 | | * [[Concepts/Conflict]] |
| 165 | * [[JOSMImage(dialogs/relationlist)]] [wikitr:/Help/Dialog/RelationList Relations list] - all loaded relations are listed here |
| 166 | * [wikitr:/Help/Concepts/Object#Relations Concepts Object] - detailed explanation what ''relation'' is |
| 167 | * [wikitr:/Help/Relations Relations] - steps how to create parent relations, edit parent/child relations and so on |
| 168 | * [wikitr:/Help/Concepts/Conflict Concepts Conflict] - explanation of conflicts |
| 169 | * Relations can be also edited using [wikitr:/Help/Menu/TagsMembershipMenu#Rightclickonaparentrelationinmembershipspart simple right click menu] in [wikitr:/Help/Dialog/TagsMembership Tags/Membership panel] |
| 170 | * Some of [wikitr:/Plugins plugins] can simplify [wikitr:/Help/Relations editing of relations], namely [wikitr:/Help/Plugin/TurnRestrictions turnrestrictions], [osmwiki:Relations/Proposed/turn_lanes#Plugin turnlanes] or [osmwiki:JOSM/Plugins/PT_Assistant pt_assistant] |