[Tile-serving] [osm2pgsql] --flat-nodes fails using 32 and 64 bit Windows builds (#119)

anothergisblog notifications at github.com
Thu Jan 30 12:14:21 UTC 2014


Hello,
When I run the following command from DOS:
C:\osm2pgsql\mingw>c:\osm2pgsql\mingw\osm2pgsql.exe -c -l -U gis -P 5432 -H localhost -d carto_osm --slim --flat-nodes c:\osm2pgsql\flat\flatn.nodes  -S c:\osm2pgsql\default_new.style C:\temp\newyork.osm.pbf

I end up getting an error "Mid: loading persistent node cache from c:\osm2pgsql\flat\flatn.nodes Failed to open node cache file: Invalid argument Error occurred, cleaning up"

Does anyone know what is causing this issue?  What argument is causing this error?

Below is the full output:

osm2pgsql SVN version 0.85.0 (64bit id space)

Using projection SRS 4326 (Latlong)
Setting up table: planet_osm_point
NOTICE:  table "planet_osm_point_tmp" does not exist, skipping
Setting up table: planet_osm_line
NOTICE:  table "planet_osm_line_tmp" does not exist, skipping
Setting up table: planet_osm_polygon
NOTICE:  table "planet_osm_polygon_tmp" does not exist, skipping
Setting up table: planet_osm_roads
NOTICE:  table "planet_osm_roads_tmp" does not exist, skipping
Using built-in tag processing pipeline
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Node-cache: cache=800MB, maxblocks=102400*8192, allocation method=10
Mid: loading persistent node cache from c:\osm2pgsql\flat\flatn.nodes
Maximum node in persistent node cache: 0
Mid: pgsql, scale=10000000 cache=800
Setting up table: planet_osm_nodes
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_nodes
_pkey" for table "planet_osm_nodes"
Setting up table: planet_osm_ways
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_ways_
pkey" for table "planet_osm_ways"
Setting up table: planet_osm_rels
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_rels_
pkey" for table "planet_osm_rels"

Reading in file: C:\temp\newyork.osm.pbf
Processing: Node(4207k 5.0k/s) Way(748k 7.97k/s) Relation(3360 101.82/s)  parse
time: 971s

Node stats: total(4207622), max(2631804192) in 836s
Way stats: total(748964), max(257702182) in 94s
Relation stats: total(3361), max(3457617) in 33s
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads

Going over pending ways...
Maximum node in persistent node cache: 2631925759
        643484 ways are pending

Using 1 helper-processes
Mid: loading persistent node cache from c:\osm2pgsql\flat\flatn.nodes
Failed to open node cache file: Invalid argument
Error occurred, cleaning up

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/119
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20140130/456f44a4/attachment.html>


More information about the Tile-serving mailing list