maptiles

package
v0.0.0-...-a88d34c Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TileServerPostgres

type TileServerPostgres struct {
	TmsSchema bool
	// contains filtered or unexported fields
}

TileServerPostgres PostgresSQL tile server. Handles HTTP requests for map tiles, caching any produced tiles in an MBtiles 1.2 compatible sqlite db.

func NewTileServerPostgres

func NewTileServerPostgres(cacheFile string) *TileServerPostgres

NewTileServerPostgres creates TileServerPostgres object.

func (*TileServerPostgres) AddMapnikLayer

func (self *TileServerPostgres) AddMapnikLayer(layerName string, stylesheet string)

AddMapnikLayer adds mapnik layer to server.

func (*TileServerPostgres) IndexHandler

func (self *TileServerPostgres) IndexHandler(w http.ResponseWriter, r *http.Request)

IndexHandler for server.

func (*TileServerPostgres) MetadataHandler

func (self *TileServerPostgres) MetadataHandler(w http.ResponseWriter, r *http.Request)

MetadataHandler for tile server.

func (*TileServerPostgres) PingHandler

func (self *TileServerPostgres) PingHandler(w http.ResponseWriter, r *http.Request)

PingHandler provides an api route for server health check.

func (*TileServerPostgres) RequestErrorHandler

func (self *TileServerPostgres) RequestErrorHandler(w http.ResponseWriter, r *http.Request)

RequestErrorHandler handles error response.

func (*TileServerPostgres) ServeHTTP

func (self *TileServerPostgres) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP http server.

func (*TileServerPostgres) ServeTileRequest

func (self *TileServerPostgres) ServeTileRequest(w http.ResponseWriter, r *http.Request, tc TileCoord)

ServeTileRequest serves tile request.

func (*TileServerPostgres) ServerHandler

func (self *TileServerPostgres) ServerHandler(w http.ResponseWriter, r *http.Request)

ServerHandler returns basic server stats.

func (*TileServerPostgres) TileLayersHandler

func (self *TileServerPostgres) TileLayersHandler(w http.ResponseWriter, r *http.Request)

TileLayersHandler returns list of tiles.

type TileServerSqlite

type TileServerSqlite struct {
	TmsSchema bool
	// contains filtered or unexported fields
}

TileServerSqlite Sqlite3 tile server. Handles HTTP requests for map tiles, caching any produced tiles in an MBtiles 1.2 compatible sqlite db.

func NewTileServerSqlite

func NewTileServerSqlite(cacheFile string) *TileServerSqlite

NewTileServerSqlite creates TileServerSqlite object.

func (*TileServerSqlite) AddMapnikLayer

func (self *TileServerSqlite) AddMapnikLayer(layerName string, stylesheet string)

AddMapnikLayer adds mapnik layer to server.

func (*TileServerSqlite) IndexHandler

func (self *TileServerSqlite) IndexHandler(w http.ResponseWriter, r *http.Request)

IndexHandler for server.

func (*TileServerSqlite) MetadataHandler

func (self *TileServerSqlite) MetadataHandler(w http.ResponseWriter, r *http.Request)

MetadataHandler for tile server.

func (*TileServerSqlite) PingHandler

func (self *TileServerSqlite) PingHandler(w http.ResponseWriter, r *http.Request)

PingHandler provides an api route for server health check.

func (*TileServerSqlite) RequestErrorHandler

func (self *TileServerSqlite) RequestErrorHandler(w http.ResponseWriter, r *http.Request)

RequestErrorHandler handles error response.

func (*TileServerSqlite) ServeHTTP

func (self *TileServerSqlite) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP http server.

func (*TileServerSqlite) ServeTileRequest

func (self *TileServerSqlite) ServeTileRequest(w http.ResponseWriter, r *http.Request, tc TileCoord)

ServeTileRequest serves tile request.

func (*TileServerSqlite) ServerHandler

func (self *TileServerSqlite) ServerHandler(w http.ResponseWriter, r *http.Request)

ServerHandler returns basic server stats.

func (*TileServerSqlite) TileLayersHandler

func (self *TileServerSqlite) TileLayersHandler(w http.ResponseWriter, r *http.Request)

TileLayersHandler returns list of tiles.

Jump to

Keyboard shortcuts

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