[[TranslatedPages(outdated=This page is outdated. JOSM has improved and the buttons are not really explained.)]] [[PageOutline(2-10,Table of Contents)]] = Relation Editor Dialog = JOSM has three visible features to allow working with [[Image(source:trunk/images/data/relation.png,middle)]] [Concepts/Object#Relations relations]: this relation editor, a relation list, and a modified property display dialog. The relation editor dialog can be used to create, modify, and delete relations. In the [[Image(source:trunk/images/dialogs/propertiesdialog.svg,15,middle)]] [Dialog/TagsMembership tags/memberships dialog] below the listed keys and values there is a list that any relations of which the selected object is a member of is listed together with its "role" in that relation. Double-clicking on a line there will open this relationship editor for the relation in question. The [[Image(source:trunk/images/dialogs/relationlist.png,15,top)]] [Dialog/RelationList relation list] is just another toggle dialog which can be activated using the gear icon [[Image(source:trunk/images/data/relation.png,top)]] on the left panel. It shows a list of all relations loaded and you can add or delete relations there as well. == Relation Editor == The relation editor consists of three tabs and the three buttons on top to: [[Image(source:trunk/images/save.png,bottom,margin-right=15)]] Apply the current changes made within the relation editor to the data [[Image(source:trunk/images/duplicate.png,bottom,margin-right=15)]] Clone e.g create a copy of the relation and open it in another relation editor dialog [[Image(source:trunk/images/dialogs/delete.png,bottom,margin-right=15)]] delete the current relation === Tags and Members ===#TagMember The tags and members tab has an upper part similar to the tags/membership dialog where tags for the relation can be entered and a lower part that contains the list of members of the relation on the left side and a list of the current selection on the right. [[Image(relation_editor.png,600)]] ==== Tags ==== 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. The three button one the left are: [[Image(source:trunk/images/dialogs/add.png,bottom,margin-right=15)]] Add a new tag [[Image(source:trunk/images/dialogs/delete.png,bottom,margin-right=15)]] Delete the current selected boxes of the tag table [[Image(source:trunk/images/pastetags.png,bottom,margin-right=15)]] Paste tags from buffer ==== Members ==== In the lower left part is the member list of the relation. The list shows the role on the left, in the middle the object type as icon plus some identifier like name, ref or simply the id of the object and on the right information about neighbor ways' connections useful for consistency checks like checking that a the members of a multipolygon form closed ways or that a route is a complete line without missing some ways in the middle. Selecting members in this list works as usual and changing the role of a member is possible by clicking on the role. Alternatively, the apply role text fieled at the bottom allows to set a role to all selected members. The buttons on the left offer the following actions if appropriate: [[Image(source:trunk/images/dialogs/moveup.png,bottom,margin-right=15)]] Move the currently selected members up (**`Alt+up`**) [[Image(source:trunk/images/dialogs/movedown.png,bottom,margin-right=15)]] Move the currently selected members down (**`Alt+down`**) [[Image(source:trunk/images/dialogs/edit.png,bottom,margin-right=15)]] Open additional relation editors for the currently selected members of object type relation. [[Image(source:trunk/images/dialogs/delete.png,bottom,margin-right=15)]] Remove the currently selected members from the relation (**`Alt+Delete`**) [[Image(source:trunk/images/dialogs/sort.png,bottom,margin-right=15)]] Sort the currently selected members (**`Alt+End`**) [[Image(source:trunk/images/dialogs/relation/reverse.svg,bottom,margin-right=15)]] Reverse the order of the currently selected members [[Image(source:trunk/images/dialogs/relation/downloadincomplete.png,bottom,margin-right=15)]] Download all incomplete members (**`Alt+Home`**) [[Image(source:trunk/images/dialogs/relation/downloadincompleteselected.png,bottom,margin-right=15)]] Download selected incomplete members ==== Selection ==== === Parent Relations === === Child Relations === == Error and Warning Messages == === Conflict in data when saving or applying a relation ===#RelationChangedOutsideOfEditor {{{ #!html }}} A relation may be edited concurrently in the relation editor dialog ''and'' outside of the relation editor dialog. While the relation editor dialog for a relation is open you may for instance split a way the relation refers to. In this case, the relation is modified but the changes due to the way splitting are not immediately reflected in the relation editor dialog. JOSM keeps track of them, though, and when you close the relation editor dialog or apply changes, the following warning message is displayed: [[Image(warning-conflict-in-data.png)]] It indicates that JOSM is aware of two incompatible [Concepts/Object#Objectversions versions] of this relation. Since JOSM can't resolve the differences between these versions automatically, it proposes to create a [Concepts/Conflict conflict] which you can [Concepts/Conflict#Resolvingconflicts resolve] later using the [Dialog/Conflict Conflict Dialog]. === Unsaved changes === [[Image(relation_editor_unsaved_changes_warning.png,900)]] == See also == * [[Image(source:trunk/images/dialogs/relationlist.png,20,middle)]] [Dialog/RelationList Relation list dialog] * [Concepts/Conflict Conflict] * [Concepts/Object Object] * A more elaborate example can be found on the OSM wiki: [osmwiki:JOSM_Relations_and_Turn_Based_Restrictions JOSM Relations and Turn Based Restrictions] ---- Back to [wiki:/Help Main Help]