JOSM/Plugins/utilsplugin2

From OpenStreetMap Wiki
< JOSM‎ | Plugins
Jump to: navigation, search
Available languages
Deutsch English русский

UtilsPlugin2 is another collection of useful tools as follow up to UtilsPlugin now included in the JOSM program.

The functions are accessible via the More tools menu, Selection menu, and shortcuts.

More tools menu

Unglue relation (Shift+G)

From the original announcement on the JOSM-dev mail-list:

5563 - Unglue relation (by Kalle Lampila)

In a similar way that a single node is shared by two ways and you like to unglue it, there are sometimes two relations (e.g. multipolygon) that have the same object as member (e.g., the boundary way). This tool creates a private copy for each parent relation. (So in the example, the two multipolygon areas can be separated.)

Jt josm util2 icon intersection.jpg Add nodes at intersections (Shift+I)

Add nodes at intersection points

Adds nodes at the intersections of two or more ways (linear or closed). Selected ways will not be split.

20px‎ Split area (Alt+X)

Split closed way (area)

Splits a closed way/area into two closed ways/areas at two selected points or selected way. Properties of the original area are copied to the two new areas. Either select the closed way/area and two child nodes, or select the closed way/area and one way bisecting it.

Replace geometry (Ctrl+Shift+G)

Substitutes the geometry of one object for another retaining as much metadata and history as possible. There are currently two supported modes:

Replace one way with another way

It may be faster to draw a new way rather than correct an existing one, but you want to retain the history. Some or all nodes of the old way are moved to positions of the new ones, and some nodes are transferred between ways. Then the new way is deleted, having played its role. This is done to preserve way and node history as much as possible. For example:

  1. Choose a poorly drawn way in OSM database that you want to fix.
  2. Draw a new way, neat and correct, with all the correct angles.
  3. Select both ways.
  4. Use Replace geometry action. Now it seems like old way was deleted, and the new way has all the tags and relations of the old one.

Replace a node with a way

Sometimes you may encounter a node for a feature, like a restaurant, but you have imagery with sufficient detail that you can trace the building outline. Or perhaps you've encountered a situation where the same feature is represented with both a node and a way, violating the principle of One feature, one OSM element. In either case, select the node and the way, and the Replace Geometry action will replace (upgrade) the node with the way, retaining as much history as is possible.

Note that any combination of uploaded/new node and way is accepted. The node is always replaced in favor of the way.

Paste relations (Ctrl+Alt+V)

Similarly to Paste tags, the selected objects are added into relations that contain any of the objects in the clipboard, with appropriate roles if they can be determined.

Add source tag (Ctrl+Alt+S)

Simplifies setting source=* for new objects. It remembers which source was specified last, and pastes it with just one click. It is not needed to enter new source tag value for the action to remember: you may click twice on any object with needed tag value.

Copy tags from previous selection (Shift+R)

Similar to R button in Potlatch. The tags from the previously selected object are added to the current selection. So, to copy tags from one way to another, you don't need to copy then paste; just select source way, then the target way, then invoke this tool.

Align way nodes (Shift+L)

Similar to Align nodes in line, but uses a parent way as context. The behaviour depends on the current selection:

  • one node: node will be aligned in a line with the two adjacent nodes in the parent way.
  • two nodes: intermediate nodes in the parent way will be aligned in a line with the two nodes.
  • three or more nodes: all nodes will be aligned in line.


Use custom URL (Shift+H)

Open URL in default browser with data from selected node or location of center of the screen. Add settings to preferences/utilsplugin2-tab or customurls.txt in JOSM folder.

  • Google maps: http://maps.google.com/?q={#lat},{#lon}
  • National Land Survey service in Finland: http://kansalaisen.karttapaikka.fi/koordinaatit/koordinaatit.html?y={#lat}&x={#lon}&srsName=EPSG%3A4258

Selection menu

Select adjacent nodes (E)

Adjnodes.png

Adds immediately adjacent (by connection via ways) nodes of currently selected nodes to selection.

  • If the current selection also contains ways, then only connections via these ways is considered.
  • If the current selection contains only ways, the selection is replaced with the nodes of these ways.

Example of usage: select one node (and possibly its way), press E (three nodes are selected now), press L to put the node on straight line.

Select adjacent ways (Shift+E)

Adjways.png

Selects immediately adjacent ways of currently selected ways or nodes.

Select all connected ways (Crtl+Shift+E)

Connways.png

Selects all ways connected (possibly via intermediate ways) to the current selection.

Select intersecting ways (I)

Intways.png

Adds intersecting ways the current selection. Useful with Add nodes at intersections.

Select all intersecting ways (Crtl+Shift+I)

Intwayall.png

If some ways are selected, selects all adjacent and intersecting ways recursively. Useful for selecting parts of the building to join.

Jt josm util2 icon.jpg Installation

Installation is done via JOSM preference as described in JOSM/Plugins, section installation.

Links