4 | | The Relation Editor Dialog can be used to create, modify, and delete [wiki:/Help/Concepts/Object relations]. |
5 | | [[TOC(inline)]] |
| 4 | = Relation Editor = |
| 5 | |
| 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. |
| 9 | |
| 10 | |
| 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 | |
| 20 | === Tags and Members tab ===#TagMember |
| 21 | The tags and members tab has an upper half where tags for the relation itself can be entered. |
| 22 | |
| 23 | Its lower part has two separate lists. On the left the members of the relation are listed. The list on the right hand side shows the current selection of map objects. |
| 24 | |
| 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. |
| 26 | |
| 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=)]] |
| 33 | |
| 34 | The three button one the left are: |
| 35 | ||= **Icon** =||= **Description** =|| |
| 36 | || [[JOSMImage(dialogs/add)]] || Add a new tag || |
| 37 | || [[JOSMImage(dialogs/delete,24,link=,middle)]] || Delete the current selected boxes of the tag table || |
| 38 | || [[JOSMImage(pastetags)]] || Paste tags from buffer || |
| 39 | |
| 40 | When a tag line is selected, the `F1` key links to the tag's OSM wiki page, like in the [[JOSMImage(dialogs/propertiesdialog)]] [wikitr:/Help/Dialog/TagsMembership Tags/Memberships panel] |
| 41 | |
| 42 | **Note**: In general, it is easier to modify tags with the Tags/Memberships panel. |
| 43 | |
| 44 | ==== Members List (bottom half, left side) ====#MembersList |
| 45 | In the lower left part is the member table of the relation. |
| 46 | |
| 47 | ===== Table =====#Table |
| 48 | The table shows for each member: |
| 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 || |
| 53 | |
| 54 | ====== Context menu in table ====== |
| 55 | Gap is indicated as red dot. |
| 56 | |
| 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] || |
| 65 | |
| 66 | ===== Currently selected members =====#Currentlyselectedmembers |
| 67 | Selecting members in the [#Table members list table] works as usual: hold `Ctrl` to select multiple items. Left click on the item to add/remove it from the selection. |
| 68 | |
| 69 | On the right you can see an example with only one member way selected. |
| 70 | |
| 71 | ===== Buttons ===== |
| 72 | The buttons on the left offer the following actions if appropriate. (''Plugins may add additional buttons.)'': |
| 73 | |
| 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 || |
| 87 | |
| 88 | **Note**: Besides the listed buttons and shortcuts above, `Ctrl+C`, `Ctrl+V` and `Ctrl+X` work as common in the member list. |
| 89 | |
| 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. |
| 95 | |
| 96 | The buttons offer following actions: |
| 97 | |
| 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 || |
| 108 | |
| 109 | |
| 110 | === Parent Relations tab ===#ParentRelations |
| 111 | Reload button - will fetch all parent relation from API (parent relations list will be empty if there no parent relations). |
| 112 | |
| 113 | Double click at any parent relation will open ''Relation editor'' with respective relation. |
| 114 | |
| 115 | Note: only one parent relation is shown for [osmwww:relation/51560 relation 51560]: |
| 116 | |
| 117 | [[Image(relation 51560.png,link=,600)]] |
| 118 | |
| 119 | |
| 120 | === Child Relations tab ===#ChildRelations |
| 121 | This pane recursively shows all child relations, e.g., for a [osmwiki:Relation:network network] all of its [osmwiki:Relation:route_master route master] and [osmwiki:Relation:route route] relations. Incomplete relations are downloaded when expanding or double-clicking the tree node. A separate relation editor is opened when double-clicking one of the child relations. |
| 122 | |
| 123 | [[Image(children of 6016064.png,link=,600)]] |
| 124 | |
| 125 | |
| 126 | == Drag and Drop support == |
| 127 | The Relation editor has an advanced drag and drop support. You can do the following actions: |
| 128 | * reorder the members in the members list |
| 129 | * move an object from the [wikitr:/Help/Dialog/SelectionList Selection list] to the members list in the relation editor (with automatic role suggestion) |
| 130 | * move an object from the members list of one relation editor instance to another relation editor instance |
| 131 | * move an object from the members list of one relation editor instance to another relation editor instance from another layer* |
| 132 | * move an object from the members list of one relation editor instance to another relation editor instance from another JOSM instance* |
| 133 | * move an object from the members list of the relation editor or from the Selection list to an external text editor |
| 134 | |
| 135 | ^^* provided the objects are part of the dataset |
| 136 | |