Table of Contents

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

document XDocument

The 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

string

Bounds

Gets the geographic bounds of the GPX data.

public GpxDocument.GpxBounds Bounds { get; }

Property Value

GpxDocument.GpxBounds

Description

Gets the description of the GPX file or track.

public string Description { get; }

Property Value

string

Email

Gets the email address associated with the GPX file.

public string Email { get; }

Property Value

string

IsVersion11

Gets a value indicating whether the document is GPX version 1.1.

public bool IsVersion11 { get; }

Property Value

bool

Keywords

Gets the keywords associated with the GPX file.

public string Keywords { get; }

Property Value

string

Name

Gets the name of the GPX file or track.

public string Name { get; }

Property Value

string

Routes

Gets the list of routes in the GPX document.

public List<GpxDocument.GpxRoute> Routes { get; }

Property Value

List<GpxDocument.GpxRoute>

Time

Gets the timestamp of when the GPX file was created.

public DateTime Time { get; }

Property Value

DateTime

Tracks

Gets the list of tracks in the GPX document.

public List<GpxDocument.GpxTrack> Tracks { get; }

Property Value

List<GpxDocument.GpxTrack>

Url

Gets the URL associated with the GPX file.

public string Url { get; }

Property Value

string

UrlName

Gets the name of the URL associated with the GPX file.

public string UrlName { get; }

Property Value

string

Version

Gets the GPX version of the document (e.g., "1.0" or "1.1").

public string Version { get; }

Property Value

string

Waypoints

Gets the list of waypoints in the GPX document.

public List<GpxDocument.GpxWaypoint> Waypoints { get; }

Property Value

List<GpxDocument.GpxWaypoint>