package
Version:
v0.0.0-...-d241531
Opens a new window with list of versions in this module.
Published: Aug 5, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Document struct {
XMLName xml.Name `xml:"Document"`
Name string `xml:"name"`
StyleMaps []StyleMap `xml:"StyleMap"`
Styles []Style `xml:"Style"`
Placemarks []Placemark `xml:"Placemark"`
}
Different structure for marshalling/unmarshalling due to assymetry of namespace attributes decoding/encoding
type KMLBase struct {
XMLName xml.Name `xml:"kml"`
XMLNS string `xml:"xmlns,attr"`
Document Document `xml:"Document"`
}
type KMLOut struct {
KMLBase
XMLNSGX string `xml:"xmlns:gx,attr"`
}
type Placemark struct {
XMLName struct{} `xml:"Placemark"`
Style string `xml:",innerxml"`
}
type Style struct {
XMLName struct{} `xml:"Style"`
ID string `xml:"id,attr"`
Style string `xml:",innerxml"`
}
type StyleMap struct {
XMLName xml.Name `xml:"StyleMap"`
ID string `xml:"id,attr"`
Pair string `xml:",innerxml"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.