I am trying to import an Italian osm file into PostGIS with osm2pgrouting. I launched the script and it worked until it encountered an error. This is the output of osm2pgr:
.....
Nodes table created
2create ways failed:
Types table created
Way_tag table created
Relations table created
Relation_ways table created
Classes table created
Adding tag types and classes to database...
Adding relations to database...
Adding nodes to database...
Adding ways to database...
ERROR: extra data after last expected column
CONTEXT: COPY ways, line 681382: "934378 117 0.15808824934990467 11.1369311 45.8187991 11.1388487 45.818314100000002 37264295srid=432..."
Creating topology...
NOTICE: CREATE TABLE will create implicit sequence "vertices_tmp_id_seq" for serial column "vertices_tmp.id"
CONTEXT: SQL statement "CREATE TABLE vertices_tmp (id serial)"
PL/pgSQL function "assign_vertex_id" line 14 at EXECUTE statement
#########################
size of streets: 1072190
size of splitted ways : 2281124
finished
I used the italy.osm.bz2 file decompressed finded here:
http://download.geofabrik.de/osm/europe/
but have also tried with the one here:
http://download.gfoss.it/osm/osm/
I have tried different times, with different files -- in fact, I have been trying from almost a month, but nothing has changed: I always get the same error. Any suggestions?
Thanks
Luca