[josm-dev] PATCH: Merge nodes

Gabriel Ebner ge at gabrielebner.at
Wed Oct 24 09:52:05 BST 2007


On Wed, Oct 24, 2007 at 12:00:22AM +0100, matthew-osm at newtoncomputing.co.uk wrote:
> On Tue, Oct 23, 2007 at 10:09:46AM +0200, Gabriel Ebner wrote:
> > On Tue, Oct 23, 2007 at 01:23:43AM +0100, matthew-osm at newtoncomputing.co.uk wrote:
> > > This patch gives a Merge Nodes functionality - select two or
> > > more nodes and they are "merged" together, i.e. all ways
> > > that use those nodes are readjusted to use just one of them,
> > > and the other nodes are deleted.
> > 
> > The utilsplugin can do that too,
> 
> Oops, missed that one :-(
> 
> One reason I always find plugins a pain - you never know
> what features exist because they aren't in the main build.
> On the other hand getting a PhD should have taught me to
> research existing stuff before doing new work...
> 
> > it will even move the node to the average of
> > the merged ones.
> 
> That's actually something I definitely didn't want - in my
> case the road should stay put, and the landuse next to it
> should join the road. Merging to a new average spot would
> just mess up the road.

The old UtilsPlugin always reused one of the old nodes.  You just never knew
which, that's why I changed the behaviour.

> Does the plugin version compare tags for conflicts?

Err, no.  I guess this is something I still have to implement.

> I can't check as it doesn't seem to be updated for 0.5 yet (get
> error "java.lang.NoClassDefFoundError:
> org/openstreetmap/josm/data/osm/Segment" at startup).

There's a working version at
http://svn.openstreetmap.org/appications/editors/josm/plugins/utilsplugin/utilsplugin.jar
It should actually be available via JOSM's update mechanism.

  Gabriel.




More information about the josm-dev mailing list