7 | | == In a nutshell == |
8 | | |
9 | | The {{{contourmerge}}} plugin helps you to align the contours of areas in JOSM. |
10 | | |
11 | | [[Image(lake-and-forest.1.png,align=left, valign=top, margin-right=10)]] |
12 | | Here's a typical example: a '''lake''' with a detailled shoreline and a '''forest'''. |
13 | | |
14 | | The contour of the forest should be aligned with the lakes shoreline. |
15 | | |
16 | | Select the {{{contourmege}}} map mode in the toolbar for map modes and perform the steps below. |
17 | | {{{ |
18 | | #!html |
19 | | <br clear="all"/> |
20 | | }}} |
21 | | |
22 | | === Step 1 - Select the "cut-nodes" === |
23 | | |
24 | | [[Image(lake-and-forest.2.png, 160px, align=left, valign=top, margin-right=20)]] |
25 | | |
26 | | * Select the part of the contour you want to merge, in both the areas for the lake and the forest. '''Left-Click''' on the respective nodes to mark them as selected. |
27 | | |
28 | | {{{ |
29 | | #!html |
30 | | <br clear="all"/> |
31 | | }}} |
| 7 | The `contourmerge` plugin helps you to align the contours of areas in JOSM. |
34 | | === Step 2 - Drag the source contour === |
| 10 | == Usage == |
| 11 | **Step 1 - Select the "cut-nodes"**: |
| 12 | * Enable mode, you will need to select (**at least**) two points for every area; but not [#Usagewithways on ways] - there no requirement in minimal node count for ways that are not areas; |
| 13 | * Use left mouse click to select point (icon: standard icon add node will appear); use left mouse click to deselect a point (icon with cross will indicate selected point); |
| 14 | * After all 2+ points selected, you can pick one of 2+ ''parts'' as ''source geometry'' to move. Hover a mouse over one ''part'' and cursor will be changed to (cursor: move with 4 arrows); |
| 15 | **Step 2 - Drag the source contour**: |
| 16 | * After you started to drag ''source geometry'', you have options in target geometry. Your ''source geometry'' will change it's shape to a ''target geometry'' shape after mouse hover and ''shortcut icon'' will be displayed; |
| 17 | **Step 3 - make adjustments and continue editing as usual**: |
| 18 | * Contours will be merged. But if a ''source geometry'' had only one segment left, it will be completely collapsed; |
| 19 | * You can repeat steps 2-3 as many times as you want until tool will disabled or there nothing left to merge |
39 | | {{{ |
40 | | #!html |
41 | | <br clear="all"/> |
42 | | }}} |
43 | | [[Image(lake-and-forest.4.png,160px, align=left, valign=top, margin-right=20)]] |
44 | | * When you drag it over a possible target contour, the source contour is aligned with the target contour. |
| 27 | === Usage with ways ===#Usagewithways |
| 28 | Notes on source: |
| 29 | * tags on a way will be kept |
| 30 | * tags on nodes will be discarded |
| 31 | * geometry will be replaced |
46 | | {{{ |
47 | | #!html |
48 | | <br clear="all"/> |
49 | | }}} |
50 | | |
51 | | === Step 3 - Align the contours === |
52 | | [[Image(lake-and-forest.5.png, 160px, align=left, valign=top, margin-right=20)]] |
53 | | * Drop the source contour. The contours of the lake and the forest are merged. |
54 | | |
55 | | If the merge doesn't happen as expected, reversing one of the ways helps. |
56 | | |
57 | | {{{ |
58 | | #!html |
59 | | <br clear="all"/> |
60 | | }}} |
| 33 | Notes on target: |
| 34 | * nothing is changed |
| 35 | * No cut points selected (because both objects are ways, not area): \\ \\ |
| 36 | [[Image(ex2-merge-contour-with-another-countour-usage-on-ways.gif,link=)]] \\ \\ |
| 37 | * multiple source geometries: \\ \\ |
| 38 | [[Image(ex4-merge-contour-with-another-countour-usage-on-areas.gif,link=)]] |