NEW Locomotives/Trains DO
GPS tells you where you are. It does not see the tree blown across the track . They do now have systems that locate the train and can search out for things like an allowed train speed and the system adjusts the speed.
You make it sound like remembering a train route is like driving a car with many options to turn every few hundred yards at the next corner.
They DO NOT memorize EVERYTHING they do know a lot. Just knowing where they are is just a small part of it.
The weight and length of train for freight. An express or local passenger train.
I would much rather have the Engineer paying attention then depending on the machine to do things and they just read a book and eat their lunch in the front seat enjoying the scenery. Mechanical things and electronic things can malfunction. Nice to have a Human that knows what he is doing in case of a malfunction.
There are train systems that operate without a driver in the Front seat.
https://www.youtube.com/watch?v=e1gE4aoJRw0
A GPS unit cannot help a Passenger in distress.
https://www.youtube.com/watch?v=kD9Wks3bZSM
https://www.youtube.com/watch?v=a52ZSCIAoRk
The extreme high speed train depend on it as the driver cannot see far enough ahead.
There has been driver less "train cars" for many many years. Maybe you should research Morgan town Their system has no drivers and was built in 1970. Not really a train but works similar to one.
https://www.youtube.com/watch?v=Dm31tZsnqhE