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 <[email protected]>: > 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 _______________________________________________ josm-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/josm-dev
