Hello -

Yesterday I updated my planet.osm file using osmosis (for the first time!) and the updated planet_new.osm file is smaller than the original planet.osm. This is not the result I expected, I expect the updated file to always be larger, unless there has been an (extensive) clean up. By the numbers:

25.9gb planet.osm.pbf from 25 September

1.9gb "update.osc.gz from 5 November

21.3gb planet_new.osm.pbf from 5 November

Before I post my "update" code I am wondering if these results are correct.

Thanks, pitney

asked 06 Nov '14, 18:38

pitney's gravatar image

pitney
44557
accept rate: 0%

closed 13 Nov '14, 18:05

aseerel4c26's gravatar image

aseerel4c26 ♦
31.9k16236548

1

There's quite some detail missing in your question. Can you post the exact steps you performed as well, e.g. exact command line arguments, how you created update.osc.gz, etc.

Do you know osmupdate? This tool might come in handy to update your pbf file, as it runs all required download and merge steps automatically without much need for user intervention.

(08 Nov '14, 14:05) mmd

mmd -

Thank you for the suggestion on osmupdate, it worked better for me. First I installed osmtools (for osmconvert (zlib)) from here:

http://trajectorycomputing.com/category/tools/

then osmupdate. I may still have an issue because I am using a planet file from osm2garmin (trying to avoid that 26gb download) but I am good to go for now. How do I mark this as closed? pitney

(13 Nov '14, 17:52) pitney

@pitney: and now your file is not smaller any more?

(13 Nov '14, 18:02) aseerel4c26 ♦

@pitney: If mmd's comment would be an "answer", you could accept it. Converting would also work, but not currently (software bug). I have closed this question in the alternative.

(13 Nov '14, 18:02) aseerel4c26 ♦

The question has been closed for the following reason "Solved. See comments below (osmupdate worked better)." by aseerel4c26 13 Nov '14, 18:05


Hmm, the full planet pbf files did not get smaller recently (and I am not aware of a recent big cleanup). So, yes, this seems to be strange.

Note: I really may not be the best person to answer this (because I got really no experience with planet files or OSM DBs).

permanent link

answered 08 Nov '14, 02:52

aseerel4c26's gravatar image

aseerel4c26 ♦
31.9k16236548
accept rate: 18%

edited 08 Nov '14, 02:53

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×45

question asked: 06 Nov '14, 18:38

question was seen: 1,704 times

last updated: 07 Dec '14, 16:16

powered by OSQA