Method for generating railway optical cable path diagram
Through the railway optical cable path path map generation method, the problem of inaccurate optical cable design drawing data is solved, and the generation of optical cable path path maps with high accuracy and versatility is achieved, reducing the workload of manual drawing and improving the safety of railway transportation .
Patent Information
- Application Number
- CN202411274923.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-24
AI Technical Summary
The existing railway optical cable design drawings lack unified management, resulting in inaccurate data and inaccurate judgment of optical cable paths, which often leads to the digging or damage of optical cables, affecting railway transportation efficiency and driving safety.
Provide a railway optical cable path diagram generation method, including data input, preprocessing, coordinate calculation and deformation conversion, drawing generation and output, and use UTM coordinate system and rotation, linear, nonlinear transformation and other methods to generate accurate optical cable paths. picture.
It greatly reduces the drawing of optical cable paths, improves the accuracy and versatility of the graph, adapts to various data input formats and outputs common formats, reducing inaccuracy caused by human factors.
Smart Images

Figure CN119181305A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of generating a railway optical cable path map, and more specifically, to a method for generating a railway optical cable path map. Background Art
[0002] Railway optical cables are important basic equipment to ensure railway driving safety. At present, the optical cables of conventional railways are laid by direct burial, overhead and pipeline, and most of them are laid by trenching and direct burial. At the same time, there are the following problems: 1. Since the design drawings of railway optical cables are schematic diagrams, and there are situations where the design may be changed during the construction process; 2. Due to the long-term lack of unified management of optical cable technical drawings, the data is inaccurate; During the construction of existing railway lines, due to inaccurate judgment of the optical cable path, optical cables are often dug up and damaged, which has a great impact on railway transportation efficiency and driving safety. Therefore, the railway operation and maintenance management department needs an accurate and complete optical cable path plan. The existing optical cable path map is basically drawn and marked manually, and its main reference is the design drawings. It is not accurate enough and has poor usability. At the same time, the workload of drawing the optical cable path map is large.
[0003] Therefore, we propose a method for generating railway optical cable route map to solve the above problems. Summary of the invention
[0004] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a method for generating a railway optical cable path map to solve the problems raised in the above-mentioned background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a method for generating a railway optical cable path map, comprising the following method: Step S1: data input, more specifically, inputting data into the optical cable path data center to facilitate data processing; Step S2: data preprocessing, more specifically, preprocessing the input data to facilitate data conversion; Step S3: coordinate calculation / deformation conversion, more specifically, converting the relevant position data into coordinate positions; Step S4: generating a station field optical cable path diagram, more specifically, displaying the processed data in the form of a drawing; Step S5: outputting the plan view, more specifically, outputting the drawing into different formats.
[0006] In a preferred embodiment, in step S1, the data to be input in this step includes all the equipment data in the station and section that need to be generated graphically, and the data includes but is not limited to location data, equipment name, number, and type.
[0007] In a preferred embodiment, in step S1, the data to be input in this step includes station and section line data, protection network data, and optical cable path data; The data includes but is not limited to location data and type, and the input form of this step includes but is not limited to files and data interfaces.
[0008] In a preferred embodiment, in step S2, the data preprocessing step mainly preprocesses the input data format, type, and encoding; Preprocess the data into a unified data format for subsequent calculations and processing. This method can adapt to and expand different data input formats through data preprocessing.
[0009] In a preferred embodiment, in step S2, the data collected on-site has multiple forms of expression, mainly Excel, Json, and csv formats, and the encoding rules of the data are not uniform; The method of data preprocessing is to write a software interface, which will convert the collected data into a data format that can be processed by subsequent software according to the definition format of the collected data, including but not limited to converting longitude and latitude data from degrees, minutes and seconds to floating point representation, and converting device codes from text descriptions to digital types.
[0010] In a preferred embodiment, in step S2, in data preprocessing, data is first collected on site, and then the format judgment module judges the format, and then the corresponding format is processed, and then the data is uniformly encoded, and then the data format conversion is performed; The data formats are CSV, Json and Excel.
[0011] In a preferred embodiment, in step S3, in the step of coordinate calculation / deformation conversion; Coordinate calculation The present invention adopts the UTM coordinate system calculation method, and its coordinate conversion formula is as follows: E = 500000 + N * 1000000 + (E / 6) * 1000 + (N / 6) * 100 + (E / 3600) * 1+ (N / 180) * 0.00625 = 500000 + E * 1000000 + (E / 6) * 1000 + (N / 6) * 100 + (E / 3600) * 1 + (N / 180) * 0.00625; Where E represents longitude and N represents latitude.
[0012] In a preferred embodiment, in step S3, in the step of coordinate calculation / deformation conversion; Coordinate deformation conversion mainly transforms the coordinates of the equipment, lines, protective nets, and optical cable paths after coordinate calculation according to the rules of the plane diagram, so that the coordinates of the equipment, lines, protective nets, and optical cables conform to the plane diagram display; The coordinate deformation transformation methods include but are not limited to linear transformation, rotation transformation, and self-defined function nonlinear transformation; The main methods of coordinate deformation transformation are rotation, linear transformation, and nonlinear transformation. Rotation is mainly used to rotate data collected at different angles into a horizontal direction according to the line or track direction. The rotation formula is: x = x * cosvalue + y * sinvalue; y = y * cosvalue - x * sinvalue; Linear transformation is mainly stretching, and the stretching parameters are determined by the actual calculation process. Nonlinear transformation is mainly nonlinear compression of data in specific places, which is mainly reflected in: data is directly compressed from a curve to a straight line.
[0013] In a preferred embodiment, in step S4, the station field optical cable path diagram includes generating a station field plan diagram and generating an optical cable path diagram; The steps for generating the station plan and optical cable route map are to use the calculated deformed equipment, lines, protective nets, and optical cable route coordinates as graphic display coordinates, use the equipment and line data required for the station plan to generate the station plan according to the station plan rules, use the equipment and protective nets and optical cable route data required for the optical cable route map to generate the optical cable route map according to the route map rules, and merge the above-generated maps into a complete station plan and optical cable route map.
[0014] In a preferred embodiment, in step S5, the station plan and optical cable route map generated in step S4 are output into different formats, including but not limited to PDF format, Visio format, dxf format, dwg format and svg format.
[0015] Technical effects and advantages of the present invention: The present invention can greatly reduce the work of drawing the optical cable path map. It only needs to input the collected data into the generation software implemented by the method to output the corresponding optical cable path map.
[0016] The optical cable path map generated by the present invention has high accuracy. Since the software tool is used for generation processing, the inaccuracy of the optical cable path map caused by human factors is reduced.
[0017] The present invention has strong versatility, complies with the principle of drawing railway system schematic diagrams, can adapt to various data input formats, and can output various common data formats with strong versatility. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 The present invention is a flow chart of a method for generating a railway optical cable path map; Figure 2 It is a specific embodiment of the method for generating a railway optical cable path map in the present invention; Figure 3 Schematic diagram of the data preprocessing process in the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example
[0020] Reference Figure 1-3 , a method for generating a railway optical cable path map, comprising the following methods: Step S1: data input, more specifically, inputting data into the optical cable path data center to facilitate data processing; In step S1, the data to be input in this step includes all the equipment data in the station and section that need to be generated graphically, which includes but is not limited to location data, equipment name, number, and type; In step S1, the data to be input in this step include station and section line data, protection network data, and optical cable path data; The data includes but is not limited to location data and type. The input form of this step includes but is not limited to files and data interfaces; Step S2: data preprocessing, more specifically, preprocessing the input data to facilitate data conversion; In step S2, the data preprocessing step mainly preprocesses the input data format, type, and encoding; Preprocess the data into a unified data format for subsequent calculations and processing. This method can adapt to and expand different data input formats through data preprocessing; In step S2, the data collected on site has multiple forms, mainly Excel, Json, and csv formats, and the data encoding rules are not uniform; The method of data preprocessing is to write a software interface, which converts the collected data into a data format that can be processed by subsequent software according to the definition format of the collected data, including but not limited to converting longitude and latitude data from degrees, minutes and seconds to floating point representation, and converting device codes from text descriptions to digital types; In step S2, in data preprocessing, data is first collected on site, and then the format judgment module judges the format, and then the corresponding format is processed, and then the data is uniformly encoded, and then the data format is converted; The data formats are CSV, Json and Excel; Step S3: coordinate calculation / deformation conversion, more specifically, converting the relevant position data into coordinate positions; In step S3, coordinate calculation / deformation conversion step; Coordinate calculation The present invention adopts the UTM coordinate system calculation method, and its coordinate conversion formula is as follows: E = 500000 + N * 1000000 + (E / 6) * 1000 + (N / 6) * 100 + (E / 3600) * 1+ (N / 180) * 0.00625 = 500000 + E * 1000000 + (E / 6) * 1000 + (N / 6) * 100 + (E / 3600) * 1 + (N / 180) * 0.00625; Where E represents longitude and N represents latitude; In step S3, coordinate calculation / deformation conversion step; Coordinate deformation conversion mainly transforms the coordinates of the equipment, lines, protective nets, and optical cable paths after coordinate calculation according to the rules of the plane diagram, so that the coordinates of the equipment, lines, protective nets, and optical cables conform to the plane diagram display; The coordinate deformation transformation methods include but are not limited to linear transformation, rotation transformation, and self-defined function nonlinear transformation; The main methods of coordinate deformation transformation are rotation, linear transformation, and nonlinear transformation. Rotation is mainly used to rotate data collected at different angles into a horizontal direction according to the line or track direction. The rotation formula is: x = x * cosvalue + y * sinvalue; y = y * cosvalue - x * sinvalue; Linear transformation is mainly stretching, and the stretching parameters are determined by the actual calculation process. Nonlinear transformation is mainly nonlinear compression of data in specific places, which is mainly reflected in: data is directly compressed from a curve to a straight line; Step S4: generating a station field optical cable path diagram, more specifically, displaying the processed data in the form of a drawing; In step S4, the station field optical cable path map includes the generation of the station field plan map and the generation of the optical cable path map; The steps of generating the station plan and the optical cable path diagram are to use the calculated deformed equipment, lines, protective nets, and optical cable path coordinates as graphic display coordinates, use the equipment and line data required for the station plan to generate the station plan according to the station plan rules, use the equipment and protective nets and optical cable path data required for the optical cable path diagram to generate the optical cable path diagram according to the path diagram rules, and at the same time merge the above generated diagrams into a complete station plan and optical cable path diagram; Step S5: outputting the plan view, more specifically, outputting the drawing into different formats; In step S5, the station plan and optical cable route map generated in step S4 are output into different formats, including but not limited to PDF format, Visio format, dxf format, dwg format and svg format. Example
[0021] A method for generating a railway station diagram and an optical cable path diagram, comprising an optical cable path data center and an AutoCAD processing plug-in, wherein the AutoCAD processing plug-in is composed of a data input module, a data preprocessing module, a coordinate calculation / transformation module, a station diagram / optical cable path diagram generation module, and a plane diagram output module; The optical cable path data center and the AutoCAD processing plug-in exchange data through file transfer. The optical cable path data center outputs the station / section data files that need to be generated, and the AutoCAD processing plug-in processes the data.
[0022] The optical cable path data center is a data management system used to manage the original information of optical cables and equipment elements after collection, and can export the interactive files required by AutoCAD processing plug-ins through the output interface.
[0023] AutoCAD processing plug-in, used for inputting, calculating and processing all data after optical cable collection and generating station plan / optical cable route diagram.
[0024] Furthermore, the data input module in the AutoCAD processing plug-in imports the original collected data by reading files.
[0025] Furthermore, the data preprocessing module in the AutoCAD processing plug-in obtains the data from the data input module by means of memory data transmission between modules, performs data preprocessing, and forms a unified data format.
[0026] Furthermore, the coordinate calculation / deformation module in the AutoCAD processing plug-in obtains data preprocessing data by means of memory data transmission between modules, and calculates the input device position, line / guard net / optical cable path position into plane coordinates for drawing. The calculation includes but is not limited to the conversion of longitude and latitude coordinates to plane coordinates, and the conversion of plane coordinates based on reference point distance data. Then, the coordinates of the device, line / guard net / optical cable path after coordinate calculation are deformed and transformed according to the rules of the plane drawing, so that the coordinates of the device, line / guard net / optical cable conform to the plane drawing display. The coordinate deformation transformation method includes but is not limited to linear change, rotation change, and self-defined function nonlinear transformation. The module provides a preview of the output results. If there is a situation that does not meet the requirements of the plane drawing, the transformation function can be replaced until the requirements of the plane drawing are met.
[0027] Furthermore, the station plan / optical cable route diagram generation module 6 in the AutoCAD processing plug-in obtains processed data by means of memory data transmission between modules, uses the equipment required for the station plan (including but not limited to signal machines, insulating joints, switches, signal towers, etc.) and line data to generate the station plan according to the station plan rules, and uses the equipment required for the optical cable route diagram (including but not limited to stakes, boxes, direction boxes, junction boxes, etc.) and protective nets, optical cable route data to generate the optical cable route diagram according to the route diagram rules, and simultaneously merges the above-generated diagrams into a complete station plan and optical cable route diagram.
[0028] Furthermore, the plan output module in the AutoCAD processing plug-in outputs the station plan and optical cable route map generated by the station plan / optical cable route map generation module into different formats, including but not limited to PDF format, Visio format, dxf format, dwg format, and svg format general data formats.
[0029] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating a railway optical cable path map, characterized in that: The following methods are included: Step S1: data input, more specifically, inputting data into the optical cable path data center to facilitate data processing; Step S2: data preprocessing, more specifically, preprocessing the input data to facilitate data conversion; Step S3: coordinate calculation / deformation conversion, more specifically, converting the relevant position data into coordinate positions; Step S4: generating a station field optical cable path diagram, more specifically, displaying the processed data in the form of a drawing; Step S5: outputting the plan view, more specifically, outputting the drawing into different formats.
2. The method for generating a railway optical cable path map according to claim 1, characterized in that: In step S1, the data to be input in this step includes all the equipment data in the station and section that need to be generated graphically, and the data includes but is not limited to location data, equipment name, number, and type.
3. The method for generating a railway optical cable path map according to claim 2, characterized in that: In step S1, the data to be input in this step include station and section line data, protection network data, and optical cable path data; The data includes but is not limited to location data and type, and the input form of this step includes but is not limited to files and data interfaces.
4. The method for generating a railway optical cable path map according to claim 1, characterized in that: In step S2, the data preprocessing step mainly preprocesses the input data format, type, and encoding; Preprocess the data into a unified data format for subsequent calculations and processing. This method can adapt to and expand different data input formats through data preprocessing.
5. The method for generating a railway optical cable path map according to claim 4, characterized in that: In step S2, the data collected on site has multiple forms, mainly Excel, Json, and csv formats, and the data encoding rules are not uniform; The method of data preprocessing is to write a software interface, which will convert the collected data into a data format that can be processed by subsequent software according to the definition format of the collected data, including but not limited to converting longitude and latitude data from degrees, minutes and seconds to floating point representation, and converting device codes from text descriptions to digital types.
6. The method for generating a railway optical cable path map according to claim 5, characterized in that: In step S2, in data preprocessing, data is first collected on site, and then the format judgment module judges the format, and then the corresponding format is processed, and then the data is uniformly encoded, and then the data format is converted; The data formats are CSV, Json and Excel.
7. The method for generating a railway optical cable path map according to claim 1, characterized in that: In step S3, coordinate calculation / deformation conversion step; Coordinate calculation The present invention adopts the UTM coordinate system calculation method, and its coordinate conversion formula is as follows: E=500000+N*1000000+(E / 6)*1000+(N / 6)*100+(E / 3600)*1+(N / 180)*0.00625 =500000+E*1000000+(E / 6)*1000+(N / 6)*100+(E / 3600)*1+(N / 180)*0.00625; Where E represents longitude and N represents latitude.
8. The method for generating a railway optical cable path map according to claim 6, characterized in that: In step S3, coordinate calculation / deformation conversion step; Coordinate deformation conversion mainly transforms the coordinates of the equipment, lines, protective nets, and optical cable paths after coordinate calculation according to the rules of the plane diagram, so that the coordinates of the equipment, lines, protective nets, and optical cables conform to the plane diagram display; The coordinate deformation transformation methods include but are not limited to linear transformation, rotation transformation, and self-defined function nonlinear transformation; The main methods of coordinate deformation transformation are rotation, linear transformation, and nonlinear transformation. Rotation is mainly used to rotate data collected at different angles into a horizontal direction according to the line or track direction. The rotation formula is: x=x*cosvalue+y*sinvalue; y=y*cosvalue-x*sinvalue; Linear transformation is mainly stretching, and the stretching parameters are determined by the actual calculation process. Nonlinear transformation is mainly nonlinear compression of data in specific places, which is mainly reflected in: data is directly compressed from a curve to a straight line.
9. The method for generating a railway optical cable path map according to claim 8, characterized in that: In step S4, the station field optical cable path map includes the generation of the station field plan map and the generation of the optical cable path map; The steps for generating the station plan and optical cable route map are to use the calculated deformed equipment, lines, protective nets, and optical cable route coordinates as graphic display coordinates, use the equipment and line data required for the station plan to generate the station plan according to the station plan rules, use the equipment and protective nets and optical cable route data required for the optical cable route map to generate the optical cable route map according to the route map rules, and merge the above-generated maps into a complete station plan and optical cable route map.
10. The method for generating a railway optical cable path map according to claim 9, characterized in that: In step S5, the station plan and optical cable route map generated in step S4 are output into different formats, including but not limited to PDF format, Visio format, dxf format, dwg format and svg format.
Citation Information
Cited By
Cable path diagram generation method, system and device, storage medium and program product
CN120337471A
Cable route diagram generation method, system, device, storage medium and program product
CN120337471B
Automatic generation method and system of multi-element cable path diagram and storage medium
CN120951498A
