The Thai military gained control of the railway in 1942 , during World War II .
The line was nationalised by the Thai Government in 1946 .
The Thai military gained control of the railway in 1942 , during World War II , and the line was nationalised by the Thai Government in 1946 .