The mayor and council of the City of Woodbury shall have the right of laying the necessary mains, pipes, conduits and drains for waterworks and sewer purposes, and the right to erect post poles and wires for the purpose of conveying electricity and lighting said city, said rights to apply to the public highways of the County of Meriwether, and over and across and under the land of persons and corporations upon payment of just compensation that may be agreed upon or assessed as provided in said chapter 9 of volume 1 of Code of 1910 of this State.