Skip to content

Instantly share code, notes, and snippets.

@dnomadb
Created January 28, 2015 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnomadb/44e54e354063cfc1afc0 to your computer and use it in GitHub Desktop.
Save dnomadb/44e54e354063cfc1afc0 to your computer and use it in GitHub Desktop.
z = 3
for t in range(2 ** z):
tbbox = mercantile.bounds(t, t, 3)
childSt = mercantile.tile(tbbox.west, tbbox.north, 11)
childEnd = mercantile.tile(tbbox.east, tbbox.north, 11)
print childSt
Tile(x=0, y=-1, z=11)
Tile(x=256, y=256, z=11)
Tile(x=512, y=511, z=11)
Tile(x=768, y=768, z=11)
Tile(x=1024, y=1024, z=11)
Tile(x=1280, y=1280, z=11)
Tile(x=1536, y=1536, z=11)
Tile(x=1792, y=1792, z=11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment