User:Cobra/TipsAndTricks

From OpenStreetMap Wiki
Jump to navigation Jump to search

JOSM

Load all objects of a changeset

For certain tasks you need to have all objects contained in a changest. This may be the case when fixing things when an edit went wrong (e.g. some objects were tagged the wrong way).

Requires:

  • reverter plugin

How to do it:

  1. open a new (empty) layer
  2. History -> Revert Changeset
  3. enter the changeset ID, select "revert fully"
  4. load the changeset and all objects. JOSM will ask you to download objects which aren't contained in the current layer (which is empty), confirm this with ok.
  5. wait until everything has finished
  6. undo the revert operation by pressing ctrl-z (or using the button/menu)
  7. update data to be sure that everything is up-to-date.
  8. click upload to verify that there are "no changes to upload". If there are changes, look at the command stack/undo buffer.
  9. if needed, purge unwanted objects

Drawing buildings

These guides are focused on doing the job the most efficient way using keyboard shortcuts and as few steps as possible.

Requirements for all techniques:

Terraced buildings with existing house number nodes

Initial situation: house numbers were mapped as single nodes and proper aerial imagery is available. In this case 0.05m/px aerial imagery provided by Aerowest were used.

Requires:

How to do it:

  1. Switch to "Draw Buildings" mode (press b). Take the little overlap of the roof into account and click the upper right corner to start the base line.
    JOSM Mapping Terraced Buildings 0.png
  2. Finish the base line on the upper left corner. Now continue by drawing up the area, including the house number node. Take care to include a single node instead of multiple ones.
    JOSM Mapping Terraced Buildings 1.png
  3. Click to complete the building. The node will be deleted, the building will be tagged building=yes and will inherit all tags and relation memberships of the node.
    JOSM Mapping Terraced Buildings 2.png
  4. The next 3 steps are optional, especially useful for long rows of short buildings when it is difficult to get the orientation right on the first building. Doing this now will help a lot when buildings are offset from the center line. Switch to "Create areas" (press x). Extrude the area by ctrl-clicking the lower line to cover all connected buildings:
    JOSM Mapping Terraced Buildings 3.png
  5. Now correct the rotation and position.
    JOSM Mapping Terraced Buildings 4.png
  6. Use "Create areas" (x) to move the lower line back to its correct position. Switch back to "Draw buildings" (b)
    JOSM Mapping Terraced Buildings 5.png
  7. Begin the next building by clicking the lower right node of the previous one, draw the base line to the opposite node.
    JOSM Mapping Terraced Buildings 6.png
  8. Click on the node and draw up the building area.
    JOSM Mapping Terraced Buildings 7.png
  9. Repeat steps 7+8 until all buildings are drawn.
    JOSM Mapping Terraced Buildings 8.png
  10. Adjust single buildings if necessary, then select all connected buildings and move them to the correct position on the ground.
    JOSM Mapping Terraced Buildings 9.png
  11. Finally fine-tune by aligning the buildings with e.g. fences, walls and hedges.

Round extensions

This describes how to create circular extensions of buildings like bays or stairwells.

Requires:

How to do it:

  1. Draw the building. If the extension isn't on the same height as the roof and the imagery isn't perfectly orthogonal move it accordingly.
    JOSM round extensions 0.png
  2. Draw a way from one corner of the extension to the outer edge and the other corner. You don't have to hit the center line, any point on the edge will do.
    JOSM round extensions 1.png
  3. Press shift-c to create the arc.
    JOSM round extensions 2.png
  4. Complete the way to form an area.
    JOSM round extensions 3.png
  5. Add the building to the selection by shift-clicking it, then hit shift-j to join both. Continue mapping the building.
    JOSM round extensions 4.png