Versions in this module Expand all Collapse all v2 v2.0.1 Feb 20, 2023 v2.0.0 Sep 22, 2021 Changes in this version + const GxNamespace + const Namespace + type AltitudeModeEnum string + const AltitudeModeAbsolute + const AltitudeModeClampToGround + const AltitudeModeRelativeToGround + type ColorModeEnum string + const ColorModeNormal + const ColorModeRandom + type CompoundElement struct + Children []Element + func Alias(children ...Element) *CompoundElement + func BalloonStyle(children ...Element) *CompoundElement + func Camera(children ...Element) *CompoundElement + func Change(children ...Element) *CompoundElement + func Create(children ...Element) *CompoundElement + func Data(children ...Element) *CompoundElement + func Delete(children ...Element) *CompoundElement + func Document(children ...Element) *CompoundElement + func ExtendedData(children ...Element) *CompoundElement + func Folder(children ...Element) *CompoundElement + func GroundOverlay(children ...Element) *CompoundElement + func GxAnimatedUpdate(children ...Element) *CompoundElement + func GxFlyTo(children ...Element) *CompoundElement + func GxKML(child Element) *CompoundElement + func GxLatLonQuad(children ...Element) *CompoundElement + func GxMultiTrack(children ...Element) *CompoundElement + func GxPlaylist(children ...Element) *CompoundElement + func GxSimpleArrayData(children ...Element) *CompoundElement + func GxSimpleArrayField(name, _type string) *CompoundElement + func GxSoundCue(children ...Element) *CompoundElement + func GxTimeSpan(children ...Element) *CompoundElement + func GxTimeStamp(children ...Element) *CompoundElement + func GxTour(children ...Element) *CompoundElement + func GxTourControl(children ...Element) *CompoundElement + func GxTrack(children ...Element) *CompoundElement + func GxViewerOptions(children ...Element) *CompoundElement + func GxWait(children ...Element) *CompoundElement + func Icon(children ...Element) *CompoundElement + func IconStyle(children ...Element) *CompoundElement + func ImagePyramid(children ...Element) *CompoundElement + func InnerBoundaryIs(value Element) *CompoundElement + func ItemIcon(children ...Element) *CompoundElement + func KML(child Element) *CompoundElement + func LOD(children ...Element) *CompoundElement + func LabelStyle(children ...Element) *CompoundElement + func LatLonAltBox(children ...Element) *CompoundElement + func LatLonBox(children ...Element) *CompoundElement + func LineString(children ...Element) *CompoundElement + func LineStyle(children ...Element) *CompoundElement + func LinearRing(children ...Element) *CompoundElement + func Link(children ...Element) *CompoundElement + func ListStyle(children ...Element) *CompoundElement + func Location(children ...Element) *CompoundElement + func LookAt(children ...Element) *CompoundElement + func Metadata(children ...Element) *CompoundElement + func Model(children ...Element) *CompoundElement + func MultiGeometry(children ...Element) *CompoundElement + func NetworkLink(children ...Element) *CompoundElement + func NetworkLinkControl(children ...Element) *CompoundElement + func Orientation(children ...Element) *CompoundElement + func OuterBoundaryIs(value Element) *CompoundElement + func Pair(children ...Element) *CompoundElement + func PhotoOverlay(children ...Element) *CompoundElement + func Placemark(children ...Element) *CompoundElement + func Point(children ...Element) *CompoundElement + func PolyStyle(children ...Element) *CompoundElement + func Polygon(children ...Element) *CompoundElement + func Region(children ...Element) *CompoundElement + func ResourceMap(children ...Element) *CompoundElement + func SchemaData(schemaURL string, children ...Element) *CompoundElement + func ScreenOverlay(children ...Element) *CompoundElement + func SimpleField(name, _type string, children ...Element) *CompoundElement + func Style(children ...Element) *CompoundElement + func StyleMap(children ...Element) *CompoundElement + func TimeSpan(children ...Element) *CompoundElement + func TimeStamp(children ...Element) *CompoundElement + func URL(children ...Element) *CompoundElement + func Update(children ...Element) *CompoundElement + func ViewVolume(children ...Element) *CompoundElement + func (ce *CompoundElement) Add(children ...Element) *CompoundElement + func (ce *CompoundElement) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (ce *CompoundElement) SetChildren(children []Element) + func (ce *CompoundElement) Write(w io.Writer) error + func (ce *CompoundElement) WriteIndent(w io.Writer, prefix, indent string) error + type Coordinate struct + Alt float64 + Lat float64 + Lon float64 + type CoordinatesArrayElement struct + func CoordinatesArray(value ...[]float64) *CoordinatesArrayElement + func (cae *CoordinatesArrayElement) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (cae *CoordinatesArrayElement) Write(w io.Writer) error + func (cae *CoordinatesArrayElement) WriteIndent(w io.Writer, prefix, indent string) error + type CoordinatesElement struct + func Coordinates(value ...Coordinate) *CoordinatesElement + func (ce *CoordinatesElement) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (ce *CoordinatesElement) Write(w io.Writer) error + func (ce *CoordinatesElement) WriteIndent(w io.Writer, prefix, indent string) error + type CoordinatesFlatElement struct + func CoordinatesFlat(flatCoords []float64, offset, end, stride, dim int) *CoordinatesFlatElement + func (cfe *CoordinatesFlatElement) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (cfe *CoordinatesFlatElement) Write(w io.Writer) error + func (cfe *CoordinatesFlatElement) WriteIndent(w io.Writer, prefix, indent string) error + type DisplayModeEnum string + const DisplayModeDefault + const DisplayModeHide + type Element interface + Write func(io.Writer) error + WriteIndent func(io.Writer, string, string) error + type GridOriginEnum string + const GridOriginLowerLeft + const GridOriginUpperLeft + type GxAltitudeModeEnum string + const GxAltitudeModeAbsolute + const GxAltitudeModeClampToGround + const GxAltitudeModeClampToSeaFloor + const GxAltitudeModeRelativeToGround + const GxAltitudeModeRelativeToSeaFloor + type GxAngle struct + Heading float64 + Roll float64 + Tilt float64 + type GxFlyToModeEnum string + const GxFlyToModeBounce + const GxFlyToModeSmooth + type GxOptionName string + const GxOptionNameHistoricalImagery + const GxOptionNameStreetView + const GxOptionNameSunlight + type GxPlayModeEnum string + const GxPlayModePause + type ItemIconStateEnum string + const ItemIconStateClosed + const ItemIconStateError + const ItemIconStateFetching0 + const ItemIconStateFetching1 + const ItemIconStateFetching2 + const ItemIconStateOpen + type ListItemTypeEnum string + const ListItemTypeCheck + const ListItemTypeCheckHideChildren + const ListItemTypeCheckOffOnly + const ListItemTypeRadioFolder + type RefreshModeEnum string + const RefreshModeOnChange + const RefreshModeOnExpire + const RefreshModeOnInterval + type ShapeEnum string + const ShapeCylinder + const ShapeRectangle + const ShapeSphere + type SharedElement struct + ID string + func Schema(id, name string, children ...Element) *SharedElement + func SharedStyle(id string, children ...Element) *SharedElement + func SharedStyleMap(id string, children ...Element) *SharedElement + func (se *SharedElement) URL() string + type SimpleElement struct + Value string + func Address(value string) *SimpleElement + func Altitude(value float64) *SimpleElement + func AltitudeMode(value AltitudeModeEnum) *SimpleElement + func Begin(value time.Time) *SimpleElement + func BgColor(value color.Color) *SimpleElement + func BottomFOV(value float64) *SimpleElement + func Color(value color.Color) *SimpleElement + func ColorMode(value ColorModeEnum) *SimpleElement + func Cookie(value string) *SimpleElement + func Description(value string) *SimpleElement + func DisplayMode(value DisplayModeEnum) *SimpleElement + func DisplayName(value string) *SimpleElement + func DrawOrder(value int) *SimpleElement + func East(value float64) *SimpleElement + func End(value time.Time) *SimpleElement + func Expires(value time.Time) *SimpleElement + func Extrude(value bool) *SimpleElement + func Fill(value bool) *SimpleElement + func FlyToView(value bool) *SimpleElement + func GridOrigin(value GridOriginEnum) *SimpleElement + func GxAltitudeMode(value GxAltitudeModeEnum) *SimpleElement + func GxAltitudeOffset(value float64) *SimpleElement + func GxAngles(value GxAngle) *SimpleElement + func GxBalloonVisibility(value bool) *SimpleElement + func GxCoord(value Coordinate) *SimpleElement + func GxDelayedStart(value float64) *SimpleElement + func GxDrawOrder(value int) *SimpleElement + func GxDuration(value float64) *SimpleElement + func GxFlyToMode(value GxFlyToModeEnum) *SimpleElement + func GxH(value int) *SimpleElement + func GxHorizFOV(value float64) *SimpleElement + func GxInterpolate(value bool) *SimpleElement + func GxLabelVisibility(value bool) *SimpleElement + func GxOption(name GxOptionName, enabled bool) *SimpleElement + func GxOuterColor(value color.Color) *SimpleElement + func GxOuterWidth(value float64) *SimpleElement + func GxPhysicalWidth(value float64) *SimpleElement + func GxPlayMode(value GxPlayModeEnum) *SimpleElement + func GxRank(value float64) *SimpleElement + func GxValue(value string) *SimpleElement + func GxW(value int) *SimpleElement + func GxX(value int) *SimpleElement + func GxY(value int) *SimpleElement + func HTTPQuery(value string) *SimpleElement + func Heading(value float64) *SimpleElement + func HotSpot(value Vec2) *SimpleElement + func Href(value string) *SimpleElement + func Key(value StyleStateEnum) *SimpleElement + func Latitude(value float64) *SimpleElement + func LeftFOV(value float64) *SimpleElement + func LinkDescription(value string) *SimpleElement + func LinkName(value string) *SimpleElement + func LinkSnippet(maxLines int, value string) *SimpleElement + func ListItemType(value ListItemTypeEnum) *SimpleElement + func Longitude(value float64) *SimpleElement + func MaxAltitude(value float64) *SimpleElement + func MaxFadeExtent(value float64) *SimpleElement + func MaxHeight(value int) *SimpleElement + func MaxLODPixels(value float64) *SimpleElement + func MaxSessionLength(value float64) *SimpleElement + func MaxSnippetLines(value int) *SimpleElement + func MaxWidth(value int) *SimpleElement + func Message(value string) *SimpleElement + func MinAltitude(value float64) *SimpleElement + func MinFadeExtent(value float64) *SimpleElement + func MinLODPixels(value float64) *SimpleElement + func MinRefreshPeriod(value float64) *SimpleElement + func Name(value string) *SimpleElement + func Near(value float64) *SimpleElement + func North(value float64) *SimpleElement + func Open(value bool) *SimpleElement + func Outline(value bool) *SimpleElement + func OverlayXY(value Vec2) *SimpleElement + func PhoneNumber(value string) *SimpleElement + func Range(value float64) *SimpleElement + func RefreshInterval(value float64) *SimpleElement + func RefreshMode(value RefreshModeEnum) *SimpleElement + func RefreshVisibility(value bool) *SimpleElement + func RightFOV(value float64) *SimpleElement + func Roll(value float64) *SimpleElement + func Rotation(value float64) *SimpleElement + func RotationXY(value Vec2) *SimpleElement + func Scale(value float64) *SimpleElement + func ScreenXY(value Vec2) *SimpleElement + func Shape(value ShapeEnum) *SimpleElement + func SimpleData(name, value string) *SimpleElement + func Size(value Vec2) *SimpleElement + func Snippet(value string) *SimpleElement + func SourceHref(value string) *SimpleElement + func South(value float64) *SimpleElement + func State(value ItemIconStateEnum) *SimpleElement + func StyleURL(value string) *SimpleElement + func TargetHref(value string) *SimpleElement + func Tessellate(value bool) *SimpleElement + func Text(value string) *SimpleElement + func TextColor(value color.Color) *SimpleElement + func TileSize(value int) *SimpleElement + func Tilt(value float64) *SimpleElement + func TopFOV(value float64) *SimpleElement + func Value(value string) *SimpleElement + func ViewBoundScale(value float64) *SimpleElement + func ViewFormat(value string) *SimpleElement + func ViewRefreshMode(value ViewRefreshModeEnum) *SimpleElement + func ViewRefreshTime(value float64) *SimpleElement + func Visibility(value bool) *SimpleElement + func West(value float64) *SimpleElement + func When(value time.Time) *SimpleElement + func Width(value float64) *SimpleElement + func X(value float64) *SimpleElement + func Y(value float64) *SimpleElement + func Z(value float64) *SimpleElement + func (se *SimpleElement) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (se *SimpleElement) SetBool(value bool) + func (se *SimpleElement) SetColor(value color.Color) + func (se *SimpleElement) SetFloat(value float64) + func (se *SimpleElement) SetInt(value int) + func (se *SimpleElement) SetString(value string) + func (se *SimpleElement) SetTime(value time.Time) + func (se *SimpleElement) Write(w io.Writer) error + func (se *SimpleElement) WriteIndent(w io.Writer, prefix, indent string) error + type StyleStateEnum string + const StyleStateHighlight + const StyleStateNormal + type UnitsEnum string + const UnitsFraction + const UnitsInsetPixels + const UnitsPixels + type Vec2 struct + X float64 + XUnits UnitsEnum + Y float64 + YUnits UnitsEnum + type ViewRefreshModeEnum string + const ViewRefreshModeNever + const ViewRefreshModeOnRegion + const ViewRefreshModeOnRequest + const ViewRefreshModeOnStop Other modules containing this package github.com/twpayne/go-kml github.com/twpayne/go-kml/v3