Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzeCommand ¶
type AnalyzeCommand struct {
Num bool `short:"c" long:"count" description:"Only analyze object counts."`
}
func (AnalyzeCommand) GetConfiguration ¶
func (a AnalyzeCommand) GetConfiguration() (tc config.TransformConfig, err error)
type CommandError ¶
type CommandError struct {
Msg string
}
func (CommandError) Error ¶
func (ce CommandError) Error() string
type DirectCommand ¶
type DirectCommand struct {
Simplify unit.Length `` /* 143-byte string literal not displayed */
RemoveStops bool `` /* 141-byte string literal not displayed */
MinPoints int `long:"min-points" description:"Remove segments that have less points than the provided number." default:"0"`
MinRadius unit.Length `` /* 127-byte string literal not displayed */
MinDistance unit.Length `long:"min-distance" description:"Remove segments that are shorter than the provided min distance." default:"0"`
MinDuration time.Duration `long:"min-duration" description:"Remove segments that are shorter than the provided min duration." default:"0"`
MaxDuration time.Duration `long:"max-duration" description:"Remove segments that are longer than the provided max duration." default:"0"`
}
func (DirectCommand) GetConfiguration ¶
func (d DirectCommand) GetConfiguration() (tc config.TransformConfig, err error)
type FilterCommand ¶
type FilterCommand struct {
Trim unit.Length `` /* 195-byte string literal not displayed */
TrimStart unit.Length `long:"trim-start" description:"Trim all points at a segment's start that are within the provided radius." default:"0"`
TrimEnd unit.Length `long:"trim-end" description:"Trim all points at a segment's end that are within the provided radius." default:"0"`
}
func (FilterCommand) GetConfiguration ¶
func (f FilterCommand) GetConfiguration() (tc config.TransformConfig, err error)
type Flags ¶
type Flags struct {
In string `short:"i" long:"in" description:"The file or folder that new GPX data is read from. Leave empty to read from STDIN."`
Out string `short:"o" long:"out" description:"The file or folder that new GPX data is written to. Leave empty to write to STDOUT."`
Verbose []bool `short:"v" long:"verbosity" description:"Verbosity with that information is logged to STDERR."`
Split SplitCommand `command:"split" description:"Splits track segments into multiple tracks or files."`
Merge MergeCommand `command:"merge" description:"Merges multiple files / tracks / track segments into single instances."`
Filter FilterCommand `command:"filter" description:"Applies filters on waypoints."`
Remove DirectCommand `command:"remove" description:"Removes certain tracks / track segments / waypoints."`
Analyze AnalyzeCommand `command:"analyze" description:"Prints information for the provided GPX data."`
}
Flag holds all arguments passed via command line
func (Flags) GetConfiguration ¶
func (flagOpts Flags) GetConfiguration(name string) (tc config.TransformConfig, err error)
GetConfiguration returns the configuration for the sub-command specified with name. Valid command names are split, filter, direct, and analyze.
type MergeCommand ¶
type MergeCommand struct {
MergeSegments bool `short:"s" long:"merge-segments" description:"Merge multiple segments from a track to a single segment."`
MergeTracks bool `short:"t" long:"merge-tracks" description:"Merge multiple tracks to a single track."`
MergeFiles bool `short:"f" long:"merge-files" description:"Merge multiple files to a single file."`
}
func (MergeCommand) GetConfiguration ¶
func (m MergeCommand) GetConfiguration() (tc config.TransformConfig, err error)
type SplitCommand ¶
type SplitCommand struct {
Tracks bool `short:"t" long:"tracks" description:"Create an individual file for every track."`
Segments bool `short:"s" long:"segments" description:"Create an individual track for every track segment."`
Distance unit.Length `` /* 177-byte string literal not displayed */
Duration time.Duration `` /* 252-byte string literal not displayed */
PauseSplit string `` /* 378-byte string literal not displayed */
}
func (SplitCommand) GetConfiguration ¶
func (s SplitCommand) GetConfiguration() (tc config.TransformConfig, err error)
type TransformCommand ¶
type TransformCommand interface {
GetConfiguration() (config.TransformConfig, error)
}
Click to show internal directories.
Click to hide internal directories.