slippy

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tile

type Tile struct {

	// buffer will add a buffer to the tile bounds. this buffer is expected to use the same units as the SRID
	// of the projected tile (i.e. WebMercator = pixels, 3395 = meters)
	Buffer float64
	// spatial reference id
	SRID uint64
	// contains filtered or unexported fields
}

func NewTile

func NewTile(z, x, y uint64, buffer float64, srid uint64) *Tile

func (*Tile) BufferedExtent

func (t *Tile) BufferedExtent() (bufferedExtent [2][2]float64, srid uint64)

BufferedExtent will return the tile extent including the tile's buffer and the Extent's SRID

func (*Tile) Extent

func (t *Tile) Extent() (extent [2][2]float64, srid uint64)

TODO(arolek): return geom.Extent once it has been refactored TODO(arolek): support alternative SRIDs. Currently this assumes 3857 Extent will return the tile extent excluding the tile's buffer and the Extent's SRID

func (*Tile) ZXY

func (t *Tile) ZXY() (uint64, uint64, uint64)

Jump to

Keyboard shortcuts

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