def rowcol(x, y, affine, op=math.floor):
    r = int(op((y - affine.f) / affine.e))
    c = int(op((x - affine.c) / affine.a))
    return r, c
Pre change (save/delete) signal handler.
dataset/ETHPy150Open perrygeo/python-rasterstats/src/rasterstats/io.py/rowcol--crossover with--dataset/ETHPy150Open django-ddp/django-ddp/dddp/api.py/DDP.on_pre_change