[Tile-serving] [osm2pgsql] osm2pgsql crashes on .osc not containing any ways (#84)

Frederik Ramm notifications at github.com
Mon Sep 23 07:51:28 UTC 2013


Confirmed with this minimal test case - initial data loaded is

    <osm version="0.6" generator="Osmosis SNAPSHOT-r24401M">
      <node id="1" version="5" timestamp="2010-10-27T19:26:48Z" uid="1" user="test" changeset="6200424" lat="48.0367022" lon="7.8029442"/>
      <node id="2" version="6" timestamp="2010-10-27T19:26:48Z" uid="1" user="test" changeset="6200424" lat="48.0367022" lon="7.8029442"/>
    </osm>

diff to append is

    <osmChange version="0.6" generator="Osmosis SNAPSHOT-r24401M">
    <create>
      <relation id="1" version="2" timestamp="2010-10-27T19:26:48Z" uid="1" user="test">
      <member type="node" ref="1" role="test" />
      <member type="node" ref="2" role="test" />
      <tag k="k" v="v" />
      </relation>
      </create>
    </osmChange>

this results in the aforementioned error (with -Ogazetteer only). Adding a way to the osmChange remedies the problem; adding a node does not.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/84#issuecomment-24903572
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20130923/c39a2fec/attachment.html>


More information about the Tile-serving mailing list