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) 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 |
Click to show internal directories.
Click to hide internal directories.