A man was using his camera to photograph a train parked on the tracks.