makinacorpus / landez

Landez operates with tiles, arranges them together into images or builds MBTiles files
GNU Lesser General Public License v3.0
135 stars 52 forks source link

Use namedtuple for tiles #15

Open leplatrem opened 12 years ago

leplatrem commented 12 years ago
   from collections import namedtuple

   Tile = namedtuple('Tile', 'z x y')
   t = Tile(x=2, y=3, z=1)
   z, x, y = t
   t = Tile(z, x, y)
   assert t.x == t[1]