。
There's plenty of time to catch the train.
Literal
Train [to-に] ride [for-のに] sufficient time [subject-が] exists.
のに here is the purposive 'in order to, for the purpose of' — built from the nominalizer の + に. Distinct from the contrastive conjunction のに ('even though'). The pattern [verb plain form]+のに+十分 = 'enough to X.' 乗る takes に for the vehicle you board.