tile

package
v0.0.0-...-1a91edc Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tile defines datamodels for WMTS tiles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingType

type EncodingType string
const JPEG EncodingType = "image/jpeg"
const PNG EncodingType = "image/png"

type Properties

type Properties struct {
	Col, Row, Zoom uint64
	Size           uint16 // rectangular tile
	Encoding       EncodingType
}

func (Properties) String

func (p Properties) String() string

type Tile

type Tile struct {
	Props Properties
	Data  image.Image
}

func (Tile) String

func (t Tile) String() string

func (Tile) TranscodeData

func (t Tile) TranscodeData(target EncodingType) (result []byte, err error)

Directories

Path Synopsis
Package source defines sources of WMTS tiles.
Package source defines sources of WMTS tiles.
middleware
Package middleware defines utility decorators of sources as such, middlewares implement the source interface
Package middleware defines utility decorators of sources as such, middlewares implement the source interface

Jump to

Keyboard shortcuts

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