def list_tiles(query, zoom_adjust):
 resolution = (sum(query.resolution) / 2)
 diff = ((_log(resolution) / _log(2)) - zoom_adjust)
 zoom = round((meter_zoom + diff))
 scale = (2 ** zoom)
 mincol = int((scale * ((query.bbox.minx / diameter) + 0.5)))
 maxcol = int((scale * ((query.bbox.maxx / diameter) + 0.5)))
 minrow = int((scale * (0.5 - (query.bbox.maxy / diameter))))
 maxrow = int((scale * (0.5 - (query.bbox.miny / diameter))))
 (cols, rows) = (range(mincol, (maxcol + 1)), range(minrow, (maxrow + 1)))
 return [dict(z=zoom, x=col, y=row) for (col, row) in product(cols, rows)]

def list_tiles ( query , zoom_adjust ) : resolution = ( sum ( query . resolution ) / 2 ) diff = ( ( _log ( resolution ) / _log ( 2 ) ) - zoom_adjust ) zoom = round ( ( meter_zoom + diff ) ) scale = ( 2 ** zoom ) mincol = int ( ( scale * ( ( query . bbox . minx / diameter ) + 0.5 ) ) ) maxcol = int ( ( scale * ( ( query . bbox . maxx / diameter ) + 0.5 ) ) ) minrow = int ( ( scale * ( 0.5 - ( query . bbox . maxy / diameter ) ) ) ) maxrow = int ( ( scale * ( 0.5 - ( query . bbox . miny / diameter ) ) ) ) ( cols , rows ) = ( range ( mincol , ( maxcol + 1 ) ) , range ( minrow , ( maxrow + 1 ) ) ) return [ dict ( z = zoom , x = col , y = row ) for ( col , row ) in product ( cols , rows ) ]
get a list of tile coordinates .