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

Frederik Ramm frederik at remote.org
Mon May 30 23:25:15 BST 2011


marqqs at gmx.eu wrote:
> osm2pgsql persists on getting coordinates (lon/lat) even when it
> reads an .osc file and the OSM object in question is to delete.

Which software generates .osc files that do *not* have lon/lat 
attributes on nodes to be deleted?

> 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?

That would not break osm2pgsql but make it less resilient against 
nonsensical input. I have checked in a change (r26083) that hopefully 
does it right.


Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"

More information about the dev mailing list