[Tile-serving] [openstreetmap/osm2pgsql] Osm2pgsql ERROR: Cannot detect file format (#856)
PatriceKast
notifications at github.com
Mon Jul 16 05:37:27 UTC 2018
Hi there
By trying to import the whole planet (a .pbf file) into a pgsql dataabse on a RedHat Server, I am getting the following error:
`[root at asl-test]# osm2pgsql –s –U postgres –d gis /opt/transfer/planet-latest.osm.pbf
osm2pgsql version 0.92.0 (64 bit id space)
Using built-in tag processing pipeline
Using projection SRS 3857 (Spherical Mercator)
Setting up table: planet_osm_point
Setting up table: planet_osm_line
Setting up table: planet_osm_polygon
Setting up table: planet_osm_roads
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=800MB, maxblocks=12800*65536, allocation method=3
Mid: Ram, scale=100
Reading in file: –s
node cache: stored: 0(-nan%), storage efficiency: -nan% (dense blocks: 0, sparse nodes: 0), hit rate: -nan%
Osm2pgsql failed due to ERROR: Cannot detect file format. Try using -r.
`
I installed all required packages:
`sudo yum install cmake make gcc-c++ boost-devel expat-devel zlib-devel \
bzip2-devel postgresql-devel proj-devel proj-epsg lua-devel`
Does this error sounds familiar to anyone?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/856
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20180715/b475e887/attachment.html>
More information about the Tile-serving
mailing list