geo

package
v0.0.0-...-5cd0c88 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var R2D = 180 / math.Pi
View Source
var WebMercatorExtent = []float64{-20037508.34, -20037508.34, 20037508.34, 20037508.34}
View Source
var WebMercatorResolutions = []float64{
	156543.03390000000945292413,
	78271.51695000000472646207,
	39135.75847500000236323103,
	19567.87923750000118161552,
	9783.93961875000059080776,
	4891.96980937500029540388,
	2445.98490468750014770194,
	1222.99245234375007385097,
	611.49622617187503692548,
	305.74811308593751846274,
	152.87405654296875923137,
	76.43702827148437961569,
	38.21851413574218980784,
	19.10925706787109490392,
	9.55462853393554745196,
	4.77731426696777372598,
	2.38865713348388686299,
	1.19432856674194343150,
	0.59716428337097171575,
	0.29858214168548585787,
	0.14929107084274292894,
	0.07464553542137146447,
}

Functions

func FlipY

func FlipY(y int, z int, size int, bbox []float64, resolutions []float64) int

func LatitudeToTile

func LatitudeToTile(lat float64, z int) int

func LongitudeToTile

func LongitudeToTile(lon float64, z int) int

func TileToBoundingBox

func TileToBoundingBox(z int, x int, y int) []float64

func TileToLatitude

func TileToLatitude(y int, z int) float64

func TileToLongitude

func TileToLongitude(x int, z int) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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