[OSM-dev] Relations - member uniqueness question

Igor Brejc igor.brejc at gmail.com
Fri Jul 18 15:36:34 BST 2008


Hi,

This has probably been discussed several times before, but I've come up 
with this problem in Kosmos now and need help. A user reported a bug in 
Kosmos when reading a relation. Here's where the bug occurs:
...
    <member type='way' ref='6549910' role=''/>
    <member type='way' ref='6549910' role='backward'/>
...

So the same way is twice listed as a member of the relation, once with 
an empty role and once as 'backward'. This occurs at least several times 
in the OSM file I received from the user. He downloaded the data using 
OSMXAPI 
(http://www.informationfreeway.org/api/0.5/way[maxspeed=*][bbox=5,47,15,50]).

The Wiki 
(http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.5#Relations) 
states:
"An object can only be referenced in a particular relation once only, 
since the 20th May 2008, the API will return a 412 error if an object is 
referenced twice (before then, a 500 error was returned). "

So am I missing something or is the data on the OSM server not 
structured according to Wiki description?
Thanks in advance,

Igor

-- 
http://igorbrejc.net





More information about the dev mailing list