Назад | Перейти на главную страницу

osm2pgsql - Не удалось выделить место для файла кеша узла

я впервые пытаюсь настроить сервер OSM. Я следил за этим руководством:

https://github.com/AnderPijoan/vectorosm (с узлом, почему мне нужно изменить способ визуализации карт для некоторых конкретных требований моего проекта).

Я сделал все, за исключением того, что установил osm2pgsql из исходного кода, почему версия репозитория слишком старая.

но я застрял при импорте БД, я использую:

  osm2pgsql -m -s -c  -j -v --cache-strategy dense --flat-nodes tempFileErase -d osm -U osmuser --unlogged  --hstore-add-index --exclude-invalid-polygon -r pbf planet-latest.osm.pbf

но я получаю:

osm2pgsql SVN version 0.83.0 (64bit id space)

Using projection SRS 900913 (Spherical Mercator)
Setting up table: planet_osm_point
NOTICE:  table "planet_osm_point" does not exist, skipping
NOTICE:  table "planet_osm_point_tmp" does not exist, skipping
Setting up table: planet_osm_line
NOTICE:  table "planet_osm_line" does not exist, skipping
NOTICE:  table "planet_osm_line_tmp" does not exist, skipping
Setting up table: planet_osm_polygon
NOTICE:  table "planet_osm_polygon" does not exist, skipping
NOTICE:  table "planet_osm_polygon_tmp" does not exist, skipping
Setting up table: planet_osm_roads
NOTICE:  table "planet_osm_roads" does not exist, skipping
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=0*102401, allocation method=8192
Mid: loading persistent node cache from tempFileErase
Failed to allocate space for node cache file: Success
Error occurred, cleaning up

есть идеи, как я могу это исправить?

С уважением.

Попробуйте удалить --cache-strategy dense из вашей команды. Это сработало для меня.