Takes the extent of the tiles and returns a list of which tiles to do.

task_work_from_tiles(tiles)

Arguments

tiles

A list of tiles as a 2xN matrix.

Value

An array that's 2 x the number of tiles. It's row, col. Assumes that all work is done by the same process. This orders the work so that it uses cache better.