encode

package
v0.0.0-...-3cd2f5a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EncoderIsNilErr = errors.New("Encoder can not be nil")

Functions

This section is empty.

Types

type Encoder

type Encoder struct {
	// W is the writer to which the binary data will be written to.
	W io.Writer
	// ByteOrder is the Byte Order Marker, it defaults to binary.LittleEndian
	ByteOrder binary.ByteOrder
	// contains filtered or unexported fields
}

func (*Encoder) BOM

func (en *Encoder) BOM() *Encoder

func (*Encoder) Collection

func (en *Encoder) Collection(geoms []geom.Geometry)

func (*Encoder) Err

func (en *Encoder) Err() error

func (*Encoder) Geometry

func (en *Encoder) Geometry(g geom.Geometry)

func (*Encoder) LineString

func (en *Encoder) LineString(ln [][2]float64)

func (*Encoder) MultiLineString

func (en *Encoder) MultiLineString(lns [][][2]float64)

func (*Encoder) MultiPoint

func (en *Encoder) MultiPoint(pts [][2]float64)

func (*Encoder) MultiPolygon

func (en *Encoder) MultiPolygon(mply [][][][2]float64)

func (*Encoder) Point

func (en *Encoder) Point(pt [2]float64)

func (*Encoder) Polygon

func (en *Encoder) Polygon(ply [][][2]float64)

func (*Encoder) Write

func (en *Encoder) Write(data ...interface{}) *Encoder

Jump to

Keyboard shortcuts

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