Versions in this module Expand all Collapse all v1 v1.2.1 Apr 12, 2021 Changes in this version + var StartElement = xml.StartElement + type BoundsType struct + MaxLat float64 + MaxLon float64 + MinLat float64 + MinLon float64 + type CopyrightType struct + Author string + License string + Year int + func (c *CopyrightType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type ExtensionsType struct + XML []byte + type GPX struct + Creator string + Extensions *ExtensionsType + Metadata *MetadataType + Rte []*RteType + Trk []*TrkType + Version string + Wpt []*WptType + XMLAttrs map[string]string + XMLName string + XMLSchemaLoctions []string + func Read(r io.Reader) (*GPX, error) + func (g *GPX) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (g *GPX) Write(w io.Writer) error + func (g *GPX) WriteIndent(w io.Writer, prefix, indent string) error + type LinkType struct + HREF string + Text string + Type string + type MetadataType struct + Author *PersonType + Bounds *BoundsType + Copyright *CopyrightType + Desc string + Extensions *ExtensionsType + Keywords string + Link []*LinkType + Name string + Time time.Time + type PersonType struct + Email string + Link *LinkType + Name string + type RteType struct + Cmt string + Desc string + Extensions *ExtensionsType + Link []*LinkType + Name string + Number int + RtePt []*WptType + Src string + Type string + func NewRteType(g *geom.LineString) *RteType + func (r *RteType) Geom(layout geom.Layout) *geom.LineString + type TrkSegType struct + Extensions *ExtensionsType + TrkPt []*WptType + func NewTrkSegType(g *geom.LineString) *TrkSegType + func (ts *TrkSegType) Geom(layout geom.Layout) *geom.LineString + type TrkType struct + Cmt string + Desc string + Extensions *ExtensionsType + Link []*LinkType + Name string + Number int + Src string + TrkSeg []*TrkSegType + Type string + func NewTrkType(g *geom.MultiLineString) *TrkType + func (t *TrkType) Geom(layout geom.Layout) *geom.MultiLineString + type WptType struct + AgeOfDGPSData float64 + Cmt string + Course float64 + DGPSID []int + Desc string + Ele float64 + Extensions *ExtensionsType + Fix string + GeoidHeight float64 + HDOP float64 + Lat float64 + Link []*LinkType + Lon float64 + MagVar float64 + Name string + PDOP float64 + Sat int + Speed float64 + Src string + Sym string + Time time.Time + Type string + VDOP float64 + func NewWptType(g *geom.Point) *WptType + func (w *WptType) Geom(layout geom.Layout) *geom.Point + func (w *WptType) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (w *WptType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error