[OSM-dev] export error (planet.osm)?

Robert (Jamie) Munro rjmunro at arjam.net
Tue Mar 13 16:37:14 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonas Svensson wrote:
> When I look at a certain node in the dump I get some odd keys (odd, 
> but no worries). However when I look at the same node using the api 
> I get a completely different result. *That* worries me. Is there a 
> problem with the dump process? Is this known?

AFAICS, the main difference is that you are getting tags with empty
values in the planet dump, but the api seems to be filtering them out.
This only seems a bit wrong. Really the bad data should just be removed
from the DB.

Robert (Jamie) Munro

> Compare:
> $ wget 
> http://name:password@www.openstreetmap.org/api/0.3/node/23654915/his
> tory
> --18:35:19--  
> http://name:*password*@www.openstreetmap.org/api/0.3/node/23654915/h
> istory
>            => `history.4'
> 
> $ cat history.4
> <?xml version="1.0" encoding="UTF-8"?>
> <osm version="0.3" generator="OpenStreetMap server">
>   <node id="23654915" lat="50.7527" lon="6.07374" visible="true" 
> timestamp="2007-01-01 13:38:12">
>     <tag k="tourism" v="hostel"/>
>     <tag k="name" v="1.12."/>
>     <tag k="created_by" v="JOSM"/>
>   </node>
> </osm>
> 
> to this:
> $ bzcat ../planet-070228a.osm.bz2 |grep -B 5 -A 10 "0049-(0)241-
> 711010"
>   <node id="23654915" lat="50.7527" lon="6.07374" timestamp="2007-
> 01-01T13:38:12+00:00">
>     <tag k="" v="" />
>     <tag k=" " v="" />
>     <tag k="name" v="1.12." />
>     <tag k="created_by" v="JOSM" />
>     <tag k=" 0049-(0)241-711010" v="" />
>     <tag k="tourism" v="hostel" />
>   </node>
> 
> 
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9tM3z+aYVHdncI0RAtF0AJ4vVPOVTCOFZY50BALFHPZVKzistwCgrys2
39paHnXKI7FGFPDYn5TPqU0=
=DXNN
-----END PGP SIGNATURE-----




More information about the dev mailing list