[OSM-dev] osm2pgsql: parse-xml2.c:100: StartElement: Assertion `xlon' failed.

marqqs at gmx.eu marqqs at gmx.eu
Mon May 30 23:02:49 BST 2011


Hello,

today this error message was relayed to me:

osm2pgsql: parse-xml2.c:100: StartElement: Assertion `xlon' failed.

I managed to identify the problem:

osm2pgsql persists on getting coordinates (lon/lat) even when it reads an .osc file and the OSM object in question is to delete.

        assert(xid); assert(xlon); assert(xlat);

An excerpt of the .osc file:

------------------------
<delete>
  <node id="53011572"/>
</delete>
------------------------

My question:
Does osm2pgsql really need the coordinates of an object which is to delete anyway? Is it save just to delete the line with the three assertions?

Markus



More information about the dev mailing list