Just for the sake of trivial knowledge (your comment is obviously correct that it varies) it is actually forbidden in Sardinia (Italy) to replace farmland with solar power fields.
You are only allowed to setup photovoltaic panels if you have plants below them (asparagus and some flowers grow fine, apparently).
The questions was what it would cost a farmer, not farmer in place where it's obviously illegal?
What...