Local and global spline approximation with quasi-interpolants