Class GpxVisitorBase
Base class for the visitors that enable all the higher-order GPX reading functionality.
Inherited Members
Namespace: NetTopologySuite.IO
Assembly: NetTopologySuite.IO.GPX.dll
Syntax
public abstract class GpxVisitorBase
Methods
| Improve this Doc View SourceVisitExtensions(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.
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.
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.
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.
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.