Thousands of New York policemen paid homage Saturday at the funeral of officer Rafael Ramos, shot dead on December 20 alongside colleague Wenjian Liu in an apparent revenge attack for recent police killings of unarmed black men.