A city ordinance is not a crime. It is not even a misdemeanor.
You are correct possession on school property is a felony. However, the original post said you were driving by the school. The street is not school property. It is a public throrofare. IANAL but I'd argue the sidewalk by the school is also a public thorofare and not considered school property.