test

package
v0.0.0-...-05a1c04 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "test"

Variables

View Source
var Count int

Functions

func Cleanup

func Cleanup()

Cleanup cleans up all the test providers.

func NewTileProvider

func NewTileProvider(config dict.Dicter) (provider.Tiler, error)

NewProvider setups a test provider. there are not currently any config params supported

Types

type TileProvider

type TileProvider struct {
	Features []provider.Feature
}

TileProvider is the concrete type that satisfies the provider.Provider interface. The Features field can, optionally, be populated to be used in the TileFeatures call.

func (*TileProvider) Layers

func (tp *TileProvider) Layers() ([]provider.LayerInfo, error)

func (*TileProvider) TileFeatures

func (tp *TileProvider) TileFeatures(ctx context.Context, layer string, t provider.Tile, fn func(f *provider.Feature) error) error

TilFeatures passes features to fn. If tp.Features is nil, then t's un-buffered extent is passed. If tp.Features is not nil, then all features with extents that intersect with t's extent are returned.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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