[OSM-dev] Dealing with segements referencing deleted nodesinthe planet dump

80n 80n80n at gmail.com
Thu Jan 18 23:33:15 GMT 2007


Oh, if anyone wants to analyse exactly what I did here is the log of JOSM
downloads and uploads:

download:
http://www.openstreetmap.org/api/0.3/map?bbox=-2.3663553680899265,51.3
7745342714595,-2.3553690399649265,51.38294659120845
got return: 200
upload to: http://www.openstreetmap.org/api/0.3/node/0
got return: 200 with id 25293882
upload to: http://www.openstreetmap.org/api/0.3/node/0
got return: 200 with id 25293883
upload to: http://www.openstreetmap.org/api/0.3/segment/0
got return: 200 with id 21278469
upload to: http://www.openstreetmap.org/api/0.3/way/2538
got return: 200 with id 2538
upload to: http://www.openstreetmap.org/api/0.3/way/2538
got return: 200 with id 2538
upload to: http://www.openstreetmap.org/api/0.3/node/25293882
got return: 200 with id 25293882
upload to: http://www.openstreetmap.org/api/0.3/node/25293883
got return: 200 with id 25293883
upload to: http://www.openstreetmap.org/api/0.3/segment/21278469
got return: 410 with id 21278469
upload to: http://www.openstreetmap.org/api/0.3/way/2538
got return: 410 with id 2538
download:
http://www.openstreetmap.org/api/0.3/map?bbox=-2.3680490771819596,51.3
76649595847574,-2.35197177008914,51.383867878399
got return: 200
upload to: http://www.openstreetmap.org/api/0.3/node/0
got return: 200 with id 25293921
upload to: http://www.openstreetmap.org/api/0.3/node/0
got return: 200 with id 25293922
upload to: http://www.openstreetmap.org/api/0.3/segment/0
got return: 200 with id 21278506
upload to: http://www.openstreetmap.org/api/0.3/way/2542
got return: 200 with id 2542
upload to: http://www.openstreetmap.org/api/0.3/way/2542
got return: 200 with id 2542

--

download:
http://www.openstreetmap.org/api/0.3/map?bbox=-2.3663553680899265,51.3
7745342714595,-2.3553690399649265,51.38294659120845
got return: 200
upload to: http://www.openstreetmap.org/api/0.3/node/25293922
got return: 200 with id 25293922
upload to: http://www.openstreetmap.org/api/0.3/node/25293921
got return: 200 with id 25293921
upload to: http://www.openstreetmap.org/api/0.3/segment/21278506
got return: 410 with id 21278506
upload to: http://www.openstreetmap.org/api/0.3/way/2542
got return: 410 with id 2542




On 1/18/07, 80n <80n80n at gmail.com> wrote:
>
> They are gone now.  I used the following method to make them dissappear:
>
> 1) Using JOSM, create a new segment nearby.
>
> 2) Select the offending way and add the newly created segment to the way.
>
>
> 3) Then remove all old segments from the way *except* for the newly
> created segment.
>
> 4) Upload
>
> 5) Delete the way and newly created segment.
>
> 6) Upload
>
> I'm not sure why this works but it seems to do the job.
>
> 80n
>
>
>
> On 1/18/07, Dean Earley <dean at earlsoft.co.uk> wrote:
> >
> > >>> I have a similar problem with two ways in the centre of bath that
> > >>>  reference segments that don't exist. They've been like that for
> > >>> as long as I can remember....
> > >>>
> > >>> I tried a similar trick to what you said, and I think they only
> > >>> reference live segments now, but I still can't seem to delete
> > >>> them. They come back next time I download in JOSM. Any pointers?
> > >>>
> > >>> They are ways 2538 and 2542
> > >>>
> > >>> (They have suspiciously low ID numbers compared to everywhere
> > >>> else in Bath)
> > >>
> > >> Neither of them appear to be in planet.osm or on the server. Can
> > >> you give a sample download area that gets them?
> > >
> > > <http://www.openstreetmap.org/index.html?lat=51.3802000091772&lon=-2.3608622040274265&zoom=15
> > >
> >
> > They do seem very persistent...
> >
> > Any changes I make are uploaded (and remembered) without a problem.
> > Requesting them manually says 404 not found.
> > Trying to delete them says 410 Gone which means they did exist but have
> > already been deleted.
> >
> > Yet they come back as soon as you re-download the area.
> >
> > Can anyone with slightly more knowledge of the api/db internals explain
> > this?
> >
> > --
> > Dean Earley, Dee (dean at earlsoft.co.uk)
> >
> > irc:    irc://irc.blitzed.org/
> > web:    http://personal.earlsoft.co.uk
> > phone:  +44 (0)780 8369596
> >
> > _______________________________________________
> > dev mailing list
> > dev at openstreetmap.org
> > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20070118/c457b015/attachment.html>


More information about the dev mailing list