[josm-dev] Deleting of nodes in a way
Frederik Ramm
frederik at remote.org
Sun Nov 25 18:32:32 GMT 2007
Hi,
> I've had the need a few times lately to have a Node->Way lookup. See
> the patches I just posted. :)
>
> Would there be any interest in having such a lookup structure embedded
> in the Node class, then modified by the Way class as nodes get added and
> removed?
I had implemented such a reverse lookup with my first relation code
and it was a real pain, because it is not enough to put the relevant
code in the Way class, you also need to amend all those undo/redo
thingies to update the cache. You end up changing a Node object (by
changing its lookup table) without actually changing the node in the
database sense. This causes a lot of confusion and makes the code less
manageable, or at least this was the case with my implementation...
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00.09' E008°23.33'
More information about the josm-dev
mailing list