OpenStreetMap

How many lines in planet.osm?

Posted by wieland on 5 November 2010 in English (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
http://wiki.openstreetmap.org/wiki/Planet.osm/FAQ
shall I put it there?

Thanks.

Comment from EdLoach on 5 November 2010 at 11:14

Do the statistics about the number of nodes/ways/etc here help? http://www.openstreetmap.org/stats/data_stats.html

Hide this comment

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.

Hide this comment

Comment from hbogner on 5 November 2010 at 13:37

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

Hide this comment

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.

Hide this comment

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

The planet dump from November 3rd has 2527419825 lines.

Hide this comment

Comment from wieland on 7 November 2010 at 16:47

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

Hide this comment

Leave a comment

Parsed with Markdown

  • Headings

    # Heading
    ## Subheading

  • Unordered list

    * First item
    * Second item

  • Ordered list

    1. First item
    2. Second item

  • Link

    [Text](URL)
  • Image

    ![Alt text](URL)

Login to leave a comment