Re: And removable.
maintenance is relatively easy:
o As already pointed out, maintenance trains exist.
o Panels are always in the same position relative to a maintenance vehicle (at least when considering 'precision' for any civil engineering project).
o Cleaning & inspection could be a simple matter of running a cleaning train (or a specific cleaning 'car' appended to a relatively slow moving service)
o Track inspection is already done on high speed engineering trains in the UK (see "flying banana" )
o Adding (semi-)Automated panel lift and lower to ballast trains shouldn't add time to existing re-ballast operations
o It would require additional resources (crew and specialist rail-cars)
As long as the cap-ex / op-ex comes in less than the cost of power generated everyone is a winner
And yes you would expect vandalism, but you would factor that in (and add some defence for it) - but this is no different from a solar farm or adding solar to existing railway infrastructure
And yes you need to factor in possible theft of cables for the copper - again see above, this is no different from a solar farm or existing railway infrastructure (indeed on a busy line possibly less likely given that you don't get much time to nick things before being splatted by an oncoming train that wouldn't notice a squishy meet-bag getting in the way until its next cleaning cycle....
Oh and finally - the railways already exist, so these linear solar farms wouldn't need to replace fields in an actual farm :-)