[OSM-dev] osm2pgsql Error

Jon Burgess jburgess777 at googlemail.com
Mon May 28 22:15:46 BST 2007

On Mon, 2007-05-28 at 22:46 +0200, Joerg Ostertag (OSM Munich/Germany)
> If I'm trying to import an uncompressed planet.osm with osm2pqsql i get an 
> error. If I use a .gz File it works.
> .../osm2pgsql$ cat ~/osm/planet/planet-070523.osm | ./osm2pgsql -
> ...
> Setting up table: planet_osm_roads
> error while opening file -
> tweety at masha:~/svn.openstreetmap.org/.../osm2pgsql$ ./osm2pgsql 
> ~/osm/planet/planet-070523.osm
> Allocating memory for RAM storage
>         nodes(248Mb)
>         segments(216Mb)
>         ways(40Mb)
> Setting up table: planet_osm_point
> Setting up table: planet_osm_line
> Setting up table: planet_osm_polygon
> Setting up table: planet_osm_roads
> error while opening file /home/tweety/osm/planet/planet-070523.osm

I'm afraid I removed support for using - to specify stdin. You can
use /dev/stdin instead. I never read a whole uncompressed planet.osm
file. Ever since I added the in-build gz/bz2 reader and UTF8 sanitizer,
I've just read in compressed files directly.

I'm guessing the the issue is that I need to add O_LARGEFILE since the
planet.osm is > 4GB. Try doing a svn up, make and try again.


More information about the dev mailing list