開放街圖標誌 OpenStreetMap 開放街圖

Relations going away ?

於 2008年十月14日 由 Luc MoreauEnglish發表。

I started re-defining a relation (osm.org/browse/relation/37300/) to map a cycle route found on a web site. I already did that relation two days ago (using podlatch as i'm too lazy to teach myself how to use JOSM). Today I looked back and the relation was still there but had no member ways |@#¼ anymore.
Is this a Podlatch bug or something ?

電子郵件圖示 藍天圖示 Facebook 圖示 LinkedIn 圖示 乳齒象圖示 Telegram 圖示 X 圖示

討論

Circeus2008年10月14日 23時29分 發表的評論

The history of ways doesn't track addition or removal of relations. Maybe somebody was not too bright and did improper merges, or remover the relation from its elements?

Richard2008年10月15日 00時46分 發表的評論

Are you sure it's missing? I can see it here: osm.org/edit?lat=50.59196&lon=4.61728&zoom=15&way=27695325

Circeus2008年10月15日 00時57分 發表的評論

I was assuming he had to reconstruct it.

Richard2008年10月15日 01時18分 發表的評論

Well, my best guess is that it's versions executing out of sequence. If you add a way to a relation, then do that (say) 10 times, that's fine if the server executes the first write (relation contains way A), then the second (contains A, B), then the third (contains A, B, C) and so on.

But if the first write takes a very long time getting through, which can happen, then it's possible the server will execute the tenth write (A,B,C,D,E,F,G,H,I,J), then the first (A). And if you leave Potlatch at that point then the first will be the live version.

Unfortunately there's not a whole lot that can be done about this until API 0.6. 0.6 will return version numbers with every read, and require them to be sent with every write, so it will be able to reject a write of version 1 after version 10. But right now Potlatch doesn't actually know the version of any object so there's no sensible way to add this check.

Richard2008年10月15日 09時55分 發表的評論

Memo to self: close the italics tag. :) Anyway, thinking about it, there was a bug for a few hours in adding relations. Maybe this is what swiped it. Apologies if so.

Luc Moreau2008年10月15日 16時16分 發表的評論

Yes Richard it was not missing but empty (containing no ways I believe or maybe just one remaining way - I don't remember). Anyway I started redefining it just after posting this diary entry and it didn't took me too long to do that. Looking at the time of your comment I had probably already finished.
Thanks for the explanations.

登入 來留下評論