[josm-dev] Scripting plugin

Jo winfixit at gmail.com
Sat Mar 19 01:14:30 GMT 2011


Hi guys,

Maybe this is not the right list for my question. If so, I'm sorry.
I'm more of a Python programmer than a Java programmer, this is why the
scripting plugin peeked my interest.

The one example showing how to show the number of layers is not enough to
get me started with what I want to accomplish though.

Is there somebody who can assist me with the following task?

- User selects two primitives: a node with housenumber information and a
closedway representing a building.
- Jython script copies all the properties from the node and merges the node
with one of the nodes of the building
- Then all the properties from the node are copied to the building closedway

So what I need to know is: how to determine what the user selected.

the properties of the node; probably as a Python dictionary
how to assign these properties to the building closedway

how to merge the selected node with the northmost node of the selected
closedway

Tia,

Jo


More information about the josm-dev mailing list