OSM Datenimport...

Hallo,

ich bin dabei, die OSM Daten in meine Datenbank zu importieren. Leider bekomme ich immer wieder folgende Meldung (am Ende):

tserver:/opt/download# osm2pgsql -c -d osmdb -U max -W --cache 2000 -H localhost -S /usr/share/osm2pgsql/default.style europe.osm.bz2

osm2pgsql SVN version 0.70.5

Password:
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
Mid: Ram, scale=100

!! You are running this on 32bit system, so at most
!! 3GB of RAM can be used. If you encounter unexpected
!! exceptions during import, you should try running in slim
!! mode using parameter -s.

Reading in file: europe.osm.bz2
Processing: Node(79400k) Way(0k) Relation(0)Error allocating nodes
Error occurred, cleaning up

Kann mir jemand sagen wo hier das Problem zu suchen ist?

Mein Sustem ist ein Ubuntu 11 mit 2 Kernen und 8Gb RAM
Postgress 9.1

Beim Verwenden der Option -s erscheint immer die Warnung:
*** WARNING: intarray contrib module not installed
*** The resulting database will not be usable for applying diffs.

Danke schon mal

Hey,

Du scheinst eine ziemlich alte osm2pgsql Version zu verwenden (0.70.5)… In diesem Fall benötigst Du noch das intarray contrib module.
(vgl http://wiki.openstreetmap.org/wiki/DE:HowTo_minutely_hstore)

Prüf mal, ob sich nicht ein Update auf eine neuere osm2pgsql Version anbieten würde…

zu der 32Bit Warnung kann ich nichts sagen. Ist aber auch nicht weiter tragisch, denn Du kannst Europe mit 2GB ohne “-s” eh nicht laden. Die zweite Warnung ist normal, die bekomme ich auch. Sie besagt, dass Du keine sog. minutely/hourly/daily Diffs einspielen kannst um Deine Datenbank aktuell zu halten. Wenn Du die Datenbank aktualisieren möchtest, müsstest Du sie neu importierten. Importiere doch mal Monaco oder so und spiele damit etwas rum. Das geht sehr schnell und Du siehst, wie es funktioniert

Auf welche bzw wo? Im svn oder git finde ich nur 0.70.5

http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/
https://github.com/openstreetmap/osm2pgsql

Hey Suncobalt,

die SVN-Version ist definitiv neuer als 0.70 (vgl. z.B. das Changelog in Deinem Link: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/debian/changelog).
Mein osm2pgsql meldet sich mit “osm2pgsql SVN version 0.80.0 (64bit id space)”, dürfte allerdings auch nicht mehr die neuste Version sein…

Scheint so :wink: nur ist Deine neue Version gut versteckt (und nur für Debian?) siehe Dein Link
svn-archive/applications/utils/export/osm2pgsql at main · openstreetmap/svn-archive · GitHubdebian/changelog

Das Wiki zeigt auf …svn.openstreetmap.org/applications/utils/export/osm2pgsql (und git) wo die letzte Version 0.70 ist
http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/ChangeLog
http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/NEWS

Klasse!