Skip to content

Instantly share code, notes, and snippets.

@ear7h
Last active November 8, 2019 00:04
Show Gist options
  • Save ear7h/fe93e623c916e43485ceb5c58bdcf16b to your computer and use it in GitHub Desktop.
Save ear7h/fe93e623c916e43485ceb5c58bdcf16b to your computer and use it in GitHub Desktop.
Epsilons currently (7-NOV-2019) used in tegola
z | ε
0 | 156543.03
1 | 78271.52
2 | 39135.76
3 | 19567.88
4 | 9783.94
5 | 4891.97
6 | 2445.98
7 | 1222.99
8 | 611.50
9 | 305.75
10 | 152.87
11 | 76.44
12 | 38.22
13 | 19.11
14 | 9.55
15 | 4.78
16 | 2.39
17 | 1.19
18 | 0.60
19 | 0.30
20 | 0.15
21 | 0.07
z | ε
0 | 97839.40
1 | 48919.70
2 | 24459.85
3 | 12229.92
4 | 6114.96
5 | 3057.48
6 | 1528.74
7 | 764.37
8 | 382.19
9 | 191.09
10 | 95.55
11 | 47.77
12 | 23.89
13 | 11.94
14 | 5.97
15 | 2.99
16 | 1.49
17 | 0.75
18 | 0.37
19 | 0.19
20 | 0.09
21 | 0.05
package main
import (
"fmt"
"github.com/go-spatial/geom/slippy"
"github.com/go-spatial/tegola"
)
func main() {
fmt.Printf("z\t| ε\n")
for z := 0; z < tegola.MaxZ; z++ {
tol := slippy.Pixels2Webs(uint(z), tegola.DefaultEpsilon)
fmt.Printf("%d\t| %.2f\n", z, tol)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment