[OSM-dev] Relations without members?

Gregory Williams gregory.williams at purplegeodesoftware.co.uk
Thu Oct 11 13:11:17 BST 2007


Further tests have revealed that the issue occurs in Osmosis when the
bounding-box task is used. I've just tested that in the latest version
of Osmosis (0.18).

 

Gregory

 

From: Gregory Williams 
Sent: 11 October 2007 12:53
To: 'dev at openstreetmap.org'
Subject: RE: Relations without members?

 

Actually, what I've written isn't quite true. I had pre-filtered the
data using Osmosis v0.17 to extract the UK first using the following
command:

 

java -jar osmosis.jar --read-xml-0.5 file=planet-071010.osm
--bounding-box-0.5 left=-11.2 right=2.2 top=63 bottom=48.9
--write-xml-0.5 file=uk-071010.osm

 

So, it's possible that the issue may lie with Osmosis instead. Just
testing now...

 

Gregory

 

 

From: Gregory Williams 
Sent: 11 October 2007 12:39
To: 'dev at openstreetmap.org'
Subject: Relations without members?

 

All,

 

I've just been taking a look at the latest planet file. There appear to
be several relations without members (or tags for that matter), for
example:

 

  <relation id="1" timestamp="2006-04-14T12:54:34.000Z"/>

  <relation id="2" timestamp="2007-05-18T17:46:48.000Z"/>

  <relation id="3" timestamp="2006-05-01T21:01:58.000Z"/>

  <relation id="4" timestamp="2006-05-01T22:26:09.000Z"/>

  <relation id="5" timestamp="2006-05-01T22:26:11.000Z"/>

 

However, if I request these from the API then they have both members and
tags:

<relation id="1" visible="true" timestamp="2006-04-14T13:54:34+01:00"
user="80n">

<member type="way" ref="3156" role=""/>

<member type="way" ref="8120147" role=""/>

<tag k="type" v="multipolygon"/>

</relation>

<relation id="2" visible="true" timestamp="2007-05-18T18:46:48+01:00"
user="Gabriel Ebner">

<member type="way" ref="3160" role=""/>

<member type="way" ref="8120148" role=""/>

<tag k="type" v="multipolygon"/>

</relation>

<relation id="3" visible="true" timestamp="2006-05-01T22:01:58+01:00"
user="80n">

<member type="way" ref="256265" role=""/>

<member type="way" ref="8120632" role=""/>

<tag k="type" v="multipolygon"/>

</relation>

<relation id="4" visible="true" timestamp="2006-05-01T23:26:09+01:00"
user="80n">

<member type="way" ref="258188" role=""/>

<member type="way" ref="8120658" role=""/>

<tag k="type" v="multipolygon"/>

</relation>

<relation id="5" visible="true" timestamp="2006-05-01T23:26:11+01:00"
user="80n">

<member type="way" ref="258197" role=""/>

<member type="way" ref="8120663" role=""/>

<tag k="type" v="multipolygon"/>

</relation>

 

I haven't looked at the rest of the planet yet, but all of the relations
I've seen so far don't have members or tags. So, it appears that the
planet dump isn't working quite correct for relations.

 

Separately, the timestamps seem a bit strange, considering that
relations were only added very recently. Were some of these relations
somehow generated from existing data?

 

Gregory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20071011/6a4d9c80/attachment.html>


More information about the dev mailing list