NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi everyone.

I tried to install nominatim using ./utils/setup.php --osm-file <your planet="" file=""> --all I changed CONST pathes to(where all except osmosis are located)

 @define('CONST_Postgresql_Version', '8.4');
    @define('CONST_Path_Postgresql_Contrib', '/usr/share/postgresql/'.CONST_Postgresql_Version.'/contr$
    @define('CONST_Path_Postgresql_Postgis', CONST_Path_Postgresql_Contrib.'');
    @define('CONST_Osm2pgsql_Binary','/bin/osm2pgsql/osm2pgsql');
    @define('CONST_Osmosis_Binary', CONST_BasePath.'/osmosis-0.38/bin/osmosis');

And got strange answer from nominatim

.........
SET
CREATE TABLE
SET
SET
SET
SET
SET
SET
SET
SET
CREATE TABLE
ALTER TABLE
Import
Using projection SRS 4326 (Latlong)
NOTICE:  table "place" does not exist, skipping
NOTICE:  type "keyvalue" does not exist, skipping
NOTICE:  type "wordscore" does not exist, skipping
NOTICE:  type "stringlanguagetype" does not exist, skipping
NOTICE:  type "keyvaluetype" does not exist, skipping
NOTICE:  function get_connected_ways(pg_catalog.int4[]) does not exist, skipping
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Out of memory for dense node cache, reduce --cache size
Error occurred, cleaning up
osm2pgsql SVN version 0.80.0 (32bit id space)

ERROR: No Data

Also for planet_osm db I used to have 900913 projection. How can I manage with this problem?

asked 11 Apr '12, 14:02

zzzzteph's gravatar image

zzzzteph
30557
accept rate: 0%


That error has two possible causes:

  1. You are running out of physical memory. Supply more swap space. When importing the planet, RAM + swap should amount to at least 30GB. If you are importing something smaller, you might try to reduce osm2pgsql's cache. In the most recent version of Nominatim, you can add the --osm2pgsql-cache parameter when calling setup.php. The default is 15000 (MB), try something smaller.
  2. You have compiled osm2pgsql in 32-bit mode and now you are running out of virtual memory. Check the output of: file osm2pgsql. If it says ELF 32-bit, you need to recompile osm2pgsql.
permanent link

answered 12 Apr '12, 07:43

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×25

question asked: 11 Apr '12, 14:02

question was seen: 6,687 times

last updated: 12 Apr '12, 07:43

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum