This will never work. A typical Panamax ship carries 4800 containers. A typical freight train carries 240. You need 20 trains for each ship; at 2km per train, that’s a continuous line of 40km. In reality trains need at least 10km between them, so that’s 240km. But you need slack in the system, otherwise any hiccup results in a huge jam. So realistically the maximum capacity of such a railway is one Panamax per day and direction. What fees can you charge to cover the operating costs and the capital financing costs? And to hope to be competitive with the canal?