Hi geeks,
I was trying to import some data using osm2pgsql on Ubuntu but had no luck with partial files of Ukraine or Turkey - here is output:
postgres@seth-desktop:/media/store/OSM/osm2pgsql$ ./osm2pgsql -lsc -O gazetteer -C 500 -d gazetteer turkey.osm.bz2
osm2pgsql SVN version 0.70.5
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
Mid: pgsql, scale=10000000, cache=500MB, maxblocks=64001*8192
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: turkey.osm.bz2
Processing: Node(2490k) Way(140k) Relation(1105) parse time: 80s
Node stats: total(2490850), max(1234826715)
Way stats: total(140727), max(107445058)
Relation stats: total(1105), max(1526723)
node cache: stored: 2490850(100.00%), storage efficiency: 8.25%, hit rate: 100.00%
Stopping table: planet_osm_nodes
Stopping table: planet_osm_rels
Stopping table: planet_osm_ways
Building index on table: planet_osm_rels
Stopped table: planet_osm_nodes
Building index on table: planet_osm_ways
Stopped table: planet_osm_rels
Stopped table: planet_osm_ways
Segmentation fault
Can anyone help me with this problem?