| 5 | | [[Image(source:/osm/applications/editors/josm/plugins/utilsplugin2/images/splitobject.png,link=,middle,48,margin-right=20)]] ''Keyboard shortcut:'' **`Alt+X`** |
| | 5 | [[JOSMImage(plugins/utilsplugin2/images/splitobject,link=,middle,48,margin-right=20)]] ''Keyboard shortcut:'' **`Alt+X`** |
| | 6 | [[Image(josm_split_mp.gif, 300px, right, margin=10)]] |
| 9 | | Select the area and a way connected to the outline at its end nodes and split the area. Currently this action only works with a single way to split along and only with relations with a single outer ring formed by all members with role `outer`. Additionally, all members of the relation have to be downloaded. |
| | 10 | Depending on the type of object, the underlying objects and the desired outcome different selections are needed. In all cases both areas inherit all tags and are selected after the action: |
| | 11 | |
| | 12 | == Closed way ==#ClosedWay |
| | 13 | * With only two nodes of the way selected which are not direct neighbors, the way is split with a straight line between the selected nodes into two closed ways. |
| | 14 | * If two or more closed ways share the selected nodes, the closed way needs to be selected in addition. |
| | 15 | * With a non-closed way without tags selected which shares its end nodes with the closed way, the closed way is split along the non-closed way into two closed ways |
| | 16 | * Again, if two or more closed ways share the end nodes of the non-closed way, the closed way needs to be selected in addition. |
| | 17 | |
| | 18 | == Relation == |
| | 19 | **Note**: Be careful to have all parent relations of all `outer` ways which will be split download. |
| | 20 | |
| | 21 | In order to split a relation, all members of the relation have to be downloaded. The relation and a non-closed way without tags and with its end nodes sharing any way with membership of the relation and with role `outer` need to be selected. Additionally, the non-closed way is not allowed to cross any member with role `inner` nor share any nodes with one of them. |