seed

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: BSD-3-Clause Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GatherTiles added in v0.2.9

func GatherTiles(tileset *TileSet, seeder *TileSeeder, f GatherTilesFunc) (int64, error)

Types

type GatherTilesFunc added in v0.2.9

type GatherTilesFunc func(context.Context, *TileSet) (int64, error)

func NewGatherTilesExtentFunc added in v0.2.9

func NewGatherTilesExtentFunc(extents []string, sep string, min_zoom int, max_zoom int) (GatherTilesFunc, error)

func NewGatherTilesFunc added in v0.2.9

func NewGatherTilesFunc(tiles []string) (GatherTilesFunc, error)

type SeedError added in v0.2.5

type SeedError struct {
	Details error
	Tile    slippy.Tile
}

func (*SeedError) Error added in v0.2.5

func (e *SeedError) Error() string

func (*SeedError) String added in v0.2.5

func (e *SeedError) String() string

type TileSeeder

type TileSeeder struct {
	MaxWorkers    int
	SeedRasterzen bool
	SeedGeoJSON   bool
	SeedExtent    bool
	SeedSVG       bool
	SeedPNG       bool
	SVGOptions    *tile.RasterzenSVGOptions
	Force         bool
	Timings       bool
	Logger        *log.WOFLogger
	// contains filtered or unexported fields
}

func NewTileSeeder

func NewTileSeeder(w worker.Worker, c cache.Cache) (*TileSeeder, error)

func (*TileSeeder) SeedTileSet

func (s *TileSeeder) SeedTileSet(ctx context.Context, ts *TileSet) (bool, []error)

func (*TileSeeder) SeedTiles added in v0.2.4

func (s *TileSeeder) SeedTiles(t slippy.Tile) (bool, []error)

type TileSet

type TileSet struct {
	ToSeed  int64
	Timings bool
	Logger  *log.WOFLogger
	// contains filtered or unexported fields
}

func NewTileSet

func NewTileSet(seed_catalog catalog.SeedCatalog) (*TileSet, error)

func NewTileSetFromDSN added in v0.2.4

func NewTileSetFromDSN(str_dsn string) (*TileSet, error)

func (*TileSet) AddTile

func (ts *TileSet) AddTile(t slippy.Tile) error

func (*TileSet) Count

func (ts *TileSet) Count() int32

func (*TileSet) Range

func (ts *TileSet) Range(f func(key, value interface{}) bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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