debug

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

The debug provider returns features that are helpful for debugging a tile including a box for the tile edges and a point in the middle of the tile with z,x,y values encoded

Index

Constants

View Source
const (
	LayerDebugTileOutline = "debug-tile-outline"
	LayerDebugTileCenter  = "debug-tile-center"
)
View Source
const Name = "debug"

Variables

This section is empty.

Functions

func NewTileProvider added in v0.6.0

func NewTileProvider(config map[string]interface{}) (provider.Tiler, error)

NewProvider Setups a debug provider. there are not currently any config params supported

Types

type Layer

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

func (Layer) GeomType

func (l Layer) GeomType() geom.Geometry

func (Layer) Name

func (l Layer) Name() string

func (Layer) SRID

func (l Layer) SRID() uint64

type Provider

type Provider struct{}

Provider provides the debug provider

func (*Provider) Layers

func (p *Provider) Layers() ([]provider.LayerInfo, error)

Layers returns information about the various layers the provider supports

func (*Provider) TileFeatures added in v0.6.0

func (p *Provider) TileFeatures(ctx context.Context, layer string, tile provider.Tile, fn func(f *provider.Feature) error) error

Jump to

Keyboard shortcuts

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