Show / Hide Table of Contents

    Class GpxVisitorBase

    Base class for the visitors that enable all the higher-order GPX reading functionality.

    Inheritance
    Object
    GpxVisitorBase
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: NetTopologySuite.IO
    Assembly: NetTopologySuite.IO.GPX.dll
    Syntax
    public abstract class GpxVisitorBase

    Methods

    | Improve this Doc View Source

    VisitExtensions(Object)

    Invoked when the reader has moved past a GPX wpt element.

    Declaration
    public virtual void VisitExtensions(object extensions)
    Parameters
    Type Name Description
    Object extensions

    The object instance that represents what we read, guaranteed non-null.

    Remarks

    This is not guaranteed to be called for every GPX file.

    | Improve this Doc View Source

    VisitMetadata(GpxMetadata)

    Invoked when the reader has moved past either the GPX metadata element or where it would have been.

    Declaration
    public virtual void VisitMetadata(GpxMetadata metadata)
    Parameters
    Type Name Description
    GpxMetadata metadata

    The GpxMetadata that we read, guaranteed non-null.

    Remarks

    This is guaranteed to be called once per GPX file, even if there is no metadata element. When there is no metadata element, IsTrivial will be true, and only Creator will be set.

    This will be called before any other method for a given GPX file.

    | Improve this Doc View Source

    VisitRoute(GpxRoute)

    Invoked when the reader has moved past a GPX rte element.

    Declaration
    public virtual void VisitRoute(GpxRoute route)
    Parameters
    Type Name Description
    GpxRoute route

    The GpxRoute instance that represents what we read, guaranteed non- null.

    Remarks

    This is not guaranteed to be called for every GPX file.

    | Improve this Doc View Source

    VisitTrack(GpxTrack)

    Invoked when the reader has moved past a GPX trk element.

    Declaration
    public virtual void VisitTrack(GpxTrack track)
    Parameters
    Type Name Description
    GpxTrack track

    The GpxTrack instance that represents what we read, guaranteed non- null.

    Remarks

    This is not guaranteed to be called for every GPX file.

    | Improve this Doc View Source

    VisitWaypoint(GpxWaypoint)

    Invoked when the reader has moved past a GPX wpt element.

    Declaration
    public virtual void VisitWaypoint(GpxWaypoint waypoint)
    Parameters
    Type Name Description
    GpxWaypoint waypoint

    The GpxWaypoint instance that represents what we read, guaranteed non- null.

    Remarks

    This is not guaranteed to be called for every GPX file.

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