Text this: Modeling of Compound Curves on Railway Lines