Former police officer Jeremy Buis sent anonymous text messages featuring gay slurs and photos of penises.

A police constable has resigned after being found guilty of a two-year-long harassment campaign.

Jeremy Buis, 39, had been suspended from active duty since 2015 after he was charged with criminal harassment, threatening to do grievous bodily harm and intentional damage.

He was found guilty in a judge alone trial in April, and lost suppression of his occupation in July.

HAMISH McNEILLY/STUFF Daniel Pryde was the victim of a harassment campaign by police officer Jeremy Fraser Buis.

Southern district commander Superintendent Paul Basham confirmed in a statement to Stuff that Buis had resigned

READ MORE:

* 'I did my homework on him,' says government employee accused of harassment

* Government employee found guilty of almost three-year harassment campaign

* Jeremy Buis named as Government employee who waged two-year harassment war

"This resignation came prior to an agreed meeting with myself, scheduled for this Friday, regarding the outcome of the employment investigation."

KEVIN STENT/STUFF Superintendent Paul Basham has issued a statement after constable Jeremy Buis resigned from police.

As Buis no longer worked for New Zealand police, Basham said he was "now in a position to be able to comment on his conduct, which has been a matter of public interest for some time now".

"The actions of Buis were disgraceful."

Buis spray-painted the name of his victim, Danny Pryde, and his phone number in places where homosexual men hung out around Dunedin.

HAMISH McNEILLY/STUFF Jeremy Buis leaves court after his trial.

He also sent anonymous text messages to Pryde featuring gay slurs and photos of penises.

"This behaviour does not reflect on the actions of other staff in the Southern policing district," Basham said.

Earlier this week, Basham said the actions of some Southern District officers had overshadowed the good work his officers did every day.

"We want the public to have high levels of trust and confidence in us and our officers work hard every day to provide a quality service to members of the public," he said.

"We understand the actions of one officer can impact on the reputation of the whole organisation.

"For that reason, these types of matters are always investigated impartially to the highest standard, with a view to holding staff accountable if they have committed a criminal offence or not acted in accordance with our values.

"I want to take this opportunity to reassure the public that this kind of behaviour will never be condoned by me, or by the other good men and women who collectively make up the Southern policing district," Basham said.

Buis was sentenced to 200 hours of community work and ordered to pay emotional harm reparations of $15,000.

After his trial, he was let out through an alternative court exit to avoid his victim and awaiting media.