Gallery update method, gallery update apparatus, electronic device, and storage medium
By extracting and configuring station wiring diagrams from signal layout drawings and updating the target library, the problem of low efficiency in signal layout drawing is solved, and automatic configuration and efficient drawing under different design principles are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA RAILWAY SIGNAL & COMM
- Filing Date
- 2022-06-14
- Publication Date
- 2026-07-10
AI Technical Summary
Existing technologies have low efficiency in drawing signal plan diagrams and cannot achieve universal layout of signal equipment. In particular, when the design principles of different cities and owners vary greatly, it is impossible to draw all graphic elements in batches.
This paper provides a method for updating a map library. By extracting station wiring diagrams from any signal layout plan, configuring station elements, and updating the target map library, the method supports both custom and automatic configuration of station elements. It also utilizes CAD secondary development auxiliary software to achieve flexible updates of the map library.
Given the significant differences in signal layout design principles, the system enables automatic configuration and generation of station elements, improving the flexibility of library configuration and drawing efficiency.
Smart Images

Figure CN115114310B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for updating a photo library. Background Technology
[0002] Subway signaling layout plans (including engineering data diagrams) are plan drawings depicting the arrangement of signaling equipment based on the subway line map. They serve as the foundation for subsequent signaling system design drawings. To improve the efficiency of plan drawing creation, secondary development based on AutoCAD software provides solutions and auxiliary software for quickly drawing signaling layout plans. Current methods for improving the efficiency of signaling layout plan drawing creation are mainly as follows:
[0003] I. To study and summarize the layout methods of signaling equipment (signals, switch machines, axle counters, transponders, vehicle-to-ground communication equipment, platforms, etc.) and form general principles and methods for equipment layout.
[0004] Because different cities and owners have different design requirements, and different signal system integrators have different design principles for each line, the automatic placement method of signal equipment strictly depends on specific design principles, which makes the placement method of signal equipment not universal.
[0005] II. Provide batch drawing function for some graphic elements: such as kilometer markers, slopes, speed limits, etc., which can be batch drawn by reading the input table.
[0006] Due to the different track layouts at stations, it is not possible to batch draw all graphic elements, such as turnout elements, track elements, and platform elements. Summary of the Invention
[0007] This invention provides a library update method, library update device, electronic device, and storage medium to solve the technical problem of low efficiency in signal plane diagram drawing in the prior art.
[0008] This invention provides a method for updating a photo library, comprising:
[0009] Extract the station wiring diagram from any signal layout plan;
[0010] The station elements in the station layout diagram are configured to obtain the first configured station element.
[0011] Update the target image library based on the first station image elements.
[0012] In some embodiments, before configuring the station elements in the station layout diagram to obtain the configured first station element, the method further includes:
[0013] Based on the line elements in the station wiring diagram, the insertion point of the station element is determined. The insertion point of the station element is used to indicate the insertion position of the station element in any signal plane layout diagram.
[0014] Based on the insertion point of the station map element, the station map element is stored in the target configuration directory.
[0015] In some embodiments, configuring the station elements in the station layout diagram to obtain a configured first station element includes:
[0016] Based on the target configuration directory, the configuration files and attribute configuration files of the station map elements are configured to obtain the first station map element.
[0017] In some embodiments, the method further includes:
[0018] Receive the first input for the second station map element in the target map library;
[0019] In response to the first input, the second station element is displayed on the target signal layout plan based on the insertion point of the second station element.
[0020] In some embodiments, before displaying the second station element on the target signal layout plan, the method further includes:
[0021] The line elements included in the second station map and the line elements in the target signal plan layout are merged;
[0022] Update the target attribute information of the signal equipment elements in the target signal layout diagram, wherein the target attribute information is attribute information related to the line.
[0023] In some embodiments, merging the line elements included in the second station map and the line elements in the target signal layout map includes:
[0024] The track segment elements included in the second station area map and the track segment elements in the target signal plan layout map are merged to generate the target track segment elements, which include the target axle counting segment elements and the target logic segment elements.
[0025] The present invention also provides a gallery update device, comprising:
[0026] The capture module is used to capture station wiring diagrams from any signal layout plan.
[0027] The configuration module is used to configure the station elements in the station wiring diagram to obtain the first configured station element.
[0028] The display module is used to update the target map library based on the first station map elements.
[0029] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the gallery update method as described above.
[0030] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the gallery update method as described above.
[0031] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the gallery update method as described above.
[0032] The library update method, library update device, electronic device and storage medium provided by the present invention can define station layout elements by extracting station wiring diagrams from any signal layout diagram and automatically update the local target library. This enables the automatic configuration and generation of station layout elements using any signal layout diagram when there are large differences in the design principles of the signal layout diagrams. It can also improve the flexibility of library configuration and thus improve drawing efficiency. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0034] Figure 1 This is a flowchart illustrating the image library update method provided by the present invention;
[0035] Figure 2 This is one of the schematic diagrams of a gallery using the gallery update method provided by the present invention;
[0036] Figure 3 This is a schematic diagram of a primitive configuration file using the library update method provided by the present invention;
[0037] Figure 4 This is a schematic diagram of the attribute configuration file for applying the gallery update method provided by this invention;
[0038] Figure 5 This is a schematic diagram of line merging using the library update method provided by this invention;
[0039] Figure 6 This is the second schematic diagram of a gallery using the gallery update method provided by the present invention;
[0040] Figure 7 This is a schematic diagram of the image library update device provided by the present invention;
[0041] Figure 8 This is a schematic diagram of the physical structure of the electronic device provided by the present invention. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0043] Figure 1 This is a flowchart illustrating the image library update method provided by the present invention. (Refer to...) Figure 1 This invention provides a gallery update method, which may include steps 110, 120 and 130.
[0044] It should be noted that the execution subject of the gallery update method provided by this invention can be an electronic device, a component in an electronic device, an integrated circuit, or a chip. The electronic device can be a mobile electronic device or a non-mobile electronic device. For example, a mobile electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, wearable device, Ultra-Mobile Personal Computer (UMPC), netbook, or Personal Digital Assistant (PDA), etc., while a non-mobile electronic device can be a server, Network Attached Storage (NAS), Personal Computer (PC), etc. This invention does not impose specific limitations.
[0045] The technical solution of this invention will be described in detail below using a computer to execute the gallery update method provided in this application as an example.
[0046] Step 110: Extract the station wiring diagram from any signal layout plan.
[0047] It is understood that the embodiments of the present invention are completed by auxiliary software based on computer-aided design (CAD) software for secondary development. This auxiliary software can provide signal plan diagrams (engineering data diagrams) for drawing and realize the basic input for the automatic generation of subsequent drawings and product data of the signal system.
[0048] The signal equipment layout plan is drawn based on the station track map, reflecting the arrangement of the track and the direction of train arrival and departure; it determines the location of the signal tower and the scope of the centralized interlocking area; it indicates the names, numbers, and locations of the signals and turnouts, and delineates the track circuit sections. The station signal equipment layout plan is the basis for designing the station interlocking circuit and an important reference for the design and construction of station signal engineering.
[0049] A station yard refers to a railway station as its center, with entrance and exit signals on both sides of the line's up and down tracks. The station yard is defined by the entrance signals on both sides; everything inside is considered part of the station yard. Arrival and departure areas, passenger waiting halls, shunting yards, throat areas, maintenance areas, inspection areas, lead tracks, locomotive running lines, etc., are all included within the station yard.
[0050] In step 110, the current drawing can be truncated to the left and right by drawing left and right boundary lines in any signal layout drawing, thereby extracting the station wiring diagram.
[0051] In actual implementation, the auxiliary software based on CAD secondary development provided in this embodiment of the invention can provide drawing truncation commands to cut the drawing left and right, separate the station wiring diagram, and delete or add some redundant or missing equipment.
[0052] Different signal layout diagrams have different design principles. The embodiments of the present invention can directly obtain the station wiring diagram using the existing signal layout diagram, and then configure and generate station elements, which has a wide range of applications.
[0053] Step 120: Configure the station elements in the station layout diagram to obtain the first configured station element.
[0054] In step 120, the auxiliary software based on CAD secondary development provided by the present invention can provide an automatic configuration function. By selecting all or part of the range of station wiring diagrams to be saved, and inputting the names of the graphic elements of the target station area to be generated, the station wiring diagrams are automatically exported to the specified configuration directory and the configuration file is modified, thereby obtaining the first station area graphic elements.
[0055] The configuration of the first station's graphic elements is flexible. Basic sub-graphic element DWG files can be used to assemble graphic elements of various styles. It supports manual modification and customization as well as automatic configuration.
[0056] Step 130: Update the target map library based on the first station map elements.
[0057] In step 130, after the first station site map element is configured, it can be directly stored in the local target map library, thus updating the target map library. After reloading the target map library, the newly added first station site map element can be displayed in the target map library.
[0058] The target map library may include track elements, turnout elements, signal elements, etc., and the map library can be expanded and updated using the map library update method provided by this invention.
[0059] All station elements in the target map library are in DWG file format. All basic signal elements in the station map must be drawn using this auxiliary software or automatically generated by this auxiliary software to ensure that all basic elements in the station map can be automatically recognized by this auxiliary software.
[0060] like Figure 2 As shown, the target image library is... Figure 2 The metro map library contains graphic elements for different types of equipment. The first station element is "Typical Station-01". After the CAD software loads the map library, the corresponding typical station element will be displayed in the metro map library. This means that you can open the metro map library and insert the typical station element into your drawings.
[0061] When you need to insert “Typical Station-01” after a specified line, simply select the configured typical station insertion command in the metro map library.
[0062] The target map library in the auxiliary software provided by this invention can support users to customize typical stations. Based on the summary and induction of the wiring of common typical subway stations, a basic typical station map library can be formed.
[0063] The design principles for subway signaling plans vary significantly across cities and engineering projects, making methods that rely on these principles to improve drawing efficiency ineffective. This invention addresses this by minimizing restrictions on design principles and allowing users to automatically acquire and configure station elements directly from existing signaling layout plans, offering high cost-effectiveness and adaptability.
[0064] The library update method provided by this invention can customize station elements by extracting station wiring diagrams from any signal plan layout diagram and automatically update the local target library. This enables the automatic configuration and generation of station elements using any signal plan layout diagram even when there are significant differences in the design principles of the signal plan layout diagrams. It can also improve the flexibility of library configuration and thus improve drawing efficiency.
[0065] In some embodiments, before configuring the station yard elements in the station yard wiring diagram to obtain the first configured station yard element, the method further includes:
[0066] Based on the line elements in the station wiring diagram, the insertion point of the station element is determined. The insertion point of the station element is used to indicate the insertion position of the station element in any signal plane layout diagram.
[0067] Based on the insertion point of the station map element, store the station map element to the target configuration directory.
[0068] In practice, after determining the scope of the station layout diagram, in addition to entering the element names, it is also necessary to determine the element insertion points. For example, the origin of the station drawing, i.e., the coordinates (0,0,0), can be specified as the insertion point for the station elements.
[0069] You can select the endpoint of the line element in the station wiring diagram as the insertion point. The entire drawing can be moved around this point as the base point. After moving to the origin, the moved drawing is saved as a DWG file and stored in the target configuration directory specified by the auxiliary software.
[0070] Understandably, choosing the endpoints of line elements as insertion points facilitates alignment between station elements.
[0071] The library update method provided by this invention facilitates the insertion of map elements by specifying the insertion point of the station map elements, thereby improving drawing efficiency.
[0072] In some embodiments, configuring the station yard elements in the station yard wiring diagram to obtain a configured first station yard element includes:
[0073] Based on the target configuration directory, the configuration files and attribute configuration files of the station's map elements are configured to obtain the first station map element.
[0074] In practice, the formats of the element configuration file and the element attribute configuration file can include, but are not limited to, XML text files. The element configuration file is used to record the name, category, and composition of the element, while the element attribute configuration file can record the attributes attached to the element. For station elements, the element configuration file records the name, category, and composition of the station (indicated by the location of the DWG drawing file storing the station map).
[0075] For example: primitive configuration file such as Figure 3 As shown, the attribute configuration file for the graphic element is as follows: Figure 4As shown. The attribute configuration file for graphic elements is properties.xml. The attributes of graphic elements can be flexibly added or removed by modifying the properties.xml file according to user needs or subsequent business development. Each type of graphic element should be configured with the relevant attributes in its corresponding block.xml file.
[0076] exist Figure 4 In the `<property>` tag, fields include name, type, description, isEdit, and isBatch. The specific meanings and usage of these fields are explained below:
[0077] name is the name of the attribute.
[0078] The type field specifies the type of the attribute. If the attribute has multiple options, this field needs to be configured as "MultiString".
[0079] The description is the attribute name used by the user for identification. It will directly map the attribute to the attribute editing box, making it easy for the user to understand the name.
[0080] The check flag indicates whether the attribute has been reserved by the program (disallowing user configuration). 1 means that users are not allowed to configure it freely, and 0 means there is no such restriction.
[0081] `isEdit` determines whether a user is allowed to modify the value of an attribute. "true" means the attribute can be set in the attribute editing interface; "false" means the attribute cannot be modified in the attribute editing interface.
[0082] `isBatch` specifies whether users are allowed to modify attribute values in the batch attribute modification interface. "true" means allowed, and "false" means not allowed. Note that if the `isEdit` field is false, batch modification of this attribute value is not allowed regardless of whether the field is true or false.
[0083] Schemaless: This attribute determines whether the data is exported directly from the engineering data table template without any processing logic from the program. When set to true, it takes effect; the corresponding sheet in the engineering data table template adds this attribute column, allowing direct export of user-entered values from the engineering data table. This attribute is designed to ensure that even if temporary attributes are added to certain devices due to future project changes, the tool can still export the required engineering data table without modifying the code.
[0084] The Item tag is used to configure the value of this attribute. The meaning and usage of the corresponding fields are explained below:
[0085] The name is a value designed to help users distinguish between different products.
[0086] The type field specifies the value type for the corresponding value column.
[0087] The value is the attribute value stored internally by the software.
[0088] description: Same as the description value for Property.
[0089] The library update method provided by this invention allows users to use the new target library simply by modifying the configuration file after changing or adding new graphic elements. The definition of graphic elements and attributes is separated from the software code, eliminating the need for developers to modify the code or recompile the software.
[0090] In some embodiments, the gallery update method further includes:
[0091] Receive the first input for the second station map element in the target map library;
[0092] In response to the first input, the second station element is displayed on the target signal layout plan based on the insertion point of the second station element.
[0093] The first input can be the operation of selecting a second station site element from the target map library. For example, after the target map library is opened in the auxiliary software, the user completes the first input by clicking, thereby selecting the second station site element on the target map library's display interface. In response to the first input, the second station site element can be displayed on the target signal layout plan.
[0094] In practice, the completed target signal layout plan can be opened, and the required second station elements can be selected in the drawing. Automatic splicing of the current drawing and the second station elements can be achieved with a single click. Besides copying elements and their associated attributes, automatic splicing requires careful consideration of the segment and line merging processes at the splicing point.
[0095] For example, when inserting a second station site element in the drawing workspace, the auxiliary software will automatically read the DWG file corresponding to the second station site element configured in the element configuration file, and copy all elements using the insertion point of the second station site element as the base point.
[0096] The library update method provided by this invention can splice the target signal plan layout map with the second station map elements in the target signal plan layout map.
[0097] In some embodiments, before displaying the second station elements on the target signal layout plan, the method further includes:
[0098] The line elements included in the second station map and the line elements in the target signal layout map are merged.
[0099] Update the target attribute information of the signal equipment elements in the target signal layout diagram. The target attribute information is the attribute information related to the line.
[0100] It should be noted that line merging is mainly based on the insertion points on line elements. It merges line elements to achieve station splicing and the insertion and splicing of typical stations. Line merging automatically completes the connection of the line and the main section and branchless section at the splicing point. It should be noted that merging can currently only be achieved when both sides of the merging point are axle counting points. Dual lines require two separate operations.
[0101] In practice, after selecting the "Insert Second Station Element" command in the target signal layout plan, choose the insertion point, preferably the right end of the upper line. Otherwise, you need to manually adjust the position to align the lines on both sides. If the lines of the second station are not aligned with the existing station after insertion, you need to manually move or stretch the lines to align the two ends of the lines (the distance between the lines on both sides must be less than 0.5, otherwise merging the lines will fail and an error message will be displayed).
[0102] After inserting and aligning the second station element in the target signal layout plan, the entities contained in the newly inserted second station element do not yet have a connection relationship. It is necessary to select the line merging command to merge the lines on both sides of the upper and lower insertion points respectively.
[0103] like Figure 5 As shown, the line to be joined on the left is the first line, and the line to be joined on the right is the second line. First, you need to use the "move" command in CAD to align the right endpoint of the line to be joined on the left with the left endpoint of the line to be joined on the right. Then, select "Lines" from the library, and further select the "Line Merge" command, as shown below. Figure 6 As shown. After the command selection is completed, the prompt "Select the first line object" appears. Selecting the first line is successful, and the prompt "First line selected successfully!" appears. Then, selecting the second line is successful, and the prompt "Second line selected successfully!" appears. After selecting both lines, the prompt asks whether to merge the lines. Selecting "Yes" will merge the lines, while selecting "No" will cancel the operation.
[0104] Understandably, after the line merging is completed, the target attribute information of the signal equipment elements in the target signal layout diagram is updated. The target attribute information is attribute information related to the line. For example, attributes such as: the equipment belongs to a certain line, the equipment belongs to a certain section, etc.
[0105] Further update the attributes of all graphic elements and copy the original attribute information set in the second station graphic elements.
[0106] The library update method provided by this invention can splice the target signal plan layout map with the second station map elements in the target signal plan layout map.
[0107] In some embodiments, merging the line elements included in the second station layout map and the line elements in the target signal plan includes:
[0108] The track segment elements included in the second station area map and the track segment elements in the target signal layout map are merged to generate the target track segment elements, which include the target axle counting segment elements and the target logic segment elements.
[0109] Understandably, the target map library can enable one-click insertion of second station map elements. After insertion, it is necessary to consider the impact of the insertion on the line map elements and track section map elements (including axle counting section map elements, logical section map elements, and track section map elements). It is necessary to consider merging and copying and pasting the line map elements, axle counting section map elements, logical section map elements, and track section map elements before and after insertion.
[0110] Simultaneously, the impact of the basic equipment element attributes before and after splicing needs to be considered. The elements at the splicing point need to be set with the element attributes before splicing as the last setting, while the element attributes outside the splicing point retain their original attributes. The station element splicing function only has requirements for the splicing point and has no restrictions on the specific configuration of the station. It can support different personnel to draw different centralized areas and then automatically splice them.
[0111] In actual implementation, the track segment elements at the insertion point of the route element are merged, and the target axle counting segment element and the target logical segment element are automatically generated.
[0112] The station and yard lines at the insertion point are merged. The starting point of the line is set as the starting point of the line element in the original target signal layout diagram, and the ending point is set as the ending point of the line element in the second station and yard diagram.
[0113] The library update method provided by this invention can splice the target signal plan layout map with the second station map elements in the target signal plan layout map.
[0114] In some embodiments, XML files are used as the library element configuration file and element attribute configuration file to define the standard elements and element attributes of the subway library. The dynamic configuration device of the element library is loaded into CAD to display the subway library. Using this auxiliary software device, typical station wiring diagrams are drawn, saved, and the library configuration is manually modified to complete the design and configuration of typical station wiring elements.
[0115] (1) Using the graphic element library panel, and using all the graphic elements of the urban rail signal plan provided by the secondary development auxiliary software, complete the drawing of typical station wiring diagrams.
[0116] (2) Select the leftmost point of the line elements in the typical station wiring diagram as the insertion point (that is, move the entire drawing with this point as the base point to the origin of the coordinates), and save the moved drawing as a DWG file and store it in the configuration directory specified by the auxiliary software.
[0117] (3) Open the graphic element configuration file and modify the graphic element library panel configuration file xml: add a graphic element configuration node, specifying the name of the typical station graphic element to be displayed, the command to be called, and the storage path of the typical station graphic element. And add default attribute configuration as needed.
[0118] (4) Reload the graphic element library panel to see the newly added typical station graphic elements.
[0119] In some embodiments, by using the gallery panel, the required typical station wiring elements can be selected, and the current drawing can be automatically spliced with the typical station wiring elements with one click. In addition to copying the elements and their associated attributes, automatic splicing requires careful consideration of the segment and line merging processing at the splicing point.
[0120] (1) When inserting typical station elements in the drawing workspace, the auxiliary software will automatically read the typical station DWG file configured in the element configuration file and copy all elements with the insertion point as the base point.
[0121] (2) Merge the axle counting segments at the insertion point and automatically generate one axle counting segment and one logical segment;
[0122] (3) For the line at the insertion point, merge the typical station lines, set the starting point of the line as the starting point of the original line, and set the ending point as the ending point of the line in the typical station graphic element.
[0123] (4) Update all signal elements and line-related attributes, such as whether the device belongs to a line or section;
[0124] (5) Update the attributes of all graphic elements, and set the copied graphic elements to the original attributes of the typical station graphic elements.
[0125] In some embodiments, this auxiliary software device can be used to extract a portion of the graphic elements in the current drawing with a single click, automatically exporting a typical station wiring diagram. Most typical station graphic elements can be directly obtained from existing signal plan drawings; the auxiliary software, developed through CAD secondary development, can provide rapid acquisition and configuration of typical station graphic elements.
[0126] (1) Provides a drawing truncation command to truncate the drawing to the left and right, separate typical station wiring diagrams, and delete or add some redundant or missing equipment.
[0127] (2) Provides automatic configuration function. By selecting all or part of the range of station wiring diagrams to be saved, and inputting the graphic element names and insertion points of typical stations to be generated, the program automatically exports the station wiring diagram to the specified configuration directory and modifies the graphic element configuration file.
[0128] (3) Reload the graphic element library panel to see the newly added typical station graphic elements.
[0129] The image library update apparatus provided by the present invention is described below. The image library update apparatus described below can be referred to in correspondence with the image library update method described above.
[0130] Figure 7 This is a schematic diagram of the image library update device provided by the present invention. (Refer to...) Figure 7 This invention provides a gallery update device, which may include: a capture module 710, a configuration module 720, and a display module 730.
[0131] The interception module 710 is used to intercept the station wiring diagram from any signal plan layout diagram;
[0132] The configuration module 720 is used to configure the station elements in the station wiring diagram to obtain the first configured station element.
[0133] Display module 730 is used to update the target map library based on the first station map elements.
[0134] The library update device, electronic device, and storage medium provided by this invention can extract station wiring diagrams from any signal plan layout diagram, customize station elements, and automatically update the local target library. This enables the automatic configuration and generation of station elements using any signal plan layout diagram even when there are significant differences in the design principles of the signal plan layout diagrams. It can also improve the flexibility of library configuration and thus enhance drawing efficiency.
[0135] In some embodiments, the apparatus further includes:
[0136] The determination module is used to determine the insertion point of the station yard element based on the line element in the station yard wiring diagram. The insertion point of the station yard element is used to indicate the insertion position of the station yard element in any signal plane layout diagram.
[0137] The storage module is used to store the station map elements to the target configuration directory based on the insertion point of the station map elements.
[0138] In some embodiments, the configuration module 720 is further configured to:
[0139] Based on the target configuration directory, the configuration files and attribute configuration files of the station map elements are configured to obtain the first station map element.
[0140] In some embodiments, the apparatus further includes:
[0141] The receiving module is used to receive the first input to the second station map element in the target map library;
[0142] An insertion module is configured to, in response to the first input, display the second station element on the target signal layout plan based on the insertion point of the second station element.
[0143] In some embodiments, the apparatus further includes:
[0144] The merging module is used to merge the line elements included in the second station map and the line elements in the target signal plan layout.
[0145] The update module is used to update the target attribute information of the signal equipment elements in the target signal plan layout diagram, wherein the target attribute information is attribute information related to the line.
[0146] In some embodiments, the merging module is further used for
[0147] The track segment elements included in the second station area map and the track segment elements in the target signal plan layout map are merged to generate the target track segment elements, which include the target axle counting segment elements and the target logic segment elements.
[0148] Figure 8 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a gallery update method, which includes:
[0149] Extract the station wiring diagram from any signal layout plan;
[0150] The station elements in the station layout diagram are configured to obtain the first configured station element.
[0151] Update the target image library based on the first station image elements.
[0152] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0153] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program that can be stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is able to execute the gallery update method provided by the above methods, the method comprising:
[0154] Extract the station wiring diagram from any signal layout plan;
[0155] The station elements in the station layout diagram are configured to obtain the first configured station element.
[0156] Update the target image library based on the first station image elements.
[0157] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the gallery update method provided by the methods described above, the method comprising:
[0158] Extract the station wiring diagram from any signal layout plan;
[0159] The station elements in the station layout diagram are configured to obtain the first configured station element.
[0160] Update the target image library based on the first station image elements.
[0161] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0162] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0163] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for updating a photo library, characterized in that, include: Extract the station wiring diagram from any signal layout plan; Based on the line elements in the station wiring diagram, the insertion point of the station element is determined. The insertion point of the station element is used to indicate the insertion position of the station element in any signal plane layout diagram. Based on the insertion point of the station map element, store the station map element in the target configuration directory; Based on the target configuration directory, the configuration files and attribute configuration files of the station map elements are configured to obtain the first station map element; Update the target image library based on the first station image elements.
2. The image library update method according to claim 1, characterized in that, The method further includes: Receive the first input for the second station map element in the target map library; In response to the first input, the second station element is displayed on the target signal layout plan based on the insertion point of the second station element.
3. The image library update method according to claim 2, characterized in that, Before displaying the second station element on the target signal layout plan, the method further includes: The line elements included in the second station map and the line elements in the target signal plan layout are merged; Update the target attribute information of the signal equipment elements in the target signal layout diagram, wherein the target attribute information is attribute information related to the line.
4. The image library update method according to claim 3, characterized in that, The step of merging the line elements included in the second station map and the line elements in the target signal layout map includes: The track segment elements included in the second station area map and the track segment elements in the target signal plan layout map are merged to generate the target track segment elements, which include the target axle counting segment elements and the target logic segment elements.
5. A gallery update device, characterized in that, include: The capture module is used to capture station wiring diagrams from any signal layout plan. The configuration module is used to determine the insertion point of the station yard element based on the line element in the station yard wiring diagram. The insertion point of the station yard element is used to indicate the insertion position of the station yard element in any signal plane layout diagram. Based on the insertion point of the station map element, the station map element is stored in the target configuration directory; Based on the target configuration directory, the configuration files and attribute configuration files of the station map elements are configured to obtain the first station map element; The display module is used to update the target map library based on the first station map elements.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the gallery update method as described in any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the gallery update method as described in any one of claims 1 to 4.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the gallery update method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Signal equipment primitive data model establishment method and system
CN113696935A