[OSM-dev] on planetdiff usage

2008-09-02 Thread Mitya Korochkin
Hi everyone,

I'd like to build weekly planet.osm files for the September 2007 using
planetpatch utility (
http://svn.openstreetmap.org/applications/utils/planetdiff/).
I'm running the following command:
./planetpatch planet-070905.osm.bz2 planet-070905-070912.diff.xml.bz2 
planet-070912.osm
But in some minutes I'm getting following errors:

StartElement: Unknown element name: segment
EndElement: Unknown element name: segment

At the same time, planet-070912.osm file is still being created.

Do you know if these error messages are essential?

Thanks in advance
-- 
Mitya Korochkin
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] on planetdiff usage

2008-09-02 Thread Dave Stubbs
On Tue, Sep 2, 2008 at 2:47 PM, Mitya Korochkin [EMAIL PROTECTED] wrote:
 Hi everyone,

 I'd like to build weekly planet.osm files for the September 2007 using
 planetpatch utility
 (http://svn.openstreetmap.org/applications/utils/planetdiff/).
 I'm running the following command:
 ./planetpatch planet-070905.osm.bz2 planet-070905-070912.diff.xml.bz2 
 planet-070912.osm
 But in some minutes I'm getting following errors:

 StartElement: Unknown element name: segment
 EndElement: Unknown element name: segment

 At the same time, planet-070912.osm file is still being created.

 Do you know if these error messages are essential?



Yes, these planets are from before the 0.5 API switch over (which
happened on 6th/7th October 2007). I think you'll need to process them
with a 0.4 version of the planetdiff tool (ie: r4778 in SVN). Any
tools you use will need to know about segments, or else you'll need to
convert the planet first by using the 04to05.pl script at:
http://trac.openstreetmap.org/browser/applications/utils/conv05/04to05.pl

There may be an easier way, but I don't know it.

Dave

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] on planetdiff usage

2008-09-02 Thread Frederik Ramm
Hi,

Dave Stubbs wrote:
 Yes, these planets are from before the 0.5 API switch over (which
 happened on 6th/7th October 2007). I think you'll need to process them
 with a 0.4 version of the planetdiff tool (ie: r4778 in SVN). Any
 tools you use will need to know about segments, or else you'll need to
 convert the planet first by using the 04to05.pl script at:
 http://trac.openstreetmap.org/browser/applications/utils/conv05/04to05.pl

Converting a full planet of the September 07 calibre with the 04to05.pl 
script is likely to land you in trouble unless you have more than 16 GB 
of RAM installed. I have a slightly less memory hungry version of 
04to05.pl which drops unwayed segments and some other things that I 
deemed unnecessary for my history applications (email me if you want 
that), but even that won't process a full planet. If you are only 
interested in a small area, then use a pre-0.5 version of one of the 
bounding box/polygon cutters, cut out the section you're interested in, 
and THEN run 04to05. Otherwise, load the full planet into MySQL (using 
an old Osmosis), then apply the Ruby 04 to 05 migration and afterwards 
do a planet dump.

Bye
Frederik


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev