[OSM-newbies] Planet data in more compact format?

Peter Childs pchilds at bcs.org
Fri Apr 17 17:14:47 BST 2009


2009/4/17 Russ Nelson <russ at cloudmade.com>:
>
> On Apr 17, 2009, at 9:35 AM, Kelly Jones wrote:
>
>> I've previously downloaded and bunzip2'd (or at least bzcat'd)
>> planet-latest.osm.bz2.
>>
>> It's great and complete, but has many unnecessary characters (eg,
>> XML tags).
>>
>> Is there a compacter version of this information?
>
> XML is an interchange and archive format, not a format that anybody
> actually uses inside their application.  When gzip or bzip2
> compressed, the wordiness of the XML gets compressed away.  In your
> own application, though, you should consider parsing and reformatting
> the data.
>
> --
> Russ Nelson - http://community.cloudmade.com/blog - http://wiki.openstreetmap.org/wiki/User:RussNelson
> russ at cloudmade.com - Twitter: Russ_OSM - http://openstreetmap.org/user/RussNelson
>
>
> _______________________________________________
> newbies mailing list
> newbies at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/newbies
>

Be warned however that putting data into a database will add to the
bloat not subtract, in terms of indexes, dead tuples etc etc. The
standard quote is around 10 times extra space requirement than the raw
data once placed in a database (. Static data is usually better.

Peter.




More information about the newbies mailing list