Given the time constraints and demanding precision requirements of railway measurements, traditional measurement methods struggle to meet the inspection needs for the future expansion and renovation of extensive rail networks. This paper presents a railway data collection and processing system developed by using mobile laser scanning technology. To address the issue of error accumulation exceeding predefined limits in the positioning algorithm, we conducted a comprehensive study and utilized smoothing algorithms to correct acceleration and attitude angles. This optimization process not only enhances trajectory data but also improves the accuracy of the point cloud. The results indicate that this system holds significant importance in the realms of railway digital survey and design, as well as digital renovation and related areas.