A man who tried to a rape a woman in a Dunedin park and later told police it was because he could not "get a missus" has failed to get his sentence overturned.
Shaun Kahu Leonard, 29, was sentenced in the High Court at Dunedin to preventive detention in March after earlier pleading guilty to assault with intent to rape.
The sentence means he must remain in prison for at least five years, which is the statutory minimum period of preventive detention.
The court was told Leonard had gone to the park, armed with a knife, with the intention of finding a woman to rape in September last year.
He found a 25-year-old woman, pushed her onto the ground and lay on top of her. The victim struggled and yelled at him to get off, which he did when she reached for her mobile phone.
Leonard told police he had intended to rape a woman because he could not "get a missus".
The Court of Appeal granted him leave to appeal against the sentence, despite him filing the appeal out of time.
The court was required to consider any pattern of serious offending, the seriousness of harm to the community, any tendency to commit serious offences in the future, and any efforts to address the causes of offending.
It also had to consider whether a lengthy determinate sentence would be adequate in providing protection for society.
The court noted Leonard had previously been sentenced to nine years and six months in prison for raping a neighbour in 2005. He served seven years of that sentence.
His most recent offending was serious and had involved an assault on a young woman, involving a weapon, in a public place in broad daylight.
A psychologist had also assessed Leonard as being at high risk of sexual reoffending.
The court found a sentence of preventive detention was required and dismissed Leonard's appeal.