Trajectory Optimisation For A Rail-Based Ttrack Surveying System