Class GpxDocument
- Namespace
- Tudormobile.Strava.Documents
- Assembly
- Tudormobile.Strava.dll
Represents a GPX (GPS Exchange Format) document with support for versions 1.0 and 1.1.
public class GpxDocument : XmlDocumentBase
- Inheritance
-
GpxDocument
- Inherited Members
Remarks
Currently, only reading/parsing of GPX documents is supported. Writing or modifying GPX documents is not implemented.
Constructors
GpxDocument(XDocument)
Initializes a new instance of the GpxDocument class.
public GpxDocument(XDocument document)
Parameters
documentXDocumentThe XML document containing GPX data.
Exceptions
- ArgumentNullException
Thrown when the document is null.
- ArgumentException
Thrown when the document is invalid or missing required elements.
- NotSupportedException
Thrown when the GPX version is not 1.0 or 1.1.
Properties
Author
Gets the author of the GPX file.
public string Author { get; }
Property Value
Bounds
Gets the geographic bounds of the GPX data.
public GpxDocument.GpxBounds Bounds { get; }
Property Value
Description
Gets the description of the GPX file or track.
public string Description { get; }
Property Value
Gets the email address associated with the GPX file.
public string Email { get; }
Property Value
IsVersion11
Gets a value indicating whether the document is GPX version 1.1.
public bool IsVersion11 { get; }
Property Value
Keywords
Gets the keywords associated with the GPX file.
public string Keywords { get; }
Property Value
Name
Gets the name of the GPX file or track.
public string Name { get; }
Property Value
Routes
Gets the list of routes in the GPX document.
public List<GpxDocument.GpxRoute> Routes { get; }
Property Value
Time
Gets the timestamp of when the GPX file was created.
public DateTime Time { get; }
Property Value
Tracks
Gets the list of tracks in the GPX document.
public List<GpxDocument.GpxTrack> Tracks { get; }
Property Value
Url
Gets the URL associated with the GPX file.
public string Url { get; }
Property Value
UrlName
Gets the name of the URL associated with the GPX file.
public string UrlName { get; }
Property Value
Version
Gets the GPX version of the document (e.g., "1.0" or "1.1").
public string Version { get; }
Property Value
Waypoints
Gets the list of waypoints in the GPX document.
public List<GpxDocument.GpxWaypoint> Waypoints { get; }