Apparently the risk taken while walking on/near railroads does not match the need for taking beautiful photos.
One man was killed and another two injured while taking photos on a train trestle in Santa Barbara.
According to Santa Barbara County Fire Department spokesman Mike Eliason the 4 people foreign students were standing on a trestle which bridges a coastal canyon taking pictures. when an Amtrak train came near they tried to get off the trestle, but did not make it.
Only a month ago a wedding party escaped a close encounter with a train in what Reddit commenter city_nightowl pointed out to be more than a few isolated incidents. There have been many similar cases over the last few years: