(1) Each county surveyor and each deputy of the county surveyor shall be entitled to receive for his or her services, a compensation of not more than $8.00 per day, or the salary as the county board of commissioners fixes, including the time of traveling to and from the place of making the survey, together with all necessary expenses incurred in the discharge of official duties, and 50 cents for recording each description, and 50 cents for each certificate or copy of a certificate, to be paid by the person for whom the services are rendered. The county surveyor or a deputy shall not be liable to prosecution in an action of trespass for entering upon land in the discharge of an official duty.
  (2) Notwithstanding subsection (1), for a county which has a county officers compensation commission, the compensation of the county surveyor of that county shall be determined by that commission.