[josm-dev] Already deleted nodes one at a time

Karl Guggisberg karl.guggisberg at guggis.ch
Tue Aug 11 22:48:10 BST 2009


> There are some cases where conflicts should be resolved automatically:
> - server has deleted element and local element is deleted also --> delete
> - server has deleted element and local element is unmodified --> delete

Yes, this should be an enhancement. I'd slightly reformulate it, though,
because there are three different kind
of "deletes":
- server has "invisible" element and local element is "deleted"    ->
"purge" it
- server has "invisible" element and local element is "unmodified" ->
"purge" it 

where
- "invisible"   - visible=false
- "deleted"     - deleted=true
- "unmodified"  - modified=false
- "purge"       - remove all references to the element in the dataset and
either delete the primitive physically 
                  from the dataset or set "visible=false" (not sure whether
the later would work in the local
                  dataset, must of the code just checks for "deleted" not
for "visible"; currently the code always
                  phyiscally removes primitives from the dataset if it
"purges")

-- Karl

-----Ursprüngliche Nachricht-----
Von: josm-dev-bounces at openstreetmap.org
[mailto:josm-dev-bounces at openstreetmap.org] Im Auftrag von Dirk Stöcker
Gesendet: Dienstag, 11. August 2009 23:33
An: josm-dev at openstreetmap.org
Betreff: Re: [josm-dev] Already deleted nodes one at a time

On Tue, 11 Aug 2009, Karl Guggisberg wrote:

>> Yes, it may be a bit more complicated with deleted nodes. Search for
> "modified" (or search for "deleted") in search
>> dialog will show all modified nodes. The update these nodes with the
> update selected.
>
> Hmm, this shouldn't be necessary. UpdateDataAction compares with
> data.getCompletePrimitiveIds() which includes modified and deleted ids 
> (and removes then the ID 0 for new primitives).
>
> Anything special with the dataset we discuss here?

When we are on topic and Trac is offline:

There are some cases where conflicts should be resolved automatically:
- server has deleted element and local element is deleted also --> delete
- server has deleted element and local element is unmodified --> delete

Ciao
--
http://www.dstoecker.eu/ (PGP key available)


_______________________________________________
josm-dev mailing list
josm-dev at openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev





More information about the josm-dev mailing list