Each railroad authorized to construct, operate, or maintain a road within this state may enter upon any land for the purpose of examining and surveying its road, and may take, hold, and appropriate so much real property as may be necessary for the location, construction, and convenient use of its road, including all necessary grounds for buildings, stations, workshops, depots, machine shops, switches, sidetracks, snow defenses, and water stations. It may take all materials for the construction of the road and its appurtenances, and the right of way over adjacent land sufficient to enable the railroad to construct and repair its road. The railroad may obtain the right to such real property by purchase or condemnation in the manner provided by law.
SDCL 49-16A-78