Documentation ¶
Index ¶
- Variables
- func Cleanup()
- func ConvertFeatureID(v interface{}) (uint64, error)
- func Drivers() (l []string)
- func Exists(name string) bool
- func Register(name string, init InitFunc, cleanup CleanupFunc) error
- type CleanupFunc
- type ErrProviderAlreadyExists
- type ErrUnableToConvertFeatureID
- type ErrUnknownProvider
- type Feature
- type InitFunc
- type LayerInfo
- type Layerer
- type Tile
- type Tiler
Constants ¶
This section is empty.
Variables ¶
var ( ErrCanceled = errors.New("provider: canceled") ErrUnsupported = errors.New("provider: unsupported") )
Functions ¶
func ConvertFeatureID ¶
ConvertFeatureID attempts to convert an interface value to an uint64
func Register ¶
func Register(name string, init InitFunc, cleanup CleanupFunc) error
Register the provider with the system. This call is generally made in the init functions of the provider.
the clean up function will be called during shutdown of the provider to allow the provider to do any cleanup.
Types ¶
type CleanupFunc ¶
type CleanupFunc func()
CleanupFunc is called to when the system is shuting down, this allows the provider to cleanup.
type ErrProviderAlreadyExists ¶
type ErrProviderAlreadyExists struct {
Name string
}
ErrProviderAlreadyExists is returned when the Provided being registered already exists in the registration system
func (ErrProviderAlreadyExists) Error ¶
func (err ErrProviderAlreadyExists) Error() string
type ErrUnableToConvertFeatureID ¶
type ErrUnableToConvertFeatureID struct {
// contains filtered or unexported fields
}
func (ErrUnableToConvertFeatureID) Error ¶
func (e ErrUnableToConvertFeatureID) Error() string
type ErrUnknownProvider ¶
ErrUnknownProvider is returned when no providers are registered or a requested provider is not registered
func (ErrUnknownProvider) Error ¶
func (err ErrUnknownProvider) Error() string
type InitFunc ¶
InitFunc initialize a provider given a config map. The init function should validate the config map, and report any errors. This is called by the For function.
type Tile ¶
type Tile interface { // ZXY returns the z, x and y values of the tile ZXY() (uint, uint, uint) // Extent returns the extent of the tile excluding any buffer Extent() (extent *geom.Extent, srid uint64) // BufferedExtent returns the extent of the tile including any buffer BufferedExtent() (extent *geom.Extent, srid uint64) }
Tile is an interface used by Tiler, it is an unnecessary abstraction and is due to be removed. The tiler interface will, instead take a, *geom.Extent.
Directories ¶
Path | Synopsis |
---|---|
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
|
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 |