#2010 closed enhancement (fixed)
GPX attribute support
Reported by: | tomkralidis | Owned by: | Even Rouault |
---|---|---|---|
Priority: | low | Milestone: | 1.5.0 |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | gpx |
Cc: |
Description
For GPX write support (implemented as part of #1515), each of the datatypes (wpt, trk, etc.) allow for an optional extension element, which is an xs:any type, which could result in something like:
<wpt lat="0" lon="1"> <ele>2</ele> <name>waypoint name</name> <cmt>waypoint comment</cmt> <desc>waypoint description</desc> <src>waypoint source</src> <extensions> <foo>bar</foo> <col2>b</col2> </extensions> </wpt>
It would be useful to optionally allow for, upon conversion, including a feature's attributes via this mechanism (default would be off).
Change History (4)
comment:1 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 16 years ago
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
I just did some further testing. For this to fully validate, we will need to namespace prefix any elements within the extension element. This, of course, requires that the namespace be declared in the root element of the GPX document.
So the GPX root element would need to be updated with:
xmlns:ogr="http://ogr.maptools.org/"
..and a feature would then look like: