Opened 11 years ago

Closed 11 years ago

#2426 closed defect (fixed)

osm2pgsql adds all changeset tags to the first parsed node

Reported by: Stelian Dumitrascu Owned by: jburgess777@…
Priority: major Milestone:
Component: utils Version:
Keywords: Cc:


While parsing the planet file, osm2pgsql makes a list of all tags found under <changeset> elements, then bulk-adds them to the first <node> element.

A possible fix would be to clear the tag list when the end of a <changeset> element is encountered:

/* File osm2pgsql.c */

void EndElement?(const xmlChar *name) { ...

} else if (xmlStrEqual(name, BAD_CAST "changeset")) {

/* Add this code */ resetList(&tags);

/* ignore */

} ...

Change History (2)

comment:1 Changed 11 years ago by Stelian Dumitrascu

Owner: changed from Jon Burgess to jburgess777@…

comment:2 Changed 11 years ago by jburgess777@…

Resolution: fixed
Status: newclosed

Fixed in r18632. Thanks for the bug report.

Note: See TracTickets for help on using tickets.