OpenStreetMap 标志 OpenStreetMap

How many lines in planet.osm?

wieland 于 2010年十一月 5日 以 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.

电子邮件图标 Bluesky图标 Facebook图标 LinkedIn图标 Mastodon图标 Telegram图标 X图标

讨论

EdLoach2010年11月 5日 11:14 的评论

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

wieland2010年11月 5日 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.

hbogner2010年11月 5日 13:37 的评论

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

wieland2010年11月 5日 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.

26eb5473101d742b174d7307174096682010年11月 7日 12:37 的评论

The planet dump from November 3rd has 2527419825 lines.

wieland2010年11月 7日 16:47 的评论

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

登录以留下评论