Data processing and graph plotting method for clearance section above existing railway tunnel rail surface
By processing the clearance cross-sectional data above the railway tunnel rail surface using total station measurement and spline interpolation algorithms, the problems of low efficiency and easy introduction of errors in existing technologies are solved, and efficient and accurate tunnel cross-section drawing is achieved.
Patent Information
- Application Number
- CN202511745774.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-26
- Publication Date
- 2026-04-28
AI Technical Summary
Existing technologies are inefficient and prone to human error when processing data on the clearance cross-section above the railway tunnel track surface, resulting in discrepancies between the final cross-sectional drawing and the actual situation.
Cross-sectional data were obtained by measuring with a total station. The coordinates of the center stake were calculated, the cross-sectional points were sorted, and the points were densified by spline interpolation algorithm. The net cross-sectional diagram was drawn by combining computer-aided design software.
It enables efficient processing of tunnel cross-section measurement data, fully restores the outline of the tunnel's clearance cross-section above the track surface, and improves the efficiency and accuracy of data processing and mapping.
Smart Images

Figure CN121936100A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of cross-sectional data processing technology, specifically relating to a method for processing and graphic plotting cross-sectional data of the clearance above the track surface of existing railway tunnels. Background Technology
[0002] The domestic railway industry is currently in a development stage that emphasizes both new construction and upgrading, with electrification projects on existing old railway lines continuing to advance. Tunnels, as key structures on railway lines, have their internal clearance directly affecting traffic safety. The cross-sectional view above the rail surface is a fundamental drawing describing the spatial relationship between the tunnel's internal contour and the clearance limits of locomotives and rolling stock. It serves as the core basis for tunnel clearance inspection, defect investigation, capacity expansion, equipment installation, and the formulation of plans for transporting oversized and overweight goods. When designing electrification upgrade projects for existing tunnels using structures such as the arched cantilever contact wire suspension system, the design must utilize the cross-sectional view above the tunnel rail surface for contact wire structure installation analysis to meet the structural installation space requirements.
[0003] Traditional methods for tunnel cross-section measurement mainly rely on "clearance inspection frames" or "total station point-to-point measurements." While the former can visually determine whether there is encroachment, it cannot obtain complete cross-section morphology data, resulting in low efficiency and severely impacting traffic. The latter relies on manually entering measurement data into a computer and then manually connecting lines to form a map using software such as CAD. This process is not only labor-intensive and time-consuming, but also highly susceptible to human error during data transcription and graphic drawing, leading to discrepancies between the final cross-section drawing and the actual tunnel conditions. Summary of the Invention
[0004] To overcome the shortcomings of existing technologies, this invention provides a method for processing and graphically plotting the clearance cross-section data above the track surface of existing railway tunnels, thereby achieving efficient processing of tunnel cross-section measurement data and restoring the outline of the clearance cross-section above the track surface of the tunnel.
[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A method for processing and graphically plotting data of the clearance section above the track surface of existing railway tunnels, comprising the following steps: S1: Read the measurement data of the clearance section above the track surface of existing railway tunnels; S2: Processing measurement data of the clearance section above the track surface of existing railway tunnels; S3: Draw a cross-sectional view of the clearance above the track surface of an existing railway tunnel.
[0006] Furthermore, step S1, which involves reading the measurement data of the clearance section above the track surface of an existing railway tunnel, specifically includes: Cross-sectional data were obtained using a total station. The cross-sectional data included the point name, X coordinate, Y coordinate, and Z coordinate of the cross-sectional points. The track surface points were named as: mileage_zg and mileage_yg. The first cross-sectional point was named as: mileage_1, and the subsequent point names were automatically incremented by 1.
[0007] Furthermore, step S2 processes the measurement data of the clearance section above the track surface of existing railway tunnels, specifically as follows: S2.1: Calculate the coordinates of the center pile of the current section based on the coordinates of the track points on the left and right rails; S2.2: Arrange the cross-section points in ascending order according to the angle between the "cross-section point-center stake" vector and the "left rail-right rail" vector; S2.3: Calculate the offset and relative elevation of all cross-section points to the center pile, and use them as the corresponding plane coordinates. The coordinates of the center pile are (0,0). S2.4: Encrypted cross-sectional points; S2.5: Solve for the coordinates of the two intersection points of the straight line containing the "left rail - right rail" and the polyline of the section point.
[0008] Furthermore, the specific calculation formula for step S2.2 is as follows: in, Let be the vector from the i-th cross-section point to the center stake. Let be the vector from the left rail to the right rail. θ for and The included angle.
[0009] Furthermore, step S3 involves drawing a cross-sectional view of the clearance above the track surface of an existing railway tunnel, specifically as follows: Connect all sampling points clockwise to form multiple line segments.
[0010] Furthermore, in step S2.4, a spline interpolation algorithm is used to encrypt the cross-sectional points.
[0011] Furthermore, in step S3, all sampling points are connected clockwise in the order of "center stake - left rail - left intersection point - cross-section point - right intersection point - right rail - center stake" to form a multi-segment line.
[0012] The beneficial effects of this invention are: This invention efficiently processes tunnel cross-section measurement data, restoring the outline of the tunnel's clearance cross-section above the track surface as completely as possible, thus solving the problem of low efficiency in data processing and mapping in existing technologies. Attached Figure Description
[0013] Figure 1 This is a flowchart of the process of the present invention; Figure 2This is an example of the clearance cross-sectional data above the track surface of an existing railway tunnel according to the present invention; Figure 3 The interface for plotting the clearance section above the track surface of existing railway tunnels; Figure 4 A cross-sectional view of the clearance above the track surface of an existing railway tunnel, plotted based on the original measurement data; Figure 5 This is a cross-sectional view of the clearance above the track surface of an existing railway tunnel after spline interpolation. Detailed Implementation
[0014] The present invention will now be described in detail with reference to specific embodiments.
[0015] The present invention will now be described more fully with reference to the accompanying drawings, which illustrate preferred embodiments of the invention. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a thorough and complete understanding of the disclosure of the invention.
[0016] It should be noted that similar reference numerals and letters indicate similar items; therefore, once an item is defined in one embodiment, it does not need to be further defined and explained in subsequent embodiments. Furthermore, the terms "comprising" and any variations thereof are intended to cover non-exclusive inclusion; for example, a process or method that includes a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes or methods.
[0017] It should also be noted that although the order of steps is mentioned in the method description, in some cases, they may be performed in a different order than that described here, and this should not be interpreted as a restriction on the order of steps.
[0018] This invention provides a method for processing and graphically plotting data of the clearance section above the track surface of existing railway tunnels. It efficiently processes tunnel cross-section measurement data and restores the outline of the clearance section above the track surface of the tunnel as completely as possible, solving the problem of low efficiency in data processing and plotting in the prior art.
[0019] like Figure 1 As shown, the present invention provides a method for processing and graphically plotting data of the clearance section above the track surface of existing railway tunnels, comprising the following steps: S1: Read the measurement data of the clearance section above the track surface of existing railway tunnels; specifically: Cross-sectional data is obtained using a total station measurement method that does not require station setup. The cross-sectional data must include at least the name of the cross-sectional point, its X coordinate, Y coordinate, and Z coordinate. The track point names are named as follows: mileage_zg (left track) and mileage_yg (right track). For example, the left track point at K53+000 is named "53000_zg". The first cross-sectional point is named as: mileage_1, such as "53000_1", and the subsequent point names are automatically incremented by 1.
[0020] S2: Processing measurement data of the clearance section above the track surface of existing railway tunnels; specifically: S2.1: Calculate the coordinates of the center pile of the current section based on the coordinates of the track points on the left and right rails; S2.2: Arrange the cross-section points in ascending order according to the angle between the "cross-section point-center stake" vector and the "left rail-right rail" vector; the specific calculation formula is as follows: in, Let be the vector from the i-th cross-section point to the center stake. Let be the vector from the left rail to the right rail. θ for and The included angle.
[0021] S2.3: Calculate the offset and relative elevation of all cross-section points to the center pile, and use them as the corresponding plane coordinates. The coordinates of the center pile are (0,0). S2.4: Use spline interpolation algorithm to densify cross-sectional points; S2.5: Solve for the coordinates of the two intersection points of the straight line containing the "left rail - right rail" and the polyline of the section point.
[0022] S3: Draw a cross-sectional view of the clearance above the track surface of an existing railway tunnel, specifically: Connect all sampling points clockwise in the order of "center stake - left rail - left intersection point - cross-section point - right intersection point - right rail - center stake" to form a multi-segment line, and draw it in computer-aided design software.
[0023] The specific implementation method is as follows: S1: Read the measurement data of the clearance section above the track surface of existing railway tunnels; like Figure 2 , 3 As shown, click "Exhibit Tunnel Cross Section" on the main interface of the developed program, and a dialog box for selecting a data text file will pop up. Enter the data of the clearance cross section above the track surface of the existing railway tunnel collected by a total station that does not require station setup. S2: Processing measurement data of the clearance section above the track surface of existing railway tunnels; Following step S2, the program automatically processes the measured data of the clearance section above the track surface of existing railway tunnels: S3: Draw a cross-sectional view of the clearance above the track surface of an existing railway tunnel, such as... Figure 4 , 5 As shown.
[0024] The content of this invention is not limited to the embodiments listed. Any equivalent modifications made by those skilled in the art to the technical solutions of this invention by reading this specification are covered by the claims of this invention.
Claims
1. A method for processing and graphically plotting data of the clearance section above the track surface of existing railway tunnels, characterized in that: Includes the following steps: S1: Read the measurement data of the clearance section above the track surface of existing railway tunnels; S2: Processing measurement data of the clearance section above the track surface of existing railway tunnels; S3: Draw a cross-sectional view of the clearance above the track surface of an existing railway tunnel.
2. The method for processing and graphically plotting the clearance cross-section above the track surface of an existing railway tunnel according to claim 1, characterized in that: The specific steps of step S1, which involve reading the measurement data of the clearance section above the track surface of an existing railway tunnel, are as follows: Cross-sectional data were obtained using a total station. The cross-sectional data included the point name, X coordinate, Y coordinate, and Z coordinate of the cross-sectional points. The track surface points were named as: mileage_zg and mileage_yg. The first cross-sectional point was named as: mileage_1, and the subsequent point names were automatically incremented by 1.
3. The method for processing and graphically plotting the clearance cross-section above the track surface of an existing railway tunnel according to claim 2, characterized in that: Step S2, which processes the measurement data of the clearance section above the track surface of existing railway tunnels, specifically involves: S2.1: Calculate the coordinates of the center pile of the current section based on the coordinates of the track points on the left and right rails; S2.2: Arrange the cross-section points in ascending order according to the angle between the "cross-section point-center stake" vector and the "left rail-right rail" vector; S2.3: Calculate the offset and relative elevation of all cross-section points to the center pile, and use them as the corresponding plane coordinates. The coordinates of the center pile are (0,0). S2.4: Encrypted cross-sectional points; S2.5: Solve for the coordinates of the two intersection points of the straight line containing the "left rail - right rail" and the polyline of the section point.
4. The method for processing and graphically plotting the clearance section above the track surface of an existing railway tunnel according to claim 3, characterized in that: The specific calculation formula for step S2.2 is as follows: in, Let be the vector from the i-th cross-section point to the center stake. Let be the vector from the left rail to the right rail. θ for and The included angle.
5. The method for processing and graphically plotting the clearance cross-section above the track surface of an existing railway tunnel according to claim 4, characterized in that: Step S3 involves drawing a cross-sectional view of the clearance above the track surface of an existing railway tunnel, specifically by connecting all sampling points clockwise to form multiple line segments.
6. The method for processing and graphically plotting the clearance section above the track surface of an existing railway tunnel according to claim 5, characterized in that: In step S2.4, spline interpolation algorithm is used to encrypt the cross-sectional points.
7. The method for processing and graphically plotting the clearance cross-section above the track surface of an existing railway tunnel according to claim 6, characterized in that: In step S3, all sampling points are connected clockwise in the order of "center stake - left rail - left intersection point - cross section point - right intersection point - right rail - center stake" to form a multi-segment line.
