This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Nominatim insert more pbf file gives issue

0

hi everyone, i installed nominatim in my ubuntu machine for India alone, now i wants to add more countries. i know its possible, so i just tried using

./utils/setup.php --osm-file andorra-latest.osm.pbf --import-data

then it show the below message for long time

Import
osm2pgsql SVN version 0.83.0 (64bit id space)

Using projection SRS 4326 (Latlong)

NOTICE:  drop cascades to function get_word_score(wordscore[],text[])
NOTICE:  type "stringlanguagetype" does not exist, skipping
NOTICE:  type "keyvaluetype" does not exist, skipping
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=6123MB, maxblocks=783744*8192, allocation method=11
Mid: pgsql, scale=10000000 cache=6123
Setting up table: planet_osm_nodes
NOTICE:  table "planet_osm_nodes" does not exist, skipping
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_nodes_pkey" for table "planet_osm_nodes"
Setting up table: planet_osm_ways

Can anybody suggest possible way to get out of this and also any easiest steps available to import.

asked 30 Jan '14, 07:31

Arun%20kmp's gravatar image

Arun kmp
63141519
accept rate: 0%

edited 30 Jan '14, 07:40

scai's gravatar image

scai ♦
33.3k21309459


One Answer:

2

The command you used more or less replaces the content of your DB instead of adding to it. See this question for instructions on how to add another file to a Nominatim database. Note that it explicitly states that pbf is not supported. You need to convert your osm file to xml first.

answered 30 Jan '14, 08:48

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

Source code available on GitHub .