Railway signal cable path diagram generation method and system and computer equipment
By acquiring and processing railway signal cable route map files, and using cable numbering and geohashing algorithms to generate clear cable route maps, the problem of difficulty in identifying cable routes and connections in existing technologies is solved, thus improving maintenance and fault handling efficiency.
Patent Information
- Application Number
- CN202511054299.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-11-07
AI Technical Summary
Existing railway signal cable route maps make it difficult to quickly identify the specific route of a single cable and its connection relationship with related equipment, affecting the efficiency and accuracy of maintenance work.
By acquiring cable route map files, querying route relationship data using cable numbers, generating location code data based on geohashing algorithms, constructing a graphic location code database, retrieving related graphics, and displaying and hiding them in layers, a clear cable route map is generated.
Users can clearly see the complete route and connection of the target cable, avoiding visual interference, improving the efficiency of daily inspection, maintenance and fault handling, and helping to determine the scope of the fault and formulate emergency repair strategies.
Smart Images

Figure CN120911046A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of railway traffic, and in particular to a railway signal cable path diagram generation method and system and computer equipment. BACKGROUND
[0002] As a key medium for information transmission between indoor and outdoor equipment in a railway signal system, a railway signal cable bears the important function of ensuring that a control center can accurately command the operation of outdoor equipment and timely obtain the working state thereof, thereby ensuring the normal operation of the entire signal system and improving the safety and reliability of train operation. Once a signal cable fails, it may directly endanger train operation safety and cause serious consequences.
[0003] In current field operation and equipment maintenance practices, workers mainly rely on the CAD file of the cable path diagram as a reference basis to carry out related maintenance and repair work. The cable path diagram currently used is stored and managed in the DWG format, but its function is limited to the browsing of the overall drawing. Since the graphical elements in such drawings are complex and the lines are dense, it is difficult to quickly identify the specific direction of a single cable and its connection relationship with related equipment in actual consultation, thereby affecting the efficiency and accuracy of maintenance work. SUMMARY
[0004] Therefore, the embodiments of the present application provide a railway signal cable path diagram generation method, system and computer equipment, which can effectively solve the problem that it is difficult to quickly identify the specific direction of a single cable and its connection relationship with related equipment in the prior art.
[0005] In a first aspect, the embodiments of the present application provide a railway signal cable path diagram generation method, which comprises: acquiring a cable path diagram file, wherein the cable path diagram file comprises a station yard layout diagram and cable wiring information; In response to a graphical display instruction of a target cable, the cable number of the target cable is acquired from the cable path diagram file; The direction relationship data of the target cable is queried and acquired from a preset database according to the cable number; Based on the direction relationship data, the associated graphics of the target cable are retrieved from a graphics database; In response to a first layer creation instruction, the associated graphics are loaded to a newly created first layer for display, and all graphics in the original layer of the cable path diagram file except the first layer are hidden, thereby generating a cable path diagram containing the associated graphics of the target cable.
[0006] In some embodiments, the graphical display instruction of the target cable further comprises: searching for a peripheral device graph within a preset distance of the target cable by using a spatial search algorithm; in response to a second layer creation instruction, loading the peripheral device graph to a newly created second layer for superimposed display; hiding graphs in the original layer other than the first layer and the second layer, to generate a cable path graph containing the associated graph of the target cable and the peripheral device. In some embodiments, the searching for a peripheral device graph within a preset distance of the target cable by using a spatial search algorithm comprises: based on the graphs in the cable path graph file, generating corresponding position encoding data by using a geographic hash algorithm, and constructing a graph position encoding database; obtaining the position encoding data of the graph of the target cable by using the geographic hash algorithm; constructing a geographic range query condition according to the position encoding data and the preset distance; performing a position query in the graph position encoding database, matching peripheral graphs that meet the query condition, to take the peripheral graphs as peripheral device graphs within a preset distance of the target cable. In some embodiments, the generating corresponding position encoding data by using a geographic hash algorithm comprises: obtaining geographic coordinate data of the graph; converting the geographic coordinate data to obtain latitude and longitude coordinate data; based on the latitude and longitude coordinate data, obtaining corresponding position encoding data. In some embodiments, after the obtaining of the cable path graph file, the method further comprises: in response to a data viewing instruction of the target cable, obtaining a cable number of the target cable from the cable path graph file; obtaining data information of the target cable from a preset database according to the cable number; calling a pop-up window display module to display the data information in the form of a floating window on a graphical interface. In some embodiments, the obtaining of the cable path graph file comprises: obtaining a station site layout graph; using an image filtering algorithm to remove redundant graphs and annotation texts in the station site layout graph, to generate a simplified station site layout graph; obtaining a double-line track cable path graph; performing layer fusion on the simplified station site layout graph and the double-line track cable path graph, to generate a preliminary cable path graph; drawing all graphic elements of railway implementation equipment in the preliminary cable route map according to the equipment account book, to obtain a full-element cable route map; obtaining cable route relationship data; based on the cable route relationship data, obtaining graphic objects corresponding to each of the route relationship data from a graphic database; binding and mapping the cable route relationship data and each of the graphic objects of the full-element cable route map, to obtain the cable route map file.
[0007] In some embodiments, the drawing all graphic elements of railway implementation equipment in the preliminary cable route map according to the equipment account book, to obtain a full-element cable route map comprises: drawing all graphic elements of railway implementation equipment in a graphic interface according to the equipment account book; in response to a target element drawing instruction input by a user, analyzing a coordinate position selected by the user in the preliminary cable route map; in accordance with the target element, calling a corresponding drawing function in a graphic algorithm library to draw a graphic of the target element at the coordinate position; in response to a next element drawing instruction input by the user, until all graphic elements of the equipment account book are drawn, to obtain a full-element cable route map.
[0008] In some embodiments, after the generating a cable route map containing associated graphics of the target cable, further comprising: in response to a reset instruction input by a user, restoring a visible state of all hidden graphics and restoring the original layer display state.
[0009] In a second aspect, the embodiments of the present application provide a railway signal cable route map generation system, comprising: a file acquisition module, which acquires a cable route map file, the cable route map file comprising a station yard layout map and cable wiring information; a cable number acquisition module, which, in response to a graphic display instruction of a target cable, acquires a cable number of the target cable from the cable route map file; a data query module, which acquires route relationship data of the target cable from a preset database according to the cable number; a graphic retrieval module, which retrieves associated graphics of the target cable from a graphic database based on the route relationship data; a layer creation module, which, in response to a first layer creation instruction, loads the associated graphics to a newly created first layer for display, hides all graphics in the original layer of the cable route map file except the first layer, and generates a cable route map containing the associated graphics of the target cable.
[0010] In a third aspect, the embodiments of the present application provide a computer device, comprising a processor and a memory, the memory storing a computer program, and the processor being configured to execute the computer program to implement the application method of the railway signal cable path map.
[0011] The embodiments of the present application have the following beneficial effects: The method for generating the railway signal cable path map comprises: obtaining a cable path map file, the cable path map file comprising a station layout plan and cable wiring information; in response to a graphical display instruction of a target cable, obtaining a cable number of the target cable from the cable path map file; querying and obtaining the running relationship data of the target cable from a preset database according to the cable number; based on the cable running relationship data, retrieving the associated graphics of the target cable from a graphics database; in response to a first layer creation instruction, loading the associated graphics to a newly created first layer for display, and hiding all graphics in the original layer of the cable path map file except the first layer, and dynamically generating a cable path map comprising the associated graphics of the target cable. Through the method for generating the railway signal cable path map, the user can clearly see the complete running and connection relationship of the target cable, avoid visual interference, and facilitate daily inspection, maintenance, reconstruction and other work, and help to determine the fault influence range and develop a repair strategy. BRIEF DESCRIPTION OF DRAWINGS
[0012] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.
[0013] Figure 1 Fig. 1 shows a first flowchart of the method for generating the railway signal cable path map according to an embodiment of the present application; Figure 2 Fig. 2 shows a second flowchart of the method for generating the railway signal cable path map according to an embodiment of the present application; Figure 3 Fig. 3 shows a third flowchart of the method for generating the railway signal cable path map according to an embodiment of the present application; Figure 4 Fig. 4 shows a schematic diagram of the first layer of the CAD software according to an embodiment of the present application; Figure 5 Fig. 5 shows a fourth flowchart of the method for generating the railway signal cable path map according to an embodiment of the present application; Figure 6 Fig. 6 shows a fifth flowchart of the method for generating the railway signal cable path map according to an embodiment of the present application; Figure 7 Fig. 6 shows a sixth flowchart of a method for generating a railway signal cable path diagram according to an embodiment of the present application; Figure 8 Fig. 7 shows a diagram for displaying target cable information by a pop-up according to an embodiment of the present application; Figure 9 Fig. 8 shows a diagram of a structure of a system for generating a railway signal cable path diagram according to an embodiment of the present application. DETAILED DESCRIPTION
[0014] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application.
[0015] The components of the embodiments of the present application generally described and illustrated in the accompanying drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0016] Hereinafter, the terms "include", "have", and their conjugates used in various embodiments of the present application are intended to indicate that specific features, numbers, steps, operations, elements, components, or combinations thereof are present, and should not be construed as excluding the possibility of adding one or more other features, numbers, steps, operations, elements, components, or combinations thereof in advance. In addition, the terms "first", "second", "third", and the like are used only to distinguish the description, and should not be understood as indicating or implying a relative importance.
[0017] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present application belong. The terms (such as terms defined in a generally used dictionary) will be interpreted as having the same meaning as the context in the relevant technical field and will not be interpreted as having an idealized or overly formal meaning, unless clearly defined in various embodiments of the present application.
[0018] Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The following embodiments and features in the embodiments can be combined with each other without conflict.
[0019] In view of the problems that it is difficult to quickly identify the specific route of a single cable and the connection relationship between the cable and related equipment, and the efficiency and accuracy of maintenance work are affected, the present application provides a railway signal cable route map generation method, system and computer device. Through the generation method of the present application, the user can clearly see the complete route and connection relationship of the target cable, avoid visual interference, facilitate daily inspection, maintenance, reconstruction and other work, and help to determine the fault influence range and develop a repair strategy.
[0020] The railway signal cable route map generation method will be described below in combination with some specific embodiments.
[0021] It can be understood that the railway signal cable route map generation method of the present application is realized based on drawing software, and the drawing software is used to display and process the cable route map. The drawing software of the present application can be any kind of drawing software. Exemplarily, the generation method of the present application is applied to CAD software, and the file of the present application is a DWG file.
[0022] Figure 1 A flowchart of the railway signal cable route map generation method of the embodiment of the present application is shown. Exemplarily, the generation method includes S101-S105: S101, obtain a cable route map file.
[0023] The cable route map file includes a station yard layout diagram and cable wiring information. The cable route map can be obtained according to the station yard layout diagram and the double-track cable route map. For example, in an embodiment, as shown in Figure 2 S101 includes the following sub-steps: S201, obtain a station yard layout diagram.
[0024] The station yard layout diagram is usually drawn by a railway design unit at the initial stage of a project and is used to express information such as station track layout, signal device distribution and platform position. It is archived as part of the project delivery result. The user can import the station yard layout diagram into the CAD software so that the CAD software processes the station yard layout diagram.
[0025] S202, use an image filtering algorithm to remove redundant graphics and annotation text in the station yard layout diagram to generate a simplified station yard layout diagram.
[0026] Specifically, the CAD software scans the station yard layout diagram and deletes the annotation text in the station yard layout diagram. The length threshold range of the line and the black list of the graphics can be set according to the actual application situation, so that the CAD software deletes the lines not in the threshold range and the graphics in the black list according to the threshold and the black list.
[0027] Further, the user can set a minimum range of graphic boxes including a track, a platform, a signal building, a signal device and the like basic elements on the graphic interface of the station layout diagram according to an actual application, and the CAD software deletes all graphics and texts outside the graphic boxes according to the graphic boxes.
[0028] S203, obtaining a double-track cable path diagram.
[0029] The double-track cable path diagram is represented by two parallel lines to represent uplink and downlink tracks, and the cable path is represented by lines on the diagram, and device names, positions and the like information are labeled, which is an important basis for field construction, maintenance and fault troubleshooting. The double-track cable path diagram includes a starting point to a terminal point of a cable, key nodes such as a distribution box, a device box, a connection point, a stake and a track passing point, basic information such as a cable type, a core number, a length and a buried depth, positioning information such as a device number, a kilometer marker and a coordinate. The user can import the double-track cable path diagram into the CAD software, so that the CAD software processes the double-track cable path diagram.
[0030] S204, performing layer fusion of the simplified station layout diagram and the double-track cable path diagram to generate a preliminary cable path diagram.
[0031] Further, the double-track cable path diagram can be processed according to an actual application, and layer fusion is performed by using the processed double-track cable path diagram.
[0032] Specifically, elements in two drawings are placed in different layers, a relative relationship between a cable path and a track and a device is analyzed, key nodes such as a starting point and a terminal point of the cable are automatically recognized and marked, and graphic elements that are repeatedly drawn are deleted, so that a unified DWG file is constructed, a unified graphic interface including track layout, signal device position and cable path information is constructed, high integration and standardized expression of graphic information are realized, and a solid spatial support is provided for subsequent dynamic display of the cable path.
[0033] S205, drawing all graphic elements of railway implementation devices in the preliminary cable path diagram according to a device account to obtain a full-element cable path diagram.
[0034] Exemplarily, all graphic elements of the railway implementation devices are configured on the graphic interface, so that the graphic elements are drawn in the preliminary cable path diagram according to a selection of the user. For example, as shown in Figure 3 S205 includes the following sub-steps: S301, configuring a menu of all graphic elements of the railway implementation devices on the graphic interface according to the device account.
[0035] Specifically, the equipment account is a list or database recording basic information, installation position, technical parameters and associated relationship of all related equipment in the railway signal system, and is an important basis for equipment management and maintenance. According to the equipment account, all graphical element menus of the railway implementation equipment are set on the graphical interface of the CAD software.
[0036] The full-element list table can be set according to the equipment account, as shown in Table 1 below. The user selects the corresponding element in the menu according to the full-element list table.
[0037] Table 1
[0038] S302, in response to the target element drawing instruction input by the user, the coordinate position selected by the user is parsed.
[0039] The user selects the corresponding element in the menu as the target element drawing instruction. After the user selects the corresponding element in the menu, the position selected by the user on the graphical interface is parsed. S303, according to the target element, the corresponding drawing function in the graphical algorithm library is called to draw the graphics of the target element at the coordinate position.
[0040] Specifically, the related attribute information of the target element is obtained, including the type, color, size, transparency and other style attributes of the target element. According to the type of the target element, the corresponding drawing function is found and called from the preset graphical algorithm library. After the specific function is called, the graphical library will complete the drawing of the graphics at the specified coordinate position on the CAD graphical interface through operations such as drawing straight lines, curves, filling, clipping and generating blocks. By calling the corresponding drawing function in the graphical algorithm library, the efficiency of graphical drawing can be improved, and the consistency and compatibility of graphical drawing can be enhanced.
[0041] S304, in response to the next element drawing instruction input by the user, until all graphical elements of the equipment account are drawn, a full-element cable route map is obtained.
[0042] After the target element is drawn, the user selects the next element to be drawn in the menu according to the full-element list table, and selects the position of the next element on the graphical interface. According to the next element to be drawn selected by the user and the position of the next element selected by the user on the graphical interface, the corresponding drawing function in the graphical algorithm library is called again to draw the graphics of the next element to be drawn at the position of the next element. Until all graphical elements of the equipment account are drawn, a full-element cable route map is obtained.
[0043] Further, the user does not need to select the corresponding elements in the menu. When the full-element drawing instruction input by the user is acquired, the system acquires the station site image by using an image acquisition device, including but not limited to images acquired by unmanned aerial vehicle aerial photography, high-position camera shooting and the like, and identifies each graphic element in the station site image by using a target detection algorithm, and outputs a full-element list. Specifically, the full-element list includes each element and the corresponding position coordinates. According to the full-element list, the corresponding drawing function in the graphic algorithm library is called to draw the graphic of the target element at the coordinate position, so as to realize automatic identification and drawing of the full-element data account book.
[0044] Based on the full-element data account book, the automatic drawing is performed, so as to ensure that all facilities and equipment that should be included are accurately presented, and the integrity and standardization of the drawing are enhanced. The operation personnel can more quickly master the cable path and the surrounding facility situation during on-site positioning, maintenance or emergency repair, and the on-site maintenance and fault processing efficiency is improved.
[0045] S206, acquire cable running relationship data.
[0046] Specifically, the cable running relationship data includes basic cable information such as cable number and cable name, and starting end connection equipment and terminal connection equipment of the cable. As shown in Table 2.
[0047] Table 2
[0048] S207, based on the cable running relationship data, acquire graphic objects corresponding to each running relationship data from a graphic database.
[0049] Specifically, the cable running relationship data is sorted to ensure the consistency and standardization of the data. The graphic element retrieval based on the connection and wiring relationship is performed, for example, the corresponding graphic is retrieved in the layer of the graphic database of the CAD software according to the starting point and terminal point equipment ID or name in the connection and wiring data; the related equipment along the line is retrieved in the graphic database of the CAD software according to the intermediate node information in the connection and wiring data.
[0050] S208, data binding mapping is performed between the cable running relationship data and each graphic object in the full-element cable path diagram, so as to obtain a cable path diagram file.
[0051] Specifically, the cable running relationship data is written into the extended data area of the corresponding graphic of the cable path diagram CAD file. The file contains not only the full-element graphic, but also the cable running relationship data. By associating the data with the graphic in the file, the consistency and accuracy of the data are greatly improved, and the visual analysis capability is also enhanced.
[0052] S102, in response to the graphical display instruction of the target cable, obtaining the cable number of the target cable from the cable path map file.
[0053] The graphical display instruction of the target cable can be set according to actual application. For example, the double-click operation of the user on the target cable is taken as the graphical display instruction of the target cable. After receiving the graphical display instruction of the target cable, the cable number of the target cable is obtained from the cable path map file. For example, after the user double-clicks the cable path connecting the power distribution cabinet PDP-101 to the motor MTR-201 in the drawing, the system automatically obtains the cable number "CB-001" of the target cable.
[0054] S103, querying and obtaining the running relationship data of the target cable from the preset database according to the cable number.
[0055] It can be understood that the cable running relationship data is stored in the preset database, and the type of the database can be set according to actual application. For example, the database can be MySQL, Oracle, PostgreSQL, SQLite, etc. The connection relationship of the target cable can include the starting device, the starting port number, the terminal device, the terminal port number, etc.
[0056] S104, based on the cable running relationship data, retrieving the associated graphics of the target cable from the graphic database.
[0057] Based on the graphic elements in the cable running relationship data, the graphics of the target cable and its connected devices are retrieved from the graphic database.
[0058] S105, in response to the first layer creation instruction, loading the associated graphics to the newly created first layer for display, and hiding all graphics in the original layer of the cable path map file except the first layer, to generate a cable path map containing the associated graphics of the target cable.
[0059] In the graphic interface of the CAD software, the first layer is newly created, and the graphics of the target cable and the connected devices of the target cable are loaded onto the first layer for display after being broken, connected, constructed, corrected, and processed for connectivity. All layers outside the first layer are set to be hidden, as shown in FIG. 5, only the target cable is displayed. Figure 4 The graphic interface of the CAD software only displays the main path line of the target cable in the first layer, highlights the target object, enhances visual focus, avoids information redundancy interference, helps the user to quickly identify the starting point, the terminal point and the intermediate key node of the cable, significantly improves the operation efficiency and the operation efficiency, optimizes the operation and fault handling process.
[0060] Further, after generating the cable path diagram containing only the associated graphics of the target cable, in response to a reset instruction input by the user, the visibility state of all hidden graphics is restored, and the original layer display state is restored.
[0061] The reset instruction can be set according to actual application. When the reset instruction input by the user is received, the state history record of the layer is read, each layer is traversed, and the original state is restored, so that the user can freely switch between the focus mode and the global view, and the overall context information is avoided to be lost due to local viewing. At the same time, the consistency and controllability of the graphic interface state are ensured, the integrity and logical closed loop of the user experience are improved, and the dynamic switching and state restoration of the graphic view are realized.
[0062] Further, in addition to the above embodiment, in response to a graphic display instruction of the target cable, not only the target cable can be displayed alone, but also the peripheral equipment of the target cable can be displayed. Specifically, as shown in Figure 5 the graphic display instruction of the target cable, the generating method further includes: S601, using a spatial search algorithm to search for the peripheral equipment graphics within a preset distance of the target cable.
[0063] Exemplarily, the geographic hash algorithm is used to search for the peripheral equipment graphics within a preset distance of the target cable. The peripheral equipment can be a cable well, a warning sign, a stake, a tower, etc. Specifically, the preset distance can be set according to actual application.
[0064] Exemplarily, in an embodiment, as shown in Figure 6 S601 includes the following sub-steps: S701, based on the graphics in the cable path diagram file, using the geographic hash algorithm to generate corresponding position coding data, and constructing a graphic position coding database.
[0065] Specifically, based on the graphics in the cable path diagram file, the geographic coordinate data of the graphics is first obtained. Exemplarily, the geographic coordinate data is CAD coordinate data. The geographic coordinate data is converted to obtain longitude and latitude coordinate data. Based on the longitude and latitude coordinate data, corresponding position coding data is obtained. The path information and the position coding data are combined into structured data, and stored in a database. Exemplarily, the database is a database supporting spatial index function such as PostgreSQL, MongoDB, etc.
[0066] S702, using the geographic hash algorithm to obtain the position coding data of the graphics of the target cable.
[0067] Specifically, the geographic coordinate data of the target cable is obtained, including obtaining the longitude and latitude coordinates of the nodes from the target cable, encoding the longitude and latitude coordinates of the target cable, and obtaining the position coding data of the graphics of the target cable.
[0068] S703, constructing a geographic range query condition according to the position coding data and the preset distance.
[0069] Exemplarily, the preset distance is two meters, the distance value can be converted into string length data, and the search string is generated according to the string length value and the position coding data.
[0070] S704, performing a position query in the graphic position coding database, and matching the surrounding graphics that meet the query condition to take the surrounding graphics as the surrounding equipment graphics within the preset distance of the target cable.
[0071] The search string matching data is queried in the graphic position coding database, and all graphics matching the search string are output as the surrounding equipment graphics of the target cable. By using the geographic coding index mechanism, the position coding library of the graphics is generated in advance during the loading stage of the drawing, the target object is quickly located by string matching during the search, the distance calculation mode of the traditional CAD software is avoided, the search speed is greatly improved, and the fast identification of the surrounding equipment under the single-cable perspective is realized. S602, in response to a second layer creation instruction, loading the surrounding equipment graphics to the newly created second layer for superimposed display.
[0072] The first layer is newly created in the graphic interface of the CAD software, and the surrounding equipment graphics are loaded to the newly created second layer for superimposed display.
[0073] S603, hiding the graphics in the original layer except the first layer and the second layer, and generating a cable path diagram containing the associated graphics of the target cable and the surrounding equipment.
[0074] All layers except the first layer and the second layer are set to be hidden, and the graphic interface of the CAD software only displays the main path line of the target cable in the first layer and the surrounding equipment of the target cable in the second layer. By using the “focus” view switching, only the target cable and the surrounding key facility graphics are displayed, the readability and professionalism of the graphic information are significantly improved; and the surrounding key facility graphics can be synchronously displayed, helping the operation personnel to quickly master the physical environment of the target cable and the positions of the related facilities.
[0075] Further, on the basis of the above embodiment, the pop-up window can be used to realize the graphic-number linkage browsing, as shown in Figure 7 In an embodiment, after S101, the generation method further includes: S801, in response to a data viewing instruction of the target cable, obtaining the cable number of the target cable from the cable path diagram file.
[0076] The data viewing instruction of the target cable can be set according to actual application, and the mouse of the user is exemplarily hovered over the target cable as the data viewing instruction of the target cable. After the data viewing instruction of the target cable is received, the cable number of the target cable is acquired from the cable path diagram file.
[0077] S802, data information of the target cable is acquired from a preset database according to the cable number.
[0078] It can be understood that the cable running relationship data is stored in the preset database, and the type of the database can be set according to actual application. Specifically, the data information of the target cable can be length, buried depth, running direction and the like of the target cable.
[0079] S803, a pop-up window display module is called to display the data information in the form of a floating window on the graphical interface.
[0080] The related information of the target cable is displayed by the pop-up window, as shown in Figure 8 .
[0081] By means of “hovering to display”, the key attribute information of the cable can be quickly acquired without clicking or additional operation, and the interactive efficiency of the drawing review is significantly improved. Moreover, a traceable mapping relationship is established between each cable graphic and the corresponding business data, the graphic and data integrated management is realized, the non-professional personnel can also quickly understand and use the complex railway signal cable drawing through the intuitive graphical interface and instant feedback mechanism, so that the overall ease of use of the system is improved.
[0082] As shown in Figure 9 , based on the method of the above embodiment, the embodiment provides a railway signal cable path diagram generation system, which exemplarily includes: A file acquisition module 110 acquires a cable path diagram file, and the cable path diagram file includes a station yard layout diagram and cable wiring information. A cable number acquisition module 120 acquires a cable number of a target cable from the cable path diagram file in response to a graphic display instruction of the target cable. A data query module 130 queries and acquires running relationship data of the target cable from a preset database according to the cable number. A graphic retrieval module 140 retrieves associated graphics of the target cable from a graphic database based on the running relationship data. A layer creation module 150 loads the associated graphics to a newly created first layer for visual display in response to a first layer creation instruction, hides all graphics in the original layer of the cable path diagram file except the first layer, and generates a cable path diagram containing the associated graphics of the target cable.
[0083] It can be understood that the system of the embodiment corresponds to the generation method of the above-mentioned embodiment, and the optional items in the above-mentioned embodiment are also applicable to the embodiment, and therefore will not be repeated here.
[0084] The application further provides a computer device, which exemplarily comprises a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to enable the device to perform the functions of each module in the above-mentioned railway signal cable path generation method or the above-mentioned railway signal cable path generation system.
[0085] The processor can be an integrated circuit chip with a processing capability of signals. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, a discrete gate or transistor logic device, a discrete hardware component, or at least one of the above. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor or the like, and can realize or execute the disclosed methods, steps and logic block diagrams in the embodiments of the application.
[0086] The memory can be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), and the like. The memory is used to store a computer program, and the processor can execute the computer program after receiving an execution instruction.
[0087] The application further provides a computer readable storage medium for storing the computer program used in the terminal device. For example, the computer readable storage medium can include, but is not limited to, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage media that can store program codes.
[0088] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can also be implemented by other manners. The apparatus embodiments described above are only schematic, for example, the flow charts and structural diagrams in the drawings show the possible implementation architectures, functions and operations of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flow charts or structural diagrams can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logic function. It should also be noted that, in alternative implementation manners, the functions noted in the blocks can also occur in different orders from those noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can also be executed in reverse order, depending on the functions involved. It should also be noted that each block in the structural diagram and / or flow chart, and the combination of blocks in the structural diagram and / or flow chart, can be implemented by a dedicated hardware-based system for executing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0089] In addition, the functional modules or units in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0090] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for causing a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application.
[0091] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application.
Claims
1. A method of generating a railway signal cable route map, characterized by, The method comprises: obtaining a cable path map file, the cable path map file comprising a station layout and cable wiring information; in response to a graphical display instruction of a target cable, obtaining a cable number of the target cable from the cable path map file; querying and obtaining the target cable's running relationship data from a preset database according to the cable number; based on the running relationship data, retrieving the target cable's associated graphics from a graphics database; in response to a first layer creation instruction, loading the associated graphics to a newly created first layer for display, and hiding all graphics in the original layer of the cable path map file except the first layer, to generate a cable path map containing the target cable's associated graphics.
2. The method of generating a railway signal cable route map according to claim 1, characterized by, The response to the graphical display instruction of the target cable further comprises: using a spatial retrieval algorithm to find the peripheral equipment graphics within a preset distance of the target cable; in response to a second layer creation instruction, loading the peripheral equipment graphics to a newly created second layer for superimposed display; hiding the graphics in the original layer except the first layer and the second layer, to generate a cable path map containing the target cable's associated graphics and the peripheral equipment.
3. The method of generating a railway signal cable route map according to claim 2, wherein, The use of a spatial retrieval algorithm to find the peripheral equipment graphics within a preset distance of the target cable comprises: based on the graphics in the cable path map file, using a geographic hash algorithm to generate corresponding location encoding data and construct a graphic location encoding database; using the geographic hash algorithm to obtain the location encoding data of the graphics of the target cable; constructing a geographic range query condition according to the location encoding data and the preset distance; performing a location query in the graphic location encoding database, matching the peripheral graphics that meet the query condition, to take the peripheral graphics as the peripheral equipment graphics within a preset distance of the target cable.
4. The method of generating a railway signal cable route map according to claim 3, wherein, The use of a geographic hash algorithm to generate corresponding location encoding data comprises: obtaining geographic data of the graphics; converting the geographic data to obtain latitude and longitude coordinate data; based on the latitude and longitude coordinate data, obtaining corresponding location encoding data.
5. The method of generating a railway signal cable route map according to claim 1, wherein, After obtaining the cable path map file, it further comprises: in response to a data viewing instruction of the target cable, obtaining the cable number of the target cable from the cable path map file; according to the cable number, obtaining data information of the target cable from a preset database; calling a pop-up window display module to display the data information in the form of a floating window on the graphic interface.
6. The method of generating a railway signal cable route map according to claim 1, wherein, The obtaining of the cable path map file comprises: obtaining a station layout; using an image filtering algorithm to remove redundant graphics and annotation text in the station layout, to generate a simplified station layout; obtaining a double-track cable path map; performing layer fusion on the simplified station layout and the double-track cable path map, to generate a preliminary cable path map; according to the equipment account, drawing all graphic elements of railway implementation equipment in the preliminary cable path map, to obtain a full-element cable path map; obtaining cable running relationship data; obtain, from a graph database, a graph object corresponding to each of the cable route relationship data based on the cable route relationship data; bind and map the cable route relationship data and each of the graph objects of the full-element cable route map to obtain the cable route map file.
7. The method of generating a railway signal cable route map according to claim 6, wherein, The drawing of all the graph elements of the railway implementation equipment in the preliminary cable route map according to the equipment account book comprises: configuring all the graph elements of the railway implementation equipment according to the equipment account book in a graphical interface; in response to a target element drawing instruction input by a user, analyze a coordinate position selected by the user in the preliminary cable route map; in response to a next element drawing instruction input by the user, until all the graph elements of the equipment account book are drawn to obtain the full-element cable route map. After the generation of the cable route map containing the associated graph of the target cable, the method further comprises:
8. The method of generating a railway signal cable route map according to claim 1 or 2, characterized by, in response to a reset instruction input by the user, restore the visibility of all the hidden graphs and restore the original layer display state. The method comprises:
9. A railway signal cable route map generation system characterized by comprising: a file acquisition module that acquires a cable route map file, the cable route map file comprising a station yard layout plan and cable wiring information; a cable number acquisition module that, in response to a graph display instruction of a target cable, acquires a cable number of the target cable from the cable route map file; a data query module that, according to the cable number, queries and acquires route relationship data of the target cable from a preset database; a graph retrieval module that, based on the route relationship data, retrieves the associated graph of the target cable from a graph database; a layer creation module that, in response to a first layer creation instruction, loads the associated graph to a newly created first layer for display, hides all the graphs in the original layer of the cable route map file except the first layer, and generates a cable route map containing the associated graph of the target cable. The computer device comprises a processor and a memory, the memory storing a computer program, and the processor is configured to execute the computer program to implement the method for generating a railway signal cable route map according to any one of claims 1-8.
10. A computer device, comprising: