Cable path diagram generation method, system and device, storage medium and program product
By calculating and adjusting the coordinates based on station information and cable path information, combined with group layout optimization algorithm and encrypted output, the problem of overlapping equipment elements and excessively long maps in the railway signal cable path diagram is solved, and the accurate and beautiful drawing of the full-factor cable path diagram is achieved, improving the management efficiency of hidden projects.
Patent Information
- Application Number
- CN202510811594.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-18
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-06-18
AI Technical Summary
In the prior art, the railway signal cable path drawing has problems such as overlapping equipment elements and excessively long drawings, resulting in insufficient accuracy and aesthetics of the design drawings, and hidden projects cannot be directly observed, affecting fault finding and emergency treatment.
Based on the station site information and cable path information, the full-factor cable path path map is generated through coordinate calculation and adjustment. The grouping layout optimization algorithm with relative position constraints is used to dynamically adjust the density between signal devices, and combined with custom entity design and encrypted output, the full-factor drawing of the cable path map is realized.
The full-element drawing of outdoor cable paths in and in the railway station station is realized, and the problems of overlapping equipment elements and excessively long drawings are solved, the accuracy and aesthetics of design drawings are ensured, and the efficiency of fault finding and emergency response is improved.
Smart Images

Figure CN120337471A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic information technology, and particularly to a method, system, device, storage medium and program product for generating a cable route map. Background Art
[0002] Signal cables are responsible for functions such as supplying power to outdoor devices and sending control signals, which are directly related to the normal operation of signal devices such as signal machines, switch machines, and track circuits, and affect train operation safety. Signal cables are generally laid underground or in pipe grooves, and as concealed works, they cannot be directly observed, which is not conducive to fault finding and emergency handling.
[0003] In order to strengthen the acceptance management of railway signal engineering and improve the management of concealed project data, an optical cable route map is usually drawn.
[0004] Due to problems such as complex and diverse on-site conditions, inconsistent granularity of the drawn cable routes, inconsistent principles and standards, and long drawing and maintenance time; there is an urgent need for a method for generating a cable route drawing to achieve the full-element drawing of the cable route maps inside railway stations and outdoors in the section, and solve problems such as overlapping of equipment graphic elements and too long drawing length, and ensure the accuracy and aesthetics of the design drawings. Summary of the Invention
[0005] The purpose of the present invention is to provide a method, system, device, storage medium and program product for generating a cable route map to achieve the full-element drawing of the cable route maps inside railway stations and outdoors in the section.
[0006] To achieve the above purpose, the present invention provides the following technical solutions: In the first aspect, an embodiment of the present invention provides a method for generating a cable route map, including: Based on the station yard information and cable route information, preliminarily determine the drawing coordinates of signal devices; Adjust the drawing coordinates of signal devices according to the density between signal devices to obtain the final drawing coordinates of signal devices; Based on the final drawing coordinates of signal devices, generate a preliminary cable route map; Adjust the preliminary cable route map to obtain a full-element cable route map and encrypt and output it.
[0007] In the second aspect, an embodiment of the present invention provides a cable route map generation system, which includes: a signal device layout module, a drawing graphic element palette module, and a data output module. The signal device layout module includes a coordinate calculation unit, a coordinate adjustment unit, and a cable path map generation unit. The coordinate calculation unit is used to preliminarily determine the drawing coordinates of signal devices based on the station yard information and cable route information; The coordinate adjustment unit is configured to adjust the drawing coordinates of the signal devices according to the density between the signal devices, and obtain the final drawing coordinates of the signal devices; The cable route map generation unit is configured to generate a preliminary cable route map based on the final drawing coordinates of the signal devices; The drawing primitive palette module is configured to adjust the preliminary cable route map to obtain a full-element cable route map; The data output module is configured to encrypt and output the full-element cable route map.
[0008] In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory. The processor executes the computer program or instructions to implement the foregoing method for generating a cable route map.
[0009] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, in which a computer program or instructions are stored. When the computer program or instructions are executed by a processor, the foregoing method for generating a cable route map is implemented.
[0010] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program or instructions. When the computer program or instructions are executed by a processor, the foregoing method for generating a cable route map is implemented.
[0011] The technical effects and advantages of the present invention: The present invention realizes the full-element drawing of the cable route maps inside railway stations and outdoors in the intervals; and based on the grouping layout optimization algorithm with relative position constraints, dynamically adjusts the density between signal devices to solve the problems of overlapping of device primitives and too long drawing sheets, ensuring the accuracy and aesthetics of the design drawings.
[0012] Other features and advantages of the present invention will be described in the following specification, and, in part, will be obvious from the specification, or will be understood by implementing the present invention. The objectives and other advantages of the present invention can be realized and obtained through the structures pointed out in the specification, the claims, and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0014] Figure 1 It is a flowchart of a method for generating a cable route map according to an embodiment of the present invention; Figure 2It is a detailed flowchart of a method for generating a cable route map according to an embodiment of the present invention; Figure 3 It is a parameter data adjustment interface of a data initialization module in an embodiment of the present invention; Figure 4 It is a schematic diagram of a train signal machine and a track circuit box in an embodiment of the present invention; Figure 5 It is a schematic diagram of a shunting signal machine, a track circuit, and a switch machine box in an embodiment of the present invention; Figure 6 It is a schematic diagram of the equipment information of a shunting signal machine in an embodiment of the present invention; Figure 7 It is a schematic diagram of quick feature modification of a certain equipment box in an embodiment of the present invention; Figure 8 It is a schematic diagram of a certain direction box in an embodiment of the present invention; Figure 9 It is a schematic diagram of the structure of a cable route map generation system according to an embodiment of the present invention; Figure 10 It is a schematic diagram of the input data and output data of the generation system in an embodiment of the present invention; Figure 11 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed implementation manners
[0015] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0016] To solve the deficiencies of the prior art, an embodiment of the present invention discloses a method for generating a cable route map, as shown in Figure 1 and Figure 2 shown, including the following steps: Step S1: Based on the station yard information and the cable route information, preliminarily determine the drawing coordinates of the signal equipment; Step S2: Adjust the drawing coordinates of the signal equipment according to the density between the signal equipment to obtain the final drawing coordinates of the signal equipment; Step S3: Based on the final drawing coordinates of the signal equipment, generate a preliminary cable route map; Step S4: Adjust the preliminary cable route map to obtain a full-element cable route map and encrypt and output it.
[0017] In some specific embodiments, before initially determining the drawing coordinates of the signal device in step S1, the station yard information and cable route information are read and verified, including: Input the tabular files related to the station yard information and cable route information into the data initialization module. The data initialization module parses and reads the data from the tabular files related to the station yard information and cable route information to obtain data such as the station yard information and cable route information; and displays the various read data on the operation interface for manual data verification and modification to ensure the accuracy of the original data.
[0018] The process of the data initialization module parsing the tabular file (i.e., the tabular file related to the station yard information and cable route information) is as follows: The data initialization module opens the specified tabular file (i.e., Excel file) through a library function, parses the specific worksheet, and extracts the objects in the worksheet; checks whether there are missing values in each column of the worksheet to ensure that all necessary data exists in the Excel file; The data initialization module selects an efficient Excel parsing library and adopts a multi-threaded programming method to improve the overall parsing speed of the Excel file; then traverses each cell in the Excel file to obtain data. There are various types of data in EXCEL, such as numerical values, texts, etc. When extracting data, appropriate processing is performed on different types of data to convert them into information recognizable by the software; the extracted data includes all the data required for generating the station yard diagram and arranging the cable network connection devices and cable routes, distinguishing between general speed and high-speed rail, and between station and section data. Among them, when the extracted data is incorrect or unreasonable, the data initialization module gives an error reminder and locates the problem.
[0019] Among them, the tabular file includes a station yard diagram generation input form, a cable route input form, and a crossing point input form.
[0020] (1) The types of the station yard diagram generation input form include general speed stations, high-speed rail stations, general speed sections, and high-speed rail sections; Based on the station yard diagram generation input forms of general speed stations and high-speed rail stations, read and obtain the data for generating the station yard of the station (including track information, signal machine information, switch information, insulation joint information); when reading, construct different structure objects according to different device types and assign values to their respective attributes.
[0021] Generate an input table for the station yard map based on the types of ordinary-speed sections and high-speed sections, and read and obtain the data for generating the sectional station yard; specifically, generate an input table for the station yard map based on the types of ordinary-speed sections and high-speed sections, and respectively obtain the signal equipment point data and corresponding track section data of the up and down lines in the sectional station yard data according to the line type (i.e., the down line or the up line, generally distinguishing the up line and the down line according to the train running direction), and construct different structure objects and assign values to their respective attributes.
[0022] Among them, for the high-speed section, the train control data table can also be directly used as the input table, and the data of a single station interval can be matched according to the station name; when the station name is the whole line, the data of the whole line can also be obtained.
[0023] Such as Figure 3 As shown, when the data reading of the input table for generating the station yard map is completed, the data is displayed through the list in the dialog box for the designers to perform data interaction; during this period, the designers can modify and adjust the read data in the list, and at the same time, the designers can also adjust some parameters for the subsequent generation of the all-element cable routing diagram drawing.
[0024] (2) The types of the cable routing input tables include ordinary-speed and high-speed. The ordinary-speed cable routing input table is the cable stake information, and the high-speed cable routing input table is the catenary pole information.
[0025] Each column of data in the ordinary-speed cable routing input table is a cable stake information. When the data initialization module reads the ordinary-speed cable routing input table, it constructs a cable stake structure object according to the cable stake information and assigns values to its attributes.
[0026] Each column of data in the high-speed cable routing input table is a group of catenary pole information. When the data initialization module reads the high-speed cable routing input table, it constructs a catenary pole structure object according to the catenary pole information and assigns values to its attributes.
[0027] (3) The through-rail point input table includes information such as the through-rail pipe type and mileage. Each column of data in the through-rail point input table is a through-rail pipe information; when the data initialization module reads the through-rail point input table, it constructs a rail pipe structure object according to the through-rail pipe information and assigns values to its attributes.
[0028] When the data reading of the above three tables is completed and manually verified, the initialization of the table files related to the station yard information and cable routing information is completed.
[0029] In some specific embodiments, step S1: Based on the station yard information and cable routing information, preliminarily determine the drawing coordinates of the signal equipment, including: The drawing coordinates of the signal equipment include the drawing coordinates and the drawing coordinates; Based on the data after being read, manually checked and modified by the data initialization module (i.e., data such as yard information and cable route information), the coordinate calculation unit in the signal equipment layout module calculates the drawing coordinates of all signal equipment according to the kilometer post; the coordinate calculation unit also determines the drawing coordinates of signal equipment on the station and in the section line according to the track line, and calculates the drawing coordinates of cable stakes and catenary poles according to the distance from the line.
[0030] Among them, the drawing coordinates of all signal equipment include the drawing coordinates of station signal equipment and the drawing coordinates of section signal equipment; the data initialization module includes a coordinate calculation unit, a coordinate adjustment unit, a coordinate adjustment unit and a cable route map generation unit.
[0031] In some specific embodiments, the coordinate calculation unit calculates the drawing coordinates of station signal equipment according to the kilometer post, including the following steps: Step a: Take the signal building coordinates as the base coordinates, find the signal machines closest to the left and right sides of the signal building as reference signal machines, and record the numbers and relative coordinates of the reference signal machines. Among them, the relative coordinates of the reference signal machines in this step refer to the positions of the reference signal machines relative to the base coordinates.
[0032] Step b: Based on the tabular file related to yard information and cable route information, obtain the distance between two outbound signal machines at the current station (i.e., the track length), and analyze to obtain the shortest track length; for example: if the station has three tracks, and the outbound signal machines are X1, X2, X3, S1, S2, S3 respectively, the distance between S1 and X1 is the length of the first track, and the shortest track length of this station is obtained by comparing the lengths of the three tracks.
[0033] Step c: According to the shortest track length of the station and the relative coordinates of the reference signal machines, set the coordinates of the reference signal machines on its left and right sides with the signal building coordinates as the reference; among them, the coordinates of the reference signal machines on the left and right sides are respectively the signal building coordinates - the shortest track length, the signal building coordinates + the shortest track length.
[0034] Step d: According to the kilometer post relationship (or relative coordinate relationship) between other signal equipment and the signal building, and the reference signal machines on the left and right sides, calculate the drawing coordinates of other signal equipment: If the kilometer post of other signal devices is between the kilometer post of the signal building and the kilometer post of the reference signal machine, then according to the distances of other signal devices from the signal building and the reference signal machine, the drawing coordinates of other signal devices are calculated according to a predetermined ratio; Exemplary: If the kilometer post of other signal devices is between the kilometer post of the signal building and the kilometer post of the reference signal machine, then according to the ratio of 1:1 of the distance of other signal devices from the kilometer post of the reference signal machine, and / or, according to the ratio of 10:1 of the distance of other signal devices from the kilometer post of the signal building, and on the premise of ensuring that the graphic elements do not overlap, the drawing coordinates of other signal devices are determined; that is, choose one of the two reference objects for reference or simultaneously reference and choose the most appropriate one; avoid the problem that if the track where the signal building is located is too long and the drawing is made according to the ratio of 1:1 of the distance from the kilometer post of the signal building, the drawing size will be too long.
[0035] If the kilometer post of other signal devices is outside the kilometer post of the reference signal machine, then based on the reference signal machine, according to the standard that the kilometer post difference is 1 and the coordinate difference is 1 (that is, corresponding to the actual ratio of the station yard being 1:1), the drawing coordinates of other signal devices are calculated.
[0036] Among them, the kilometer post of other signal devices being outside the kilometer post of the reference signal machine includes: the kilometer post of other signal devices being less than the kilometer post of the reference signal machine on the left, and the kilometer post of other signal devices being greater than the kilometer post of the reference signal machine on the right.
[0037] In some specific embodiments, the coordinate calculation unit calculates the drawing coordinates of the interval signal devices according to the kilometer post, including: Based on the generated input table from the read station yard map, find the signal device with the smallest kilometer post, and use the coordinates of the signal device as the base coordinates; taking the base coordinates as the reference, for other signal devices, according to the standard that the kilometer post difference is 1 and the coordinate difference is 0.1, calculate the drawing coordinates of other signal devices.
[0038] In some specific embodiments, step S2: Adjust the drawing coordinates of the signal devices according to the density between the signal devices to obtain the final drawing coordinates of the signal devices, including: The coordinate adjustment unit in the signal device layout module determines the density between each signal device according to the distances between the kilometer posts of each signal device in the table file.
[0039] For example, signal lights, turnouts, track circuits, etc. are all at the same kilometer post. If there are too many signal devices, there will be situations such as graphic elements pressing on the line, graphic elements overlapping, and the kilometer posts differing too much and the drawing sheet being too long. Therefore, through the coordinate adjustment unit, a grouped layout optimization algorithm based on relative position constraints is adopted to dynamically adjust the density between the graphic elements of each signal device, and the final drawing coordinates of the signal devices are obtained to solve problems such as overlapping of graphic elements of signal devices and too long drawing sheets.
[0040] In some specific embodiments, dynamically adjusting the density between the graphic elements of each signal device and obtaining the final drawing coordinates of the signal devices includes the following steps: (1) According to the sizes of the graphic elements of each signal device, determine the left and right boundary ranges of each type of signal device graphic element, and calculate the left boundary coordinates and right boundary coordinates of each signal device graphic element according to the drawing coordinates of each signal device respectively.
[0041] (2) According to the track lines where each signal device is located, divide all signal devices into several large groups; sort the signal devices in each large group in ascending order according to the drawing coordinates, and divide the signal devices in the large group into several small groups according to the coordinate distance.
[0042] (3) Traverse each large group, perform local spacing adjustment on the graphic element of each signal device in the small group and adjust them in sequence; when the boundaries of two adjacent signal device graphic elements overlap, move the graphic element of the signal device with a later sort position backward by the corresponding coordinates.
[0043] For example, adjust from left to right in sequence. When the graphic element boundaries of signal device A on the left and signal device B on the right overlap, move the graphic element of signal device B to the right; and to ensure the relative position relationship of the signal device graphic elements, move the graphic elements of all signal devices with kilometer posts greater than signal device B to the right by the corresponding coordinates; if the previous signal device graphic element does not exceed the left boundary of the subsequent signal device graphic element during the rightward movement process, this signal device and the subsequent signal devices may not move. Among them, signal devices include signal lights, turnouts, equipment boxes and pipes crossing the track, etc., ensuring that when moving one of the devices, it does not overlap with other adjacent devices.
[0044] In this step (3), when dealing with complex data structures (such as when there are multiple small groups), traversing each large group one by one can ensure that each large group is processed; during the traversal process, local optimization can be carried out according to the characteristics of each large group; if an error occurs during the data processing, traversing each large group one by one also helps to locate the problem.
[0045] (4) Determine whether there is an overlap in the left and right boundaries between each group. If there is an overlap, move the group with a later sorting position backward by the corresponding coordinates as a whole to obtain the final drawing coordinates of each signal device. The processing idea of this step is similar to that of step (3).
[0046] In this step, the present invention applies a grouped layout optimization strategy to areas with a high device density. That is, first, the devices are divided into several groups according to the distance, and then through local spacing adjustment and global spacing optimization, detailed spatial adjustment of the device primitives within each group is realized. Among them, local spacing adjustment: Under the constraint of the relative position relationship, adjust the spatial positions of the overlapping devices while ensuring the compactness of the devices within the group. Global spacing optimization: Optimize the overall layout during the inter-group adjustment process to make the device primitives reasonably distributed on the drawing, avoiding overlap and wasting space.
[0047] In some specific embodiments, step S3: Generate a preliminary cable routing diagram based on the final drawing coordinates of the signal devices. Specifically: Based on the final drawing coordinates of the signal devices, the cable path diagram generation unit in the signal device layout module generates a preliminary cable routing diagram. Among them, the preliminary cable routing diagram includes: a preliminary cable routing diagram for the station and a preliminary cable routing diagram for the section.
[0048] The generation process of the preliminary cable routing diagram is as follows: (1) Based on the final drawing coordinates of the signal devices, the cable path diagram generation unit generates a preliminary cable routing diagram for the station, including the following steps: Step a: Generate a station yard diagram: Based on the final drawing coordinates of the signal devices and the table file data related to the station yard information and cable routing information, draw the signal devices (such as signal lights, switches, and insulating joints) in the station yard diagram, and draw appropriate types of entities according to the nature of each signal device during the drawing process; Based on the signal device coordinates in the station yard diagram, find the signal device coordinates on each track line to draw the track line, that is, generate a station yard diagram.
[0049] Among them, each track line searches for the signal devices (signal lights, switches, insulating joints, etc.) on the track line from the middle to both sides respectively, records the outermost coordinates of these signal devices, and draws the track line.
[0050] Step b: On the basis of generating the station yard diagram, arrange the cable network connection devices and cable routing to generate a cable routing diagram: According to the cable network equipment configuration rules, corresponding equipment boxes are drawn for each signal device (i.e., the cable network connection devices corresponding to each signal device are arranged); then, cable markers or catenary poles are drawn according to the types of each signal device, and cable paths (including main cable routes and control cable routes) are generated based on the kilometer post positions of the cable markers or catenary poles, thus obtaining the preliminary cable route map of the station.
[0051] (2) Based on the final drawing coordinates of the signal devices, the cable path map generation unit generates the preliminary cable route map for the section, including the following steps: Step a: Generate the section yard map: Based on the final drawing coordinates of the signal devices, draw the signal devices on the up and down lines to generate the section yard map.
[0052] Step b: On the basis of generating the section yard map, arrange the cable network connection devices and cable routes to generate the cable route map: According to the usage principles of railway signal equipment boxes (i.e., the cable network equipment configuration rules), corresponding equipment boxes are drawn for each signal device (i.e., the cable network connection devices corresponding to each signal device are arranged); cable markers or catenary poles are drawn according to the types of each signal device, and cable paths (including main cable routes and control cable routes) are generated based on the kilometer post positions of the cable markers or catenary poles, thus obtaining the preliminary cable route map for the section.
[0053] Further, the specific implementation process of generating the preliminary cable route map is as follows: (1) Draw various signal devices: For signal lamps: Based on the final drawing coordinates of the signal devices obtained in step S2 (specifically, the final coordinates of the signal lamps), and various data extracted from the table file (data related to signal lamps), such as signal lamp types (including but not limited to entrance signal lamps, exit signal lamps, and shunting signal lamps, etc.), signal lamp orientations, and the track line numbers to which the signal lamps belong, etc., the cable path map generation unit automatically draws various types of signal lamps according to these data.
[0054] For switch machines: Based on the final drawing coordinates of the signal devices obtained in step S2 (specifically, the final coordinates of the switch machines), and various data extracted from the table file (data related to switch machines), such as the number of traction points of the switch machine, and the track line numbers to which the switch machine belongs, etc., the cable path map generation unit automatically draws various switch machines according to these data.
[0055] For track circuits: The cable path map generation unit draws the track lines according to the coordinates of the insulation joints and signal lamps.
[0056] The cable path map generation unit arranges the signal devices through the above drawing.
[0057] (2)The cable path diagram generation unit draws the corresponding equipment boxes for each signal device according to the usage principles of railway signal equipment boxes, such as Figures 4 to 8 shown in the schematic diagram in For signal lights: The train signal light defaults to generating XB1, and its characteristics should have the modification of lamp position attributes. One XB1 is generated for signal lights with 4 or fewer lamp positions, and two XB1s are generated for signal lights with more than 4 lamp positions (where the distance between the two XB1s is 20, and the characteristics can be modified to XB2); The shunting signal light defaults to generating HZ12 (the characteristics can be modified to HZ6, HZ24); Other signal lights default to generating one XB1 (the characteristics can be modified to XB2).
[0058] For switch machines: It defaults to generating HZ24, and its characteristics should have the modification of the number of traction points. The corresponding number of HZ24s is generated according to the number of traction points.
[0059] For track circuits and coded track circuits boxes: It defaults to generating neutral section transformers and transformer boxes on both sides of the insulation joint, and all are defaulted to the receiving end. The characteristics should have the modification and deletion of the sending and receiving ends.
[0060] As Figure 8 shown, for the cable routing and the use of each core wire, it defaults to generating four-way and seven-way direction boxes at the cable connection points, and the characteristics should have the modification of the name, model, and distance from the signal building.
[0061] The above equipment boxes should be set at appropriate positions to avoid pressing the wires. All the graphic symbols used are the graphic symbols in conventional drawing aids; among them, the signal light and switch machine boxes should be on the same side as the signal lights and switch machines. The track circuit boxes on the downlink line default to the upper side, and the uplink line default to the lower side, and can be flipped (the characteristics have a flip option).
[0062] According to the above settings of the equipment boxes, the present invention can realize the automatic drawing of all signal devices and boxes in ordinary speed railway stations, sections, high-speed railway stations, and sections.
[0063] (3)Draw and generate the cable path: For branch cables: After the corresponding equipment boxes for each signal device are generated, various types of cables are drawn according to the different types of signal devices and distinguished by different colors to generate branch cables; For main cables and control cables: According to the data extracted from the table file (specific data related to cable markers), the cable markers are connected in series to generate the main cable route, and other control cables (including through grounding wires and power cables) are generated.
[0064] In some specific embodiments, step S4: Adjust the preliminary cable route diagram, obtain the full-element cable route diagram and perform encryption output, including: The drawing primitive palette module includes a custom entity design unit and a drawing palette design unit; The custom entity design unit designs the drawing blocks of each signal device in the way of CAD custom entities, and adjusts the shape and edits the attributes of the signal device entities according to the requirements of different types of signal devices, so as to obtain a complete-element cable routing diagram after adjustment.
[0065] The drawing palette design unit is implemented based on MFC. After the operator selects the entity of the signal device on the drawing panel, the thumbnail of the signal device entity will move with the cross cursor when the mouse is moved in the drawing area, and will disappear until the insertion point is selected.
[0066] Finally, the complete-element cable routing diagram is saved and output through the data output module, and symmetric and asymmetric algorithms are used for encryption to generate corresponding keys, and then the license is decrypted by the key to read the complete-element cable routing diagram file.
[0067] Among them, the custom drawing function of the drawing primitive palette module is realized by creating several tool palettes to form a palette set; several function buttons are set in each palette, and the drawing of the primitive or custom entity of the information device is completed in the click event processing function of the button; and in order to facilitate preview, a bitmap image can be added to each primitive to facilitate the designer to select.
[0068] Based on the same inventive concept, an embodiment of the present invention discloses a cable routing diagram generation system, as Figure 9 shown, including: A signal device layout module, a drawing primitive palette module and a data output module, wherein the signal device layout module includes a coordinate calculation unit, a coordinate adjustment unit and a cable routing diagram generation unit, The coordinate calculation unit is used to preliminarily determine the drawing coordinates of the signal device based on the station yard information and the cable routing information; The coordinate adjustment unit is used to adjust the drawing coordinates of the signal device according to the density between the signal devices to obtain the final drawing coordinates of the signal device; The cable routing diagram generation unit is used to generate a preliminary cable routing diagram based on the final drawing coordinates of the signal device; The drawing primitive palette module is used to adjust the preliminary cable routing diagram to obtain a complete-element cable routing diagram; The data output module is used to encrypt and output the complete-element cable routing diagram.
[0069] In some specific embodiments, the system further includes a data initialization module, The data initialization module is used to parse the file and read the data of the table files related to the station yard information and cable route information; display the various read data on the operation interface, and perform data verification and modification manually. Among them, as Figure 10 shown, the table files input to the data initialization module include the input table for generating the station yard map, the input table for the cable route, and the input table for the crossing point. The types of the input table for generating the station yard map include ordinary speed station yard, high-speed railway station yard, ordinary speed section, and high-speed railway section. The types of the input table for the cable route include ordinary speed and high-speed railway. The input table for the ordinary speed cable route is the cable stake information, and the input table for the high-speed railway cable route is the catenary pole information.
[0070] In some specific embodiments, the preliminary cable route map includes the preliminary cable route map of the station and the preliminary cable route map of the section; the all-element cable route map obtained after adjustment includes the outdoor cable route map of the station and the outdoor cable route map of the section. As Figure 10 shown, the all-element cable route map obtained after adjustment is output through the data output module.
[0071] Regarding the system in the above embodiments, the specific manners in which each unit module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0072] Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, the structure of which is as Figure 11 shown, including a memory, a processor, and a computer program stored on the memory. The processor executes the computer program or instructions to implement the foregoing method for generating a cable route map.
[0073] Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium, in which a computer program or instructions are stored. When the computer program or instructions are executed by a processor, the foregoing method for generating a cable route map is implemented.
[0074] Based on the same inventive concept, an embodiment of the present invention further provides a computer program product, including a computer program or instructions. When the computer program or instructions are executed by a processor, the foregoing method for generating a cable route map is implemented.
[0075] Finally, it should be noted that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for generating a cable route map, characterized in that Including: Based on the station yard information and cable route information, preliminarily determine the drawing coordinates of signal equipment; Adjust the drawing coordinates of signal equipment according to the density between signal equipment to obtain the final drawing coordinates of signal equipment; Based on the final drawing coordinates of signal equipment, generate a preliminary cable route map; Adjust the preliminary cable route map to obtain a full-element cable route map and encrypt and output it.
2. The method for generating a cable route diagram according to claim 1, wherein Before preliminarily determining the drawing coordinates of signal equipment, read and check the station yard information and cable route information, including: Perform file parsing and data reading on the table files related to the station yard information and cable route information; Display the various read data on the operation interface and perform data checking and data modification manually; Among them, the table files include the input table for generating the station yard map, the input table for the cable route, and the input table for the crossing point; The types of the input table for generating the station yard map include ordinary speed stations, high-speed rail stations, ordinary speed sections, and high-speed rail sections; The types of the input table for the cable route include ordinary speed and high-speed rail.
3. A method for generating a cable route map according to claim 1, characterized in that Based on the station yard information and cable route information, preliminarily determine the drawing coordinates of signal equipment, including: The drawing coordinates of the signal device include drawing coordinates and drawing coordinates; Drawing of all signal devices calculated according to kilometer markers Coordinates; among them, the drawing of all signal devices Coordinates include the drawing of station signal devices Coordinates, as well as the drawing of interval signal devices Coordinates; Drawing of signal equipment on stations and section lines determined according to the track line Coordinates, and drawing of cable marker posts and catenary poles calculated according to the distance from the line Coordinates.
4. A method for generating a cable route map according to claim 3, wherein Drawing of station signal equipment calculated according to kilometer posts Coordinates, including: Take the signal building coordinates as the base point coordinates, find the signal machines closest to the left and right sides of the signal building as reference signal machines, and record the numbers and relative coordinates of the reference signal machines; Set the reference signal coordinates on its left and right sides with the signal building coordinates as the reference according to the shortest track length of the station and the relative coordinates of the reference signal; among them, the reference signal coordinates on the left and right sides are the signal building coordinates - the shortest track length, and the signal building coordinates + the shortest track length; Calculate the drawing coordinates of other signal devices based on the relationship of kilometer markers between other signal devices, signal buildings, and reference signal machines on both the left and right sides.
5. A method for generating a cable route map according to claim 4, characterized in that Calculate the drawing coordinates of other signal devices based on the kilometer post relationships among other signal devices, the signal building, and the reference signal machines on the left and right sides, including: If the kilometer marker of other signal devices is between the kilometer marker of the signal building and the kilometer marker of the reference signal machine, the drawing of other signal devices is calculated according to the distances of other signal devices from the signal building and the reference signal machine at a predetermined ratio. Coordinate; If the kilometer marker of other signal devices is outside the kilometer marker of the reference signal machine, then based on the reference signal machine, calculate the drawing coordinates of other signal devices according to the standard of a 1-kilometer difference in kilometer markers and a 1-unit difference in coordinates.
6. A method for generating a cable route map according to claim 3 or 5, characterized in that, Drawing of interval signal equipment calculated according to kilometer posts Coordinates, including: Find the signal equipment with the smallest kilometer post based on the input table for generating the station yard map, and take the coordinates of the signal equipment as the base point coordinates; Taking the base point coordinates as a reference, other signal devices are based on the kilometer post with a difference of 1, and the standard of coordinate difference of 0.1 to calculate the drawing coordinates of other signal devices.
7. A method for generating a cable route diagram according to claim 1, wherein Adjust the drawing coordinates of signal equipment according to the density between signal equipment to obtain the final drawing coordinates of signal equipment, including: Determine the density between each signal equipment according to the distance between the kilometer posts of each signal equipment; Adopt a grouping layout optimization algorithm based on relative position constraints to dynamically adjust the density between each signal equipment primitive to obtain the final drawing coordinates of signal equipment.
8. A method for generating a cable route map according to claim 7, characterized in that, Dynamically adjust the density between each signal equipment primitive to obtain the final drawing coordinates of signal equipment, including: Determine the left and right boundary ranges of each type of signal device primitive according to the size of the primitives of each signal device, and calculate the left boundary coordinates and right boundary coordinates of each signal device primitive respectively according to the drawing coordinates of each signal device; According to the track lines where each signal device is located, all signal devices are divided into several large groups; the signal devices in each large group are sorted according to the drawing coordinates from smallest to largest, and the signal devices in the large group are divided into several small groups according to the coordinate distance; Traverse each large group, perform local spacing adjustment on the primitives of each signal equipment in the small group and adjust them in sequence; when there is an overlap in the boundaries of two adjacent signal equipment primitives, move the signal equipment primitive with a later sort order backward by the corresponding coordinates; Judge whether there is an overlap in the left and right boundaries between each small group. If there is an overlap, move the entire small group with a later sort order backward by the corresponding coordinates to obtain the final drawing coordinates of each signal equipment.
9. According to the method for generating a cable route map according to claim 1 or 8, characterized in that The preliminary cable route map includes: the preliminary cable route map of the station and the preliminary cable route map of the section; Among them, based on the final drawing coordinates of signal equipment, generating the preliminary cable route map of the station includes: Based on the final drawing coordinates of signal equipment and the data of the table files related to the station yard information and cable route information, draw the signal equipment in the station yard map; Based on the signal equipment coordinates in the station yard map, find the signal equipment coordinates on each track line to draw the track line; According to the cable network equipment configuration rules, draw the corresponding equipment boxes for each signal equipment; Draw cable markers or catenary poles according to the types of various signal devices, and generate a cable path based on the kilometer post positions of the cable markers or catenary poles, that is, obtain a preliminary cable routing diagram of the station.
10. A method for generating a cable route map according to claim 9, characterized in that, Based on the final drawing coordinates of the signal devices, generate a preliminary cable routing diagram for the section, including: Based on the final drawing coordinates of the signal devices, draw the signal devices on the up and down lines; According to the cable network device configuration rules, draw corresponding equipment boxes for each signal device; Draw cable markers or catenary poles according to the types of various signal devices, and generate a cable path based on the kilometer post positions of the cable markers or catenary poles, that is, obtain a preliminary cable routing diagram for the section.
11. A method for generating a cable route map according to claim 1, characterized in that, Adjust the preliminary cable routing diagram to obtain a full-element cable routing diagram and encrypt and output it, including: Customize the drawing blocks of each signal device by means of CAD custom entities, and adjust the shape and edit the attributes of the signal device entities according to the requirements of different types of signal devices to obtain a full-element cable routing diagram after adjustment; Save and output the full-element cable routing diagram, and use symmetric and asymmetric algorithms to encrypt and generate corresponding keys, and then decrypt the license through the keys to read the full-element cable routing diagram file.
12. A cable route map generation system, characterized in that, The system includes: a signal device layout module, a drawing primitive palette module, and a data output module. The signal device layout module includes a coordinate calculation unit, a coordinate adjustment unit, and a cable routing diagram generation unit; The coordinate calculation unit is used to preliminarily determine the drawing coordinates of the signal devices based on the station yard information and the cable routing information; The coordinate adjustment unit is used to adjust the drawing coordinates of the signal devices according to the density between the signal devices to obtain the final drawing coordinates of the signal devices; The cable routing diagram generation unit is used to generate a preliminary cable routing diagram based on the final drawing coordinates of the signal devices; The drawing primitive palette module is used to adjust the preliminary cable routing diagram to obtain a full-element cable routing diagram; The data output module is used to encrypt and output the full-element cable routing diagram.
13. A cable route map generation system, characterized in that, The system further includes a data initialization module, The data initialization module is used to perform file parsing and data reading on the table files related to the station yard information and the cable routing information; display the various read data on the operation interface, and perform data verification and data modification manually; Among them, the table files include an input table for generating a station yard diagram, an input table for a cable routing, and an input table for a crossing point; The types of the input table for generating a station yard diagram include a conventional speed station yard, a high-speed railway station yard, a conventional speed section, and a high-speed railway section; The types of the input table for a cable routing include conventional speed and high-speed railway.
14. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory. The processor executes the computer program or instruction to implement a cable routing diagram generation method according to any one of claims 1-11.
15. A computer-readable storage medium, characterized in that, A computer program or instruction is stored in the computer-readable storage medium. When the computer program or instruction is executed by the processor, a cable routing diagram generation method according to any one of claims 1-11 is implemented.
16. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instruction is executed by a processor, it implements a method for generating a cable route map according to any one of claims 1-11.
Citation Information
Patent Citations
Method for automatically drawing railway yard graph
CN105303001A
Implementation method and system for automatic aided design of rail transit signal system
CN111027163A
Method for automatically drawing railway station signal plane layout diagram
CN111754610A
Cable path diagram generation method and device and nonvolatile storage medium
CN117592229A
Railway signal outdoor cable real path drawing method and system
CN118379391A