[[TranslatedPages]] == Create a parent relation == Parent [wiki:Help/Concepts/Object#Relations relation] is a relation that consist of other relations as its childs. === Load or create child relations === In this demo we simply pasted https://www.openstreetmap.org/relation/1152180 in active OSM data layer (make sure you have one first), other options covered at [[Help/Downloading data]]. [[Image(create parent relation (route_master) - 1 load data or make sure you have all child relations in relations window.png,nolink,50%)]] === Select at least one child relation in Relations window === In [wiki:Help/Dialog/RelationList Relation list window]: We are holding {{{Ctrl}}} to select multiple child relations at once in Relations window. But there [wiki:Help/Dialog/SelectionList#Selection many tools to select relations]. [[Image(create parent relation (route_master) - 2 optionally use ctrl to select multiple relations.png,nolink,50%)]] === Selection window === In [wiki:Help/Dialog/SelectionList Selection window]: * If you did nothing: nothing was subselected - it means everything was selected * If only 2 items were selected in Selection window (using {{{Ctrl}}} but in this window now), only 2 objects will be visible later on. [[Image(create parent relation (route_master) - 3.a refine subselection in selection window hold Ctrl and click at every child relation.png,nolink,50%)]] [[Image(create parent relation (route_master) - 3.b 2 route relations now selected in selection window.png,nolink,50%)]] === Open Relation editor with selection === Click ''Plus button'' in ''Relations list window'' to ''open relation editor with selected relations'': [[Image(create parent relation (route_master) - 4 open relation editor with selected relations (Plus button in Relations window).png,nolink,50%)]] === Relation editor === In [wiki:Help/Dialog/RelationEditor Relation editor]: ==== Add all of some members from selection to the left ==== Read hover captions or [wiki:Help/Dialog/RelationEditor Relation editor] page about what each button does. [[Image(create parent relation (route_master) - 5 add all selected members to the left.png,nolink,50%)]] ==== Add tags to parent relation ==== 1. Use top part or relation editor to add tags. ''Tags are different depending on what you want to detail, seek for help if you have questions about tags;''[[br]] 2. Press {{{OK}}} [[Image(create parent relation (route_master) - 6 add tags to parent relation (top part or relation editor) and press ok.png,nolink,50%)]] == Remove or edit child relations == In public transport schema this is similar to edit/removing detour {{{route}}} relations from {{{route_master}}} relation. 1. [wiki:Help/Dialog/SelectionList#Selection Select a relation] that has other relations as it's members, open [wiki:Help/Dialog/RelationEditor Relation editor]. 2. Select one or more members from the left (hold {{{Ctrl}}} to select multiple) and use according button, as described here: [[Help/Dialog/RelationEditor#Bottomhalfleftsidemembers]] == Remove parent relations == Impossible ATM, but you can navigate to parent relation and remove respective child. Select proper parent and press "edit" button in [wiki:Help/Dialog/RelationEditor#ParentRelationstab Parent Relations tab].