package mlgpx

  1. Overview
  2. Docs
Library and CLI for parsing and generating GPS Exchange (GPX) formats

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mlgpx-1.0.0.tbz
md5=5342bb7e601273245a9fe263e5a08770
sha512=cd73b16e988b3ed3cc427a6c6c6d6c9c745adb1eb7efaae3c34e8d006e9c03d9f9d2616cd4118564bd9873903969d3e4053b585e79dbd3e3e7d0f541e2faac83

doc/mlgpx.core/Gpx/Track/Segment/index.html

Module Track.SegmentSource

Sourcetype t = segment
Sourceval empty : t

Create empty segment

Sourceval make : point list -> t

Create segment with points

Sourceval make_from_coords : (float * float) list -> t

Create segment from coordinate list.

Sourceval points : t -> point list

Get points

Sourceval point_count : t -> int

Get point count

Sourceval extensions : t -> Extension.t list

Get extensions

Sourceval add_point : t -> point -> t

Add point

Sourceval add_points : t -> point list -> t

Add points

Sourceval to_coords : t -> (float * float) list

Extract coordinates

Sourceval distance : t -> float

Calculate segment distance in meters

Sourceval is_empty : t -> bool

Check if empty

Sourceval first_point : t -> point option

First point

Sourceval last_point : t -> point option

Last point

Sourceval compare : t -> t -> int

Compare segments

Sourceval equal : t -> t -> bool

Test segment equality

Sourceval pp : Format.formatter -> t -> unit

Pretty print segment