kml

package
v0.0.0-...-1ab58d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	Style string
	// contains filtered or unexported fields
}

Writer is a streaming KML document writer.

func NewWriter

func NewWriter(io io.Writer) Writer

NewWriter creates nek KML writer.

func (*Writer) EndPlacemark

func (k *Writer) EndPlacemark()

EndPlacemark closes off a placemark.

func (*Writer) Finalise

func (k *Writer) Finalise()

Finalise closes an open KML document.

func (*Writer) NewFolder

func (k *Writer) NewFolder(name string)

NewFolder creates a nek folder

func (*Writer) NewLine

func (k *Writer) NewLine(name string)

NewLine creates a nek line path.

func (*Writer) NewPlacemark

func (k *Writer) NewPlacemark(name string)

NewPlacemark creates a new placemark.

func (*Writer) NewPlacemarkWithStyle

func (k *Writer) NewPlacemarkWithStyle(name, style string)

NewPlacemarkWithStyle creates a new placemark with given style.

func (*Writer) NewPoint

func (k *Writer) NewPoint(pt *tk.Point)

NewPoint adds a nek point to a path.

func (*Writer) NewTrack

func (k *Writer) NewTrack(name string)

NewTrack creates a nek track path.

func (*Writer) WriteStyle

func (k *Writer) WriteStyle(s string)

WriteStyle writes raw string as kml Style.

func (*Writer) XML

func (k *Writer) XML() *xmlstream.Writer

XML returns used xmlstream.Writer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL