mbtiles

package module
v0.0.0-...-c0b2ed2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2014 License: MIT Imports: 6 Imported by: 1

README

mbtiles

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig() interface{}

func NewProvider

func NewProvider(providerConfig interface{}) (blink.Provider, error)

Types

type Config

type Config struct {
	PathToDb  string
	BatchSize int
}

type MBTile

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

func (*MBTile) Close

func (mbtile *MBTile) Close()

Closes the underlying Sqlite Database

func (*MBTile) GetGrid

func (mbtile *MBTile) GetGrid(zoom int, x int, y int) ([]byte, error)

Select a grid and its data from an mbtiles database

func (*MBTile) GetMetadata

func (mbtile *MBTile) GetMetadata(u *url.URL)

func (*MBTile) GetTile

func (mbtile *MBTile) GetTile(zoom int, x int, y int) ([]byte, error)

type Metadata

type Metadata struct {
	Values map[string]string
	// contains filtered or unexported fields
}

Directories

Path Synopsis
third_party
github.com/mattn/go-sqlite3
Package sqlite3 provides interface to SQLite3 databases.
Package sqlite3 provides interface to SQLite3 databases.

Jump to

Keyboard shortcuts

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