tileutil

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REX_OSM_TILE_NAME = "^osm-(\\d*)-(\\d*)-(\\d*)\\.png$"
	MAX_TILE_SIZE     = 1048576
	MAX_ZOOM_LEVEL    = 19
	MODE_DIR          = 0755
	MODE_FILE         = 0644
	SIZE_BUFFER       = 8096
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TileUtil

type TileUtil interface {
	Cleanup() error
	Export(w io.Writer, creationTime time.Time) error
	Fetch(server tileserver.OSMTileServer, id tile.Id) (tile.Image, error)
	Import(r io.Reader) error
	Prefetch(server tileserver.OSMTileServer, maxZoom uint8)
}

* Utility for accessing a tile database.

func CreateTileUtil

func CreateTileUtil(idxdb tiledb.IndexDatabase, imgdb tiledb.ImageDatabase) TileUtil

* Create a new util for handling tiles.

Jump to

Keyboard shortcuts

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