[OSM-dev] JOSM patch: handle <link><text>... in GPX files
ted.mielczarek at gmail.com
Tue Oct 2 22:12:02 BST 2007
Attached is a small JOSM patch that allows for properly handling
<link> elements that contain <text> elements in imported GPX files.
This is in fact what the GpxWriter class will emit for nodes with a
"link" key, so it seems silly that the RawGpsReader can't cope with
them. This patch just looks inside <text> elements that are children
of <link> elements, and appends their contents to the link's contents.
It also strips whitespace from the beginning and end of the link
contents, to handle the XML content that GpxWriter writes:
This patch is necessary for me to be able to save my voice note layer
as gpx, and re-import it into JOSM. You can see an example GPX file
(with WAV files) here:
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2202 bytes
Desc: not available
More information about the dev