Which is the basis of XXX?
Thomas and the Magic Railroad
Thomas and the Magic Railroad is a 2000 British-American-Canadian adventure fantasy film based on the British TV series Thomas & Friends, The Railway Series by the Rev. W. Awdry, and the American TV series Shining Time Station.
The Railway Series