Class GpxTrackSegment
Represents a continuous span of track data, logically connected in order.
Inherited Members
Namespace: NetTopologySuite.IO
Assembly: NetTopologySuite.IO.GPX.dll
Syntax
public sealed class GpxTrackSegment
Remarks
In the official XSD schema for GPX 1.1, this corresponds to the complex type "trksegType".
Constructors
| Improve this Doc View SourceGpxTrackSegment()
Initializes a new instance of the GpxTrackSegment class.
Declaration
public GpxTrackSegment()
GpxTrackSegment(ImmutableGpxWaypointTable, Object)
Initializes a new instance of the GpxTrackSegment class.
Declaration
public GpxTrackSegment(ImmutableGpxWaypointTable waypoints, object extensions)
Parameters
Type | Name | Description |
---|---|---|
ImmutableGpxWaypointTable | waypoints | The value for Waypoints. |
Object | extensions | The value for Extensions. |
Properties
| Improve this Doc View SourceExtensions
Gets arbitrary extension information associated with this segment.
Declaration
public object Extensions { get; }
Property Value
Type | Description |
---|---|
Object |
Remarks
In the official XSD schema for GPX 1.1, this corresponds to the "extensions" element.
Waypoints
Gets the waypoints that make up this segment.
Declaration
public ImmutableGpxWaypointTable Waypoints { get; }
Property Value
Type | Description |
---|---|
ImmutableGpxWaypointTable |
Remarks
In the official XSD schema for GPX 1.1, this corresponds to the "trkpt" elements.
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceWithExtensions(Object)
Builds a new instance of GpxTrackSegment as a copy of this instance, but with Extensions replaced by the given value.
Declaration
public GpxTrackSegment WithExtensions(object extensions)
Parameters
Type | Name | Description |
---|---|---|
Object | extensions | The new value for Extensions. |
Returns
Type | Description |
---|---|
GpxTrackSegment | A new GpxTrackSegment instance that's a copy of the current instance, but
with its Extensions value set to |
WithWaypoints(IEnumerable<GpxWaypoint>)
Builds a new instance of GpxTrackSegment as a copy of this instance, but with Waypoints replaced by the given value.
Declaration
public GpxTrackSegment WithWaypoints(IEnumerable<GpxWaypoint> waypoints)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<GpxWaypoint> | waypoints | The new value for Waypoints. |
Returns
Type | Description |
---|---|
GpxTrackSegment | A new GpxTrackSegment instance that's a copy of the current instance, but
with its Waypoints value set to |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when |