Or don’t put the panels near a railway at all. We have so much land and even empty rooftops that would be easier and safer to use first. Running panels along a railway means the electricity has to be carried all the way back to some point, meaning either giant cables to handle the current or specialized equipment and high voltage transmission lines. None of that was addressed by this pilot program that was 100 meters long.
You can do a pilot test of solar panels anywhere and call it a success, but the real test is scaling it up in an economically viable way compared to alternatives. None of that was tested.
Putting panels in a line is the worst arrangement. Just put them on roof tops or fields and keep it to places where they don’t have to be armored and reinforced.
Conveniently, there's already an electric cable sized to transport a few MW nearby. This might reduce the cost of installation, also there'll be no land acquisition/impact study issues.
However, I agree that putting solar panels in between or near rails will increase the cost of maintenance: the technicians will need to travel longer times to the work site, and now they also need to be certified to work near railroads.