In [1]:
import sift.tests.gltiles as glt
ttl = glt.TestTileLayer()
c = ttl._calc
import sift.tests.gltiles as glt
ttl = glt.TestTileLayer()
c = ttl._calc
wb,wl,wt,wr=glt.WORLD_EXTENT_BOX
dy,dx = c.pixel_rez
(wt-wb)/dy, (wr-wl)/dx
(2048.0, 8192.0)
c.visible_tiles(glt.WORLD_EXTENT_BOX)
(0, box(b=0, l=0, t=2, r=11))
c.tile_world_box(2,11)
box(b=5005866.647338867, l=17535265.922424316, t=10006849.522338867, r=20039954.484924316)
glt.WORLD_EXTENT_BOX.t
10001965.75