A man has been jailed for 16 months for attacking two police officers in what was described by their sergeant as one of the worst assaults on officers he had seen.