If by a judgment or agreement a district is required to relocate any road, railroad, canal, or other property subject or devoted to public use, the district may acquire all property necessary to comply with the agreement or judgment and make conveyances of the relocated road, railroad, canal, or other property to comply with the agreement or judgment.