There was a court case involving a woman who got a heel of one of her shoes caught in a sidewalk grating, fell, and injured herself. The city subsequently passed this law in order to protect itself from future litigation.
175-10. Indecent dress or exposure. It shall be unlawful for any person to appear in any street or public place in a state of nudity or in a dress not belonging to his sex or in an indecent or lewd dress, or to make any indecent exposure of his person or be guilty of any…