0

I must say I don't understand this completely.

But when I try to convert a binary pbf file for my country Germany which is of size 3gb using osm2pgsql (slim mode), it is converted to postgresql tables for 3 hours and fails with the message 'not enough disk space'. I have 50gb of free space in my linux machine.

I can understand the temporary files are added to RAM normally and because I am using slim mode it is saved to database.

Please enlighten me, how a 3gb osm file while converting to postgresql(gis) tables takes 50gb space and throws that error ?

How do I solve this ?

Yogi
  • 1,561
  • 5
  • 26
  • 45
  • PBF files are compressed. The uncompressed data is much larger. – scai Jan 12 '17 at 12:59
  • Yes but does 3gb go beyond 50gb while decompressing it ? Is there no way to convert this mapdata to postgresql other than increasing my harddisk space ? – Yogi Jan 12 '17 at 13:07
  • 1
    Not sure. stackoverfow is the wrong place for this question. Try http://help.openstreetmap.org/ or http://gis.stackexchange.com/ instead. – scai Jan 12 '17 at 18:12
  • New question at https://gis.stackexchange.com/questions/224381/converting-pbf-to-postgresql-using-osm2pgsql-not-enough-disk-space – scai Jan 13 '17 at 14:26

1 Answers1

1

Yes it could cross 50gb. As India pbf is around 375mb and PostgreSQL data folder size is 11gb that include world boundary also from OSM.

Gagan
  • 1,267
  • 3
  • 18
  • 28