package mlgpx

  1. Overview
  2. Docs

Source file gpx_unix.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(** Unix API for GPX operations *)

module IO = Gpx_io
open Gpx

(** Convenience functions for common operations *)

(** Read and parse GPX file *)
let read = IO.read_file

(** Write GPX to file *)
let write = IO.write_file

(** Write GPX to file with backup *)
let write_with_backup = IO.write_file_with_backup

(** Pretty print GPX statistics *)
let print_stats gpx =
  Format.printf "%a@." Doc.pp_stats gpx
OCaml

Innovation. Community. Security.