If your city ordinance designates possession of marijuana as simply as a violation of the city ordinance and not a violation of your state's penal code then from what you have written, a violation of your municipality's ordinance is a civil as opposed to a criminal offense.