Show / Hide Table of Contents

    Class GpxTrackSegment

    Represents a continuous span of track data, logically connected in order.

    Inheritance
    Object
    GpxTrackSegment
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    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 Source

    GpxTrackSegment()

    Initializes a new instance of the GpxTrackSegment class.

    Declaration
    public GpxTrackSegment()
    | Improve this Doc View Source

    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 Source

    Extensions

    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.

    | Improve this Doc View Source

    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 Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    | Improve this Doc View Source

    WithExtensions(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 extensions.

    | Improve this Doc View Source

    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 waypoints.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when waypoints contains null elements.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX