mvt

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coord

type Coord interface {
	X() float64
	Y() float64
}

type Feature

type Feature struct {
	ID         uint64
	Type       string
	Geometry   []uint32
	Properties map[string]interface{}
}

func (Feature) GeomType

func (f Feature) GeomType() vector_tile.Tile_GeomType

type FeatureMarshaller

type FeatureMarshaller interface {
	Type() string
	Geometry() []uint32
}

type FeatureWriter

type FeatureWriter struct {
	// contains filtered or unexported fields
}

func NewFeatureWriter

func NewFeatureWriter(cap int) *FeatureWriter

func (*FeatureWriter) ClosePath

func (w *FeatureWriter) ClosePath()

func (*FeatureWriter) Data

func (w *FeatureWriter) Data() []uint32

func (*FeatureWriter) LineTo

func (w *FeatureWriter) LineTo(l int, getCoord func(i int) Coord)

func (*FeatureWriter) MoveTo

func (w *FeatureWriter) MoveTo(l int, getCoord func(i int) Coord)

type MVT

type MVT struct {
	bytes.Buffer
}

func ToMVT

func ToMVT(v MVTMarshaller) (*MVT, error)

func (MVT) ContextType

func (MVT) ContextType() string

type MVTMarshaller

type MVTMarshaller interface {
	MarshalMVT(w *MVTWriter) error
}

type MVTWriter

type MVTWriter struct {
	vector_tile.Tile
}

func (*MVTWriter) WriteLayer

func (w *MVTWriter) WriteLayer(name string, extent uint32, features ...*Feature)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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