Opened 11 years ago

Closed 11 years ago

#677 closed defect (fixed)

planetosm-excerpt-tags.pl can't handle nodes with attributes other than id, lat and lon

Reported by: tibors@… Owned by: Nick
Priority: minor Milestone:
Component: utils Version:
Keywords: planetosm-excerpt-tags.pl Cc:

Description

The script /applications/utils/osm-extract/planetosm-excerpt-tags.pl assumes that every node only has the attributes id, lat and lon. As far as I can tell every node in an .osm file saved by JOSM and the country excerpts generated with Osmosis has at least a timestamp attribute in addition to the other three and there can be more attributes. The result of this is that the script generates a lot of "Invalid node line" errors and an .osm file without any nodes in it.

The attached patch solves this.

Attachments (1)

planetosm-excerpt-tags.pl.patch (683 bytes) - added by tibors@… 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by tibors@…

comment:1 Changed 11 years ago by Tom Hughes

Owner: changed from Tom Hughes to Nick

comment:2 Changed 11 years ago by cartinus@…

Resolution: fixed
Status: newclosed

fixed in r7193 by Frederik Ramm

Note: See TracTickets for help on using tickets.