Skip to content
John Hoffer edited this page Mar 17, 2017 · 2 revisions

Constructor Args

from QueryLayer import *
query = TileQuery(*args)

The args are of a simple list with at least:

args = [
    __query__,
    __xy_index__,
    __start__,
    __end__
]
'''
Where:
    isinstance(__query__, DataQuery)
    in_bounds = lambda bounds,arg: all(0 <= arg) and all(arg <= bounds) 
    
    in_bounds(__query__.tiled_bounds, np.array(__xy_index__))
    in_bounds(__query__.blocksize, np.array(__start__))
    in_bounds(__query__.blocksize, np.array(__end__))
'''

Version 2

Version 1

Clone this wiki locally