tilerender

package
v0.0.0-...-ebda00a Latest Latest
Warning

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

Go to latest
Published: May 20, 2016 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FontPath string

Functions

func IsBadCoordError

func IsBadCoordError(err error) bool

Types

type BadCoordError

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

func NewBadCoordError

func NewBadCoordError(coord gopnik.TileCoord) *BadCoordError

func (*BadCoordError) Error

func (self *BadCoordError) Error() string

type MultiRenderPool

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

func NewMultiRenderPool

func NewMultiRenderPool(poolsCfg app.RenderPoolsConfig) (*MultiRenderPool, error)

func (*MultiRenderPool) EnqueueRequest

func (self *MultiRenderPool) EnqueueRequest(coord gopnik.TileCoord, resCh chan<- *RenderPoolResponse, prio gopnikrpc.Priority) error

func (*MultiRenderPool) Reload

func (self *MultiRenderPool) Reload()

func (*MultiRenderPool) Stop

func (self *MultiRenderPool) Stop()

type RenderPool

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

func NewRenderPool

func NewRenderPool(cmd []string, poolSize, hpQueueSize, lpQueueSize, ttl uint, executionTimeout time.Duration) (*RenderPool, error)

func (*RenderPool) Cmd

func (self *RenderPool) Cmd() []string

func (*RenderPool) EnqueueRequest

func (self *RenderPool) EnqueueRequest(coord gopnik.TileCoord, resCh chan<- *RenderPoolResponse, prio gopnikrpc.Priority) error

func (*RenderPool) QueueSize

func (self *RenderPool) QueueSize() int

func (*RenderPool) Reload

func (self *RenderPool) Reload()

func (*RenderPool) Resize

func (self *RenderPool) Resize(newPoolSize int)

func (*RenderPool) SetTTL

func (self *RenderPool) SetTTL(ttl uint)

func (*RenderPool) Size

func (self *RenderPool) Size() int

func (*RenderPool) Stop

func (self *RenderPool) Stop()

type RenderPoolResponse

type RenderPoolResponse struct {
	Coord      gopnik.TileCoord
	Error      error
	Tiles      []gopnik.Tile
	RenderTime time.Duration
	WaitTime   time.Duration
}

type TileRender

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

Renders images as Web Mercator tiles

func NewTileRender

func NewTileRender(cmd []string, timeout time.Duration) (*TileRender, error)

func (*TileRender) RenderTiles

func (t *TileRender) RenderTiles(c gopnik.TileCoord) ([]gopnik.Tile, error)

func (*TileRender) Stop

func (t *TileRender) Stop()

Jump to

Keyboard shortcuts

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