It could make sense along an electrified rail line, if the power lines used to supply the trains can be leveraged for distribution?
But, putting panels between the rails seems foolhardy to me too.