OpenStreetMap logo OpenStreetMap

How many lines in planet.osm?

Posted by wieland on 5 November 2010 in English.

I am processing the planet file at home. The task is running for three days now.
I have processed more than 1 000 000 000 lines and would like to guess, when it will finish.
I know I can run
$ bunzip2 <plant.osm.bz2 | wc -l
but this will take some hours and will slow down my computer at lot.

I didn't find the question/answer in
osm.wiki/Planet.osm/FAQ
shall I put it there?

Thanks.

Discussion

Comment from EdLoach on 5 November 2010 at 11:14

Do the statistics about the number of nodes/ways/etc here help? osm.org/stats/data_stats.html

Comment from wieland on 5 November 2010 at 11:55

No, but I had an exception stopping my program just now at line 1092671193 :-(
I will post the answer here, as soon the count is done.

Comment from hbogner on 5 November 2010 at 13:37

Do you mean lines as distance between 2 nodes or lines as ways?

Comment from wieland on 5 November 2010 at 13:40

I mean lines as textlines in a textfiles. After unpacking the planet file you have an xml-text-file. A node might have one line or more.

Comment from 26eb5473101d742b174d730717409668 on 7 November 2010 at 12:37

The planet dump from November 3rd has 2527419825 lines.

Comment from wieland on 7 November 2010 at 16:47

Thanks. Now I know, that it stopped after less than 50% :-(

Log in to leave a comment