On 23.07.2011 12:43, [email protected] wrote:
That really sounds like a problem inside the pbf. Did you try to read
another pbf-file or read asia.osm.pbf with osmosis?

yesterday on irc someone had a similar problem.

I tried today with a different file. Same error.

I used this:
http://download.geofabrik.de/osm/europe/albania.osm.pbf

osm2pgsql is build from svn and is revision 26385.
# ./osm2pgsql --create --slim --cache 800 --hstore --database testdb --username osm --style default.style ../albania.osm.pbf
osm2pgsql SVN version 0.70.5

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: pgsql, scale=100, cache=800MB, maxblocks=102401*8192
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
NOTICE:  table "planet_osm_ways" does not exist, skipping
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:  table "planet_osm_rels" does not exist, skipping
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_rels_pkey" for table "planet_osm_rels"

Reading in file: ../albania.osm.pbf
error parsing member id of DenseNodes
error parsing member dense of PrimitiveGroup
error parsing member stringtable of PrimitiveBlock
Error unpacking PrimitiveBlock message
Error occurred, cleaning up


osmosis can work with the file.
"osmosis/bin/osmosis --read-pbf file=albania.osm.pbf --report-entity" worked fine.

This sounds a bit like an issue inside osm2pgsql.

Stephan


_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to