How to solve the Poisson equation div(grad( u(x, y))) = f(x, y) if f(x, y) is a spline function

For example, I have discrete points of f(x, y).