Classdesc

Feature format for reading and writing data in the GPX format.

Param: opt_options

Options.

Api

stable

Hierarchy

Constructors

  • Parameters

    Returns GPX

    Classdesc

    Feature format for reading and writing data in the GPX format.

    Api

    stable

Methods

  • Read the first feature from a GPX source. Routes (<rte>) are converted into LineString geometries, and tracks (<trk>) into MultiLineString. Any properties on route and track waypoints are ignored.

    Parameters

    • source: string | Object | Node | Document

      Source.

    • Optional opt_options: ReadOptions

      Read options.

    Returns ol.Feature

    Feature.

    Function

    Api

    stable

  • Read all features from a GPX source. Routes (<rte>) are converted into LineString geometries, and tracks (<trk>) into MultiLineString. Any properties on route and track waypoints are ignored.

    Parameters

    • source: string | Object | Node | Document

      Source.

    • Optional opt_options: ReadOptions

      Read options.

    Returns ol.Feature[]

    Features.

    Function

    Api

    stable

  • Read the projection from a GPX source.

    Parameters

    • source: string | Object | Node | Document

      Source.

    Returns Projection

    Projection.

    Function

    Api

    stable

  • Encode an array of features in the GPX format. LineString geometries are output as routes (<rte>), and MultiLineString as tracks (<trk>).

    Parameters

    Returns string

    Result.

    Function

    Api

    stable

  • Encode an array of features in the GPX format as an XML node. LineString geometries are output as routes (<rte>), and MultiLineString as tracks (<trk>).

    Parameters

    Returns Node

    Node.

    Api

Generated using TypeDoc