Any county may pay burial expense of persons described in § 33A-5-7 for any such burial if the person dies in the county or has legal residence in the county at the time of death and if the relatives or friends of the deceased furnish affidavits acceptable to a circuit judge for the county that the estate of the decedent is not sufficient to defray the funeral expense.
SDCL 33A-5-9