I'm an avid railfan living in Canada (Vancouver area) and so far I haven't seen anything like this up here. As long as I respect the fact that railroad property "is" private and shoot from the sidelines, so to speak, I haven't had any issues myself.
Over the years my attitude has changed significantly. In the 80s I thought nothing of walking the rails, climbing cars and wandering freely through yards. Today that has all changed--terrorism (perceived or real), liability and vandalism have completely altered the relationship between railroads and fans. I accept this and find that it's still easy to get lots of good shots from publicly accessible sites but I do encounter the odd person who feels it's their divine right to shoot anywhere, anyplace, anytime and I do think they're the ones having the most problems.
Being harassed if you're shooting from public property is another issue and it is, to say the least, troubling. Railfan & Railroad Editor Steve Barry was recently arrested and handcuffed on a New York City subway platform while waiting to photograph an historical train special. A judge apparently immediately threw out the charges but the incident illustrates the attitude of some law enforcement/security people and the issues that exist between them and railfans and/or photographers in general. We haven't heard the end of this by a long shot...