Hello, i just set up PostGis and imported OSM data. it took 5 days and failed at the end, out of memory.
Does "out of memory" mean RAM or can it also mean disk space? I have 8 Gig of RAM, so i wonder what the requirements for importing OSM data are. Can anybody share some hints on how to import the latest planet_*.osm? What resources should i have? Is there some way i can import with my PC? ####### LOG postgres@schleim:/tmp/osm2pgsql/osm2pgsql> bzcat /local/ftp/osm3/planet-110928.osm.bz2 | osm2pgsql -d gis -S default.style -m - s -C 4000 - osm2pgsql SVN version 0.80.0 (32bit id space) Using projection SRS 900913 (Spherical Mercator) Setting up table: planet_osm_point HINWEIS: Tabelle »planet_osm_point« existiert nicht, wird übersprungen HINWEIS: Tabelle »planet_osm_point_tmp« existiert nicht, wird übersprungen Setting up table: planet_osm_line HINWEIS: Tabelle »planet_osm_line« existiert nicht, wird übersprungen HINWEIS: Tabelle »planet_osm_line_tmp« existiert nicht, wird übersprungen Setting up table: planet_osm_polygon HINWEIS: Tabelle »planet_osm_polygon« existiert nicht, wird übersprungen HINWEIS: Tabelle »planet_osm_polygon_tmp« existiert nicht, wird übersprungen Setting up table: planet_osm_roads HINWEIS: Tabelle »planet_osm_roads« existiert nicht, wird übersprungen HINWEIS: Tabelle »planet_osm_roads_tmp« existiert nicht, wird übersprungen Allocating node cache in one big chunk Mid: pgsql, scale=100, cache=4000MB, maxblocks=512001*8192 Setting up table: planet_osm_nodes HINWEIS: Tabelle »planet_osm_nodes« existiert nicht, wird übersprungen HINWEIS: CREATE TABLE / PRIMARY KEY erstellt implizit einen Index »planet_osm_nodes_pkey« für Tabelle »planet_osm_nodes« Setting up table: planet_osm_ways HINWEIS: Tabelle »planet_osm_ways« existiert nicht, wird übersprungen HINWEIS: CREATE TABLE / PRIMARY KEY erstellt implizit einen Index »planet_osm_ways_pkey« für Tabelle »planet_osm_ways« Setting up table: planet_osm_rels HINWEIS: Tabelle »planet_osm_rels« existiert nicht, wird übersprungen HINWEIS: CREATE TABLE / PRIMARY KEY erstellt implizit einen Index »planet_osm_rels_pkey« für Tabelle »planet_osm_rels« Reading in file: - Unknown node type 8 Processing: Node(1217841k 83.2k/s) Way(109718k 0.42k/s) Relation(1114739 7.12/s) parse time: 435067s Node stats: total(1217841367), max(1447570595) in 14632s Way stats: total(109718429), max(131557810) in 263781s Relation stats: total(1114739), max(1767603) in 156532s Going over pending ways pending_ways failed: out of memory for query result (7) Error occurred, cleaning up postgres@schleim:/tmp/osm2pgsql/osm2pgsql> ####### LOG END Thanks for any hints, Torsten. _______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users
