[josm-dev] How to if a node is mergeable?
Sebastian Klein
bastikln at googlemail.com
Mon Dec 27 21:12:09 GMT 2010
I'm not sure I understood correctly, but you can use
NavigatableComponent.getNearestNodes() or something similar to get all
nearby nodes. Then filter by distance and do the other checks.
Sebastian
2010/12/27 Flávio Henrique <yoshimit at gmail.com>:
> Hi there.
> I have data from a city that I'm working to import, but need to do a lot of
> manual work before.
> I need to combine the various segments (ways) onto one way, but first I have
> to find out the nodes that should be merged and, then, combine the segments.
>
> I'm playing with MergeNodesAction.java class and the changes is almost done
> to do the work, but seems the code merge nodes that is not "mergeable". I
> meant: when you select a node that could be referred by two or more ways,
> JOSM shows it like this: http://i52.tinypic.com/21km9t5.jpg. But when you
> select an "alone"-unmergeable node, JOSM shows it like this:
> http://i54.tinypic.com/29glv0k.jpg.
>
> How can I test if the node "alone" or not and call the actionPerformed
> method only for those "mergeable" ?
>
> Thank you!
>
> Flávio Henrique
More information about the josm-dev
mailing list