def _chunk_polys(id_pairs, geoms_left, geoms_right, n_jobs):
    chunk_size = ((id_pairs.shape[0] // n_jobs) + 1)
    for i in range(n_jobs):
        start = (i * chunk_size)
        chunk1 = geoms_left.values.data[id_pairs[start:(start + chunk_size), 0]]
        chunk2 = geoms_right.values.data[id_pairs[start:(start + chunk_size), 1]]
        (yield (chunk1, chunk2))
def _chunk_polys(id_pairs, geoms_left, geoms_right, n_jobs):
    chunk_size = ((id_pairs.shape[0] // n_jobs) + 1)
    for i in range(n_jobs):
        start = (i * chunk_size)
        chunk1 = geoms_left.values.data[id_pairs[start:(start + chunk_size), 0]]
        chunk2 = geoms_right.values.data[id_pairs[start:(start + chunk_size), 1]]
        (yield (chunk1, chunk2))