GPS eXchange Format (GPX) Feature Types
In this section, the gpxx XML namespace prefix refers to https://www8.garmin.com/xmlschemas/index.jsp#/web/docs/xmlschemas/GpxExtensions/v3, and the tpx XML namespace prefix refers to https://www8.garmin.com/xmlschemas/TrackPointExtensionv2.xsd
Metadata
Feature Type: Metadata
Geometry type: none
|
Feature Attribute |
GPX XML Entity |
|---|---|
|
name |
name |
|
description |
desc |
|
creation_time |
time |
|
keywords |
keywords |
|
link{}.href |
link / @href |
|
link{}.text |
link / text |
|
link{}.type |
link / type |
|
author_name |
author / name |
|
author_email |
author / email |
|
author_link_href |
author / link / @href |
|
author_link_text |
author / link / text |
|
author_link_type |
author / link / type |
|
copyright_author |
copyright / @author |
|
copyright_year |
copyright / year |
|
copyright_license |
copyright / license |
| extensions{} | The contents of this list attribute are assumed to be XML fragments, which will be inserted into the <extensions> element. |
Waypoint
Geometry type: IFMEPoint – features with other geometry types will be ignored by the writer
|
Feature Attribute |
GPX XML Entity |
|---|---|
| elevation | ele (The writer ignores this value, using the z-value of the geometry instead.) |
| creation_time | time |
| magnetic_variation | magvar |
| geoid_height | geoidheight |
| name | name |
| comment | cmt |
| description | desc |
| source | src |
| link{}.href | link / @href |
| link{}.text | link / text |
| link{}.type | link / type |
| symbol | sym |
| type | type |
| gps_fix_type | fix |
| number_of_satellites | sat |
| hdop | hdop |
| vdop | vdop |
| pdop | pdop |
| age_of_dgps_data | ageofdgpsdata |
| dgps_id | dgpsid |
| garmin_proximity | gpxx:WaypointExtension / gpxx:Proximity |
| garmin_temperature | gpxx:WaypointExtension / gpxx:Temperature |
| garmin_depth | gpxx:WaypointExtension / gpxx:Depth |
| garmin_display_mode | gpxx:WaypointExtension / gpxx:DisplayMode |
| garmin_address_street_address_1 | gpxx:WaypointExtension / gpxx:Address / gpxx:StreetAddress |
| garmin_address_street_address_2 | gpxx:WaypointExtension / gpxx:Address / gpxx:StreetAddress |
| garmin_address_city | gpxx:WaypointExtension / gpxx:Address / gpxx:City |
| gpxx:WaypointExtension / gpxx:Address / gpxx:State | |
| garmin_address_country | gpxx:WaypointExtension / gpxx:Address / gpxx:Country |
| garmin_address_postal_code | gpxx:WaypointExtension / gpxx:Address / gpxx:PostalCode |
| garmin_categories{} | gpxx:WaypointExtension / gpxx:Categories / gpxx:Category |
| extensions{} | The contents of this list attribute are assumed to be XML fragments, which will be inserted into the <extensions> element. |
Route
Geometry type: IFMELine
The route_id attribute is used to uniquely identify each route feature. All other attributes are read/written according to the following table.
|
Feature Attribute |
GPX XML Entity |
|---|---|
| name | name |
| comment | cmt |
| description | desc |
| source | src |
| link{}.href | link / @href |
| link{}.text | link / text |
| link{}.type | link / type |
| number | number |
| type | type |
| garmin_is_auto_named | gpxx:RouteExtension / gpxx:IsAutoNamed |
| garmin_display_color | gpxx:RouteExtension / gpxx:DisplayColor |
| extensions{} | The contents of this list attribute are assumed to be XML fragments, which will be inserted into the <extensions> element. |
RoutePoint
Geometry type: IFMEPoint – features with other geometry types will be ignored by the writer
The route_id attribute is used to identify the route to which the route point belongs. The route_point_index attribute identifies the position of the point in the route. All other attributes are read/written according to the following table.
|
Feature Attribute |
GPX XML Entity |
|---|---|
| elevation | ele (The writer ignores this value, using the z-value of the geometry instead.) |
| creation_time | time |
| magnetic_variation | magvar |
| geoid_height | geoidheight |
| name | name |
| comment | cmt |
| description | desc |
| source | src |
| link{}.href | link / @href |
| link{}.text | link / text |
| link{}.type | link / type |
| symbol | sym |
| type | type |
| gps_fix_type | fix |
| number_of_satellites | sat |
| hdop | hdop |
| vdop | vdop |
| pdop | pdop |
| age_of_dgps_data | ageofdgpsdata |
| dgps_id | dgpsid |
| garmin_subclass | gpxx:RoutePointExtension / gpxx:Subclass |
| extensions{} | The contents of this list attribute are assumed to be XML fragments, which will be inserted into the <extensions> element. |
Track
Geometry type: IFMELine, IFMEMultiCurve
The track_id attribute is used to uniquely identify each track feature. All other attributes are read/written according to the following table.
|
Feature Attribute |
GPX XML Entity |
|---|---|
| name | name |
| comment | cmt |
| description | desc |
| source | src |
| link{}.href | link / @href |
| link{}.text | link / text |
| link{}.type | link / type |
| number | number |
| type | type |
| garmin_display_color | gpxx:TrackExtension / gpxx:DisplayColor |
TrackPoint
Geometry type: IFMEPoint – features with other geometry types will be ignored by the writer
The track_id attribute is used to identify the track to which the track point belongs, and the track_segment attribute is used to identify the segment within the track. The track_segment_point_index attribute identifies the position of the point in the track. All other attributes are read / written according to the following table.
|
Feature Attribute |
GPX XML Entity |
|---|---|
| elevation | ele (The writer ignores this value, using the z-value of the geometry instead.) |
| creation_time | time |
| magnetic_variation | magvar |
| geoid_height | geoidheight |
| name | name |
| comment | cmt |
| description | desc |
| source | src |
| link{}.href | link / @href |
| link{}.text | link / text |
| link{}.type | link / type |
| symbol | sym |
| type | type |
| gps_fix_type | fix |
| number_of_satellites | sat |
| hdop | hdop |
| vdop | vdop |
| pdop | pdop |
| age_of_dgps_data | ageofdgpsdata |
| dgps_id | dgpsid |
| garmin_air_temperature | tpx:TrackPointExtension / tpx:atemp |
| garmin_water_temperature | tpx:TrackPointExtension / tpx:wtemp |
| garmin_depth | tpx:TrackPointExtension / tpx:depth |
| garmin_heart_rate | tpx:TrackPointExtension / tpx:hr |
| garmin_cadence | tpx:TrackPointExtension / tpx:cad |
| garmin_speed | tpx:TrackPointExtension / tpx:speed |
| garmin_course | tpx:TrackPointExtension / tpx:course |
| garmin_bearing | tpx:TrackPointExtension / tpx:bearing |
| extensions{} | The contents of this list attribute are assumed to be XML fragments, which will be inserted into the <extensions> element. |