The NSW Police Association has called for magistrates and judges "to spend some time on the beat to see what police deal with" after a controversial magistrate dismissed charges against a man who allegedly called two officers "f---ing pigs".

On March 29, magistrate Pat O'Shane dismissed charges laid against Andrew John Armstrong that he assaulted police, resisted arrest and behaved in an offensive manner on June 9 last year.

The decision has outraged the NSW Police Association, which says that modern-day magistrates are "out of touch".

The Manly Daily reported that police allege Mr Armstrong was angry about a lack of public transport just after 1am and stood in the middle of Belgrave Street, Manly, and encouraged a drunken crowd to join him.

The Daily reported that the crowd then crowded a police vehicle.