When sentence is for a violation of an ordinance, bylaw, or regulation of a municipality or civil township, the labor described by §§ 24-11-28 and 24-11-29 shall be performed under the direction of its governing body, who shall furnish the materials at the expense of the municipality, or civil township entitled to the benefit thereof, subject to the provisions of this chapter.
SDCL 24-11-31