So, maybe it's something that should be encouraged; the food those farms and ranches produce would need to be replaced by food grown in more appropriate climates, and we'd need to rethink our recent "local food" movement, in some regards, but agriculture, and particularly animal agriculture, are an ecological disaster almost everywhere they exist. Couple that with limited water resources (where a lot of agriculture takes place in California, Texas, Arizona, and New Mexico) and you've got a recipe for serious problems long-term.
That said, agriculture could also shift. Less water-intensive foods, more foods that are appropriate for the area they're being consumed in.
Anyway, I think solar farms replacing agricultural farms could be a net win for the environment, even before considering the improvements that come from turning off coal-fired plants.
In that case, the government may technically be able to solve the problem in a way that's better for everyone, but not willing to, as the politicians who make the change could lose their campaign donations or their seats.
Ships and rail both favour crops which store well (grains) or can be shipped frozen or refrigerated. For fresh fruit and vegetables, time is critical, and you generally want to be on store shelves within at most a few days. That's where trade-offs between location, farming costs (particularly for greenhoused or hydroponic farming) vs. transport start to get factored in. There are reasons why a generation ago you simply didn't have fresh produce out of season.
http://solarbuildermag.com/news/church-farm-school-in-pennsy...
On the other hand, wind farms have a tiny footprint so that's already a major thing in some areas.
This has been a dramatic change in the US midwest landscape over the last decade. When driving through Iowa or Kansas these days, the horizon is constantly dotted with wind turbines nestled in amongst the corn fields or livestock pastures. 15 years ago this was NOT the case.
We do not have a shortage of land or places to put solar panels. Land is cheap, cheap, cheap compared to the other costs of solar panels.
There is no need to come up with fancy schemes to convert roads or windows or farms or whatever to solar panels. We aren't running out of land for them any time soon.
http://watchdog.org/191942/critics-want-sunshine-huge-mn-sol...
http://www.startribune.com/big-solar-parks-proposed-for-minn...
Including "prime" farmland:
http://www.mprnews.org/story/2016/02/03/opponents-want-minne...
Note that at the moment upfront costs (the panels) are so expensive it will be a long time before solar panel 'fields' would become any significant fraction of total arable land. I.E. a simple few acre farm field might be worth a couple hundred thousand euros, but totally filling it with panels might cost billions.
The questions was what it would cost a farmer, not farmer in place where it's obviously illegal?
What...
You are only allowed to setup photovoltaic panels if you have plants below them (asparagus and some flowers grow fine, apparently).
I have no idea why.
In Oregon, here's the list of allowed uses of farmland: http://www.oregonlaws.org/ors/215.213
You could probably install solar panels for the purpose of powering your house and farm equipment, but you couldn't install solar panels everywhere and sell the electricity to the public:
"Utility facilities necessary for public service, including wetland waste treatment systems but not including commercial facilities for the purpose of generating electrical power for public use by sale or transmission towers over 200 feet in height."
It's not just a local thing: Maybe there are places where it doesn't hold, but the government wants to ensure the US isn't dependent on other countries for food. So it puts restrictions on the farmland to ensure that there's always enough food available.
OTOH, if by 'farmland', you meant 'desert in Nevada', I can't imagine anyone would care if you bought it up and installed panels there.