It's not right to touch a female's body, especially with male genitalia, without consent and a man in New Zealand is about to learn this the hard way.

An elected councilor is standing trial for allegedly touching a female council staff with his penis.

David Scott from Kapiti, near Wellington, had his penis measured in a New Zealand courthouse on Tuesday after the woman, accusing him of indecent assault, gave evidence about the size of his member.

The 72-year-old has pleaded not guilty to the incident that happened at an event in 2017.

Also read: 2019: Buhari, Atiku 'Too Old' To Contest - Northern Coalition

The woman said the object she felt touch her back was four to five inches (10-12 centimetres) long, the stuff.co.nz news site reported.

In a highly unusual move, judge Peter Hobbs then allowed Scott's doctor to take the 72-year-old to the court's holding cells to measure his penis with a wooden ruler.

Hobbs suppressed the resulting measurement from public disclosure, Radio New Zealand reported.

Scott's defence argues that the complainant, who has not been named, felt his wallet accidentally touch her as he moved past.

But the accuser said the offending object pressing into her back could not have been a wallet, phone or insulin kit, and was in fact male genitalia.

The trial continues.

ALSO WATCH: Irewe - Behind The Lagos Mega City