···33An OCaml library for parsing and generating GPX (GPS Exchange Format) 1.0 and
441.1 files, and a CLI for common manipulation and query options.
5566+## Command Line Usage
77+88+The `mlgpx` CLI provides tools for manipulating GPX files from the command line.
99+1010+### Installation
1111+1212+```bash
1313+# Install from source
1414+dune build @install
1515+dune install
1616+1717+# Or use opam (when published)
1818+opam install mlgpx
1919+```
2020+2121+### Convert Waypoints to Track
2222+2323+```bash
2424+# Basic conversion
2525+mlgpx convert waypoints.gpx track.gpx
2626+2727+# With custom track name
2828+mlgpx convert --name "My Route" waypoints.gpx route.gpx
2929+3030+# Sort waypoints by timestamp before conversion
3131+mlgpx convert --sort-time waypoints.gpx sorted_track.gpx
3232+3333+# Sort by name and preserve original waypoints
3434+mlgpx convert --sort-name --preserve waypoints.gpx mixed.gpx
3535+3636+# Verbose output with description
3737+mlgpx convert --verbose --desc "Generated route" waypoints.gpx track.gpx
3838+```
3939+4040+### File Analysis
4141+4242+```bash
4343+# Basic file information
4444+mlgpx info file.gpx
4545+4646+# Detailed analysis with waypoint details
4747+mlgpx info --verbose file.gpx
4848+```
4949+5050+### Help
5151+5252+```bash
5353+# General help
5454+mlgpx --help
5555+5656+# Command-specific help
5757+mlgpx convert --help
5858+mlgpx info --help
5959+```
6060+661## Architecture Overview
762863The library is split into four main components:
···229284let () = create_simple_gpx ()
230285```
231286232232-## Command Line Usage
233287234234-The `mlgpx` CLI provides tools for manipulating GPX files from the command line.
235235-236236-### Installation
237237-238238-```bash
239239-# Install from source
240240-dune build @install
241241-dune install
242242-243243-# Or use opam (when published)
244244-opam install mlgpx
245245-```
246246-247247-### Convert Waypoints to Track
248248-249249-```bash
250250-# Basic conversion
251251-mlgpx convert waypoints.gpx track.gpx
252252-253253-# With custom track name
254254-mlgpx convert --name "My Route" waypoints.gpx route.gpx
255255-256256-# Sort waypoints by timestamp before conversion
257257-mlgpx convert --sort-time waypoints.gpx sorted_track.gpx
258258-259259-# Sort by name and preserve original waypoints
260260-mlgpx convert --sort-name --preserve waypoints.gpx mixed.gpx
261261-262262-# Verbose output with description
263263-mlgpx convert --verbose --desc "Generated route" waypoints.gpx track.gpx
264264-```
265265-266266-### File Analysis
267267-268268-```bash
269269-# Basic file information
270270-mlgpx info file.gpx
271271-272272-# Detailed analysis with waypoint details
273273-mlgpx info --verbose file.gpx
274274-```
275275-276276-### Help
277277-278278-```bash
279279-# General help
280280-mlgpx --help
281281-282282-# Command-specific help
283283-mlgpx convert --help
284284-mlgpx info --help
285285-```