. . . . "To purchase, hold, enter upon, take possession of, and use all such real estate, franchise and other property, as may be necessary for the construction, maintenance and accommodation of its line of road; but the same shall not be taken or appropriated without the consent of the owner until the compensation to be made therefor is agreed upon or ascertained, and paid or deposited as provided by law." .