[OSM-talk] Osm2pgsql fails with Finland.osm.bz2

Jukka Rahkonen Jukka.rahkonen at mmmtike.fi
Wed Feb 4 15:27:01 GMT 2009


I have been importing Finland.osm.bz2 dataset from Geofabrik into Postgis every
day with osm2pgsql.exe (on Windows) but now it fails. The error looks like this:
Reading in file: finland.osm.bz2
Processing: Node(2835k) Way(37k) Relation(0k)Error allocating ways
Error occurred, cleaning up

I tried next to use Scandinavian dataset from hypercube.telascience.org.  Result
is about the same:
Reading in file: planet-scand-090203.osm.gz
Processing: Node(6670k) Way(0k) Relation(0k)Error allocating nodes
Error occurred, cleaning up

I made a third trial by using another version of osm2pgsql.exe with Finnish data
but again with no luck. A bit different error message though:
Reading in file: finland.osm.bz2
Processing: Node(2835k) Way(194k) Relation(0k)terminate called after throwing an
 instance of 'geos::util::TopologyException'
  what():  TopologyException: found non-noded intersection between 2.78294e+006
9.41427e+006, 2.78315e+006 9.41433e+006 and 2.78326e+006 9.41433e+006, 2.78269e+
006 9.41433e+006 2.78315e+006 9.41433e+006

Does anybody has an idea about what is going on, and if it is just a data error,
how to find and correct it?

More information about the talk mailing list