Versions in this module Expand all Collapse all v0 v0.1.0 Jul 29, 2024 Changes in this version + const MimeType + var DefaultExtent uint32 = 4096 + var ErrExtraData = errors.New("mvt: invalid extra data") + var ErrNilFeature = fmt.Errorf("feature is nil") + var ErrNilGeometryType = fmt.Errorf("geometry is nil") + var ErrUnknownGeometryType = fmt.Errorf("unknown geometry type") + var Version uint32 = 2 + func DecodeGeometry(gtype vectorTile.Tile_GeomType, b []uint32) (geom.Geometry, error) + func NewCursor() *cursor + func PrepareGeo(geo geom.Geometry, tile *geom.Extent, pixelExtent float64) geom.Geometry + func TileGeomCollection(tile *Tile) geom.Collection + type Command uint32 + func NewCommand(cmd uint32, count int) Command + func (c Command) Count() int + func (c Command) ID() uint32 + func (c Command) String() string + type Feature struct + Geometry geom.Geometry + ID *uint64 + Tags map[string]interface{} + func NewFeatures(geo geom.Geometry, tags map[string]interface{}) (f []Feature) + func (f *Feature) VTileFeature(ctx context.Context, keys []string, vals []interface{}) (tf *vectorTile.Tile_Feature, err error) + func (f Feature) String() string + type Layer struct + Name string + func (*Layer) Version() int + func (l *Layer) AddFeatures(features ...Feature) + func (l *Layer) Extent() int + func (l *Layer) Features() (f []Feature) + func (l *Layer) RemoveFeature(idxs ...int) + func (l *Layer) SetExtent(e int) + func (l *Layer) VTileLayer(ctx context.Context) (*vectorTile.Tile_Layer, error) + type Tile struct + func Decode(r io.Reader) (*Tile, error) + func DecodeByte(b []byte) (*Tile, error) + func (t *Tile) AddLayers(layers ...*Layer) error + func (t *Tile) Layers() (l []Layer) + func (t *Tile) VTile(ctx context.Context) (vt *vectorTile.Tile, err error)