Automatic thematic map construction method for operation and maintenance business of power system

Through the automatic construction method of special maps for power system operation and maintenance services, a custom operation and maintenance topology model was established and subnet division and labeled, the problem of inflexible construction of special maps in operation and maintenance in traditional methods was solved, and the operation and maintenance of power system was improved Efficiency and applicability of thematic map.

CN119295598APending Publication Date: 2025-01-10STATE GRID ZHEJIANG ELECTRIC POWER CO LTD NINGBO POWER SUPPLY CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411226732.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The traditional grid operation and maintenance special map construction method cannot flexibly define the key characteristics of the operation and maintenance model, resulting in low operation and maintenance efficiency and poor applicability, and the power grid model cannot be quickly constructed and modified, which in turn affects the operation and maintenance efficiency of the power system.

Method used

Using the automatic construction method of special maps for power system operation and maintenance services, we can establish a customized operation and maintenance topology model by obtaining operation and maintenance data, perform subnet division and layout and routing, and combine multiple types of annotations to realize the construction of operation and maintenance topic maps and improve the construction of operation and maintenance topic maps. The flexibility and accuracy of operation and maintenance topic maps are provided.

Benefits of technology

显著提高了运维专题图的灵活性和准确性,增强了电力系统运维效率,提供了更强的决策支持,满足了电网运维的个性化需求,实现了运维专题图的快速生成和实时更新。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119295598A_ABST
    Figure CN119295598A_ABST
Patent Text Reader

Abstract

The invention discloses a thematic map automatic construction method for electric power system operation and maintenance business, and relates to the technical field of electric power system operation and maintenance, and the method comprises the steps: S1, carrying out the analysis of all kinds of operation data and log data in all servers and terminals of an electric power system based on an electric power system operation and maintenance business scene, and obtaining operation and maintenance data; s2, establishing an operation and maintenance topology model based on the operation and maintenance data, and performing model verification on the operation and maintenance topology model; s3, performing primitive matching on the verified operation and maintenance topology model, and segmenting the matched primitive according to the power network connection characteristics to obtain a plurality of operation and maintenance subnets of the operation and maintenance topology model; s4, performing grouping layout and wiring based on the operation and maintenance subnets to obtain a first operation and maintenance thematic map; s5, performing multi-type fusion labeling on the first operation and maintenance thematic map to obtain a second operation and maintenance thematic map, and completing construction of the operation and maintenance thematic map of the power system; the flexibility and accuracy of automatic construction of the operation and maintenance thematic map are remarkably improved, and the operation and maintenance efficiency of the electric power system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power system operation and maintenance, and in particular to a method for automatically constructing a thematic map for power system operation and maintenance business. Background Art

[0002] System operation and maintenance is an important part of ensuring the stable operation of the power grid system. During the system operation and maintenance process, it is usually necessary to build thematic maps based on specific operation and maintenance needs in order to more intuitively display the system's operating status and performance indicators. With the expansion of the scale of the power grid and the complexity of the structure, power system operation and maintenance personnel need to build and modify the scale of the power grid more flexibly and efficiently. However, traditional power grid analysis and operation and maintenance work often relies on manually drawn operation and maintenance model thematic maps, which makes it impossible for operation and maintenance personnel to quickly build and modify the power grid model according to their own needs, and flexibly define the content and form of the operation and maintenance thematic maps, resulting in low system operation and maintenance efficiency. Summary of the invention

[0003] The purpose of the present invention is to address the problem that the existing power grid operation and maintenance thematic map construction method cannot flexibly define the key features of the operation and maintenance thematic map, resulting in low power system operation and maintenance efficiency; a thematic map automatic construction method for power system operation and maintenance business is proposed, by obtaining the power system operation and maintenance data to customize the operation and maintenance topology model, the operation and maintenance topology model is divided into subnets and then grouped for layout and wiring, and after the layout and wiring are completed, multi-type fusion annotation is performed to complete the construction of the operation and maintenance thematic map; the existing power grid operation and maintenance thematic map construction method is overcome. The problem that the operation and maintenance model cannot be constructed on demand and the key features of the operation and maintenance thematic map cannot be flexibly defined, resulting in poor applicability and low flexibility of the generated operation and maintenance thematic map, and then the power system operation and maintenance efficiency is low, the flexibility and accuracy of the automatic construction of the operation and maintenance thematic map are significantly improved, and the power system operation and maintenance efficiency is improved.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for automatically constructing a thematic map for power system operation and maintenance business, comprising the following steps: S1. Analyze various operation data and log data in various servers and terminals of the power system based on the power system operation and maintenance business scenario to obtain operation and maintenance data; S2. Establishing an operation and maintenance topology model based on the operation and maintenance data, and performing model verification on the operation and maintenance topology model; S3, performing graphic element matching on the verified operation and maintenance topology model, and segmenting the matched graphic elements according to the power network connection characteristics to obtain a plurality of operation and maintenance subnets of the operation and maintenance topology model; S4, performing grouping layout and wiring based on the operation and maintenance subnet to obtain a first operation and maintenance thematic map; S5. Perform multi-type fusion annotation on the first operation and maintenance thematic map to obtain a second operation and maintenance thematic map, thereby completing the construction of the operation and maintenance thematic map of the power system.

[0005] In this solution, a custom operation and maintenance topology model is established through operation and maintenance data to realize the modeled operation and maintenance process, which can improve the standardization and efficiency of operation and maintenance work; by establishing a custom operation and maintenance topology model, the content and form of the operation and maintenance thematic map can be defined according to the actual needs of the operation and maintenance personnel, and the operation and maintenance thematic map can be quickly generated and updated in real time, so that the operation and maintenance personnel can understand the operating status and performance of the system in a timely manner; in addition, the operation and maintenance topology model can be flexibly adjusted and optimized according to specific operation and maintenance needs to improve the practicality and accuracy of the thematic map; through model verification, abnormal device models can be filtered out, and the topological connectivity between real devices can be verified, as well as the rationality of the custom operation and maintenance topology model can be verified, ultimately ensuring The integrity of the thematic map; by matching the operation and maintenance topology model with graphics elements, the purpose is to complete the graphic structure preprocessing of the operation and maintenance thematic map, so that various custom equipment models can be displayed in the operation and maintenance thematic map in the form of custom graphics element patches, etc. At the same time, in order to facilitate subnet segmentation according to the graphics element information, in order to obtain several operation and maintenance subnets of the operation and maintenance topology model, it is helpful to carry out layout and wiring based on these operation and maintenance subnets, so as to achieve a clearer hierarchical structure of the thematic map, so as to obtain more accurate type annotation positions, and improve the display capabilities of operation and maintenance thematic graphics; by performing multi-type fusion annotation on the thematic map, more dimensional information can be provided for the operation and maintenance thematic map, the readability of the operation and maintenance thematic map can be improved, and stronger support can be provided for operation and maintenance decisions.

[0006] Preferably, S2 comprises the following sub-steps: S21, customizing a device model from the operation and maintenance data according to actual business requirements of the operation and maintenance business scenario, and using the device model as a node of the operation and maintenance thematic map; S22, constructing edges between the nodes according to the association relationship between the device models, and constructing a hierarchical relationship between the device models according to the internal hierarchical structure of the operation and maintenance data; S23, constructing an operation and maintenance topology model based on the connection relationship between the nodes and the hierarchical relationship between the device models; S24, judging whether the device model meets the actual operation and maintenance business requirements based on the key feature information of the operation and maintenance topology model, and screening and filtering the device models that do not meet the requirements; S25 . Perform a topology search on the operation and maintenance topology model based on a search algorithm, and verify the topological connectivity status between devices corresponding to the device model according to the search results.

[0007] Preferably, the S25 includes the following sub-steps: S251, using the operation and maintenance topology model and its topological connection relationship as input of the search algorithm to establish an adjacency matrix between the device models; S252, initializing a topological island of a graph topology corresponding to the operation and maintenance topology model according to the adjacency matrix, and constructing a device memory; S253, selecting a device model in turn and storing it in the device memory, determining whether the device memory is empty, if so, executing S254; if not, executing S255; S254, determining whether there is an unaccessed device model in the device memory, if so, randomly selecting an unaccessed device model to store in the device memory, updating the number of the topological islands, and executing S255; if not, outputting the number of the topological islands, and verifying the topological connectivity between the device models based on the number of the topological islands, to complete the verification of the operation and maintenance topological model; S255, output the top device model of the device memory, store the unaccessed device models connected to the top device model into the device memory, and execute S253.

[0008] Preferably, S3 includes the following sub-steps: S31, encapsulating the graphic patch corresponding to the operation and maintenance topology model into a first graphic element, and automatically matching the corresponding first graphic element according to the attribute characteristics of the operation and maintenance topology model; S32. Determine the grouping information of the device model according to the hierarchical relationship and network connection relationship of the device model, and divide the network topology of the operation and maintenance topology model into a plurality of operation and maintenance subnets.

[0009] Preferably, S4 includes the following sub-steps: S41, establishing a template metafile based on the style distribution rule of the graphics in the operation and maintenance subnet; S42, taking the first graphic element in the operation and maintenance subnet as a parent graphic element, and determining key attribute information of a sub-graphic element of the parent graphic element based on the graphic content of the template graphic element file, wherein the key attribute information at least includes a size and a style of the sub-graphic element and a position of the sub-graphic element relative to its parent graphic element; S43, establishing a parent-child mapping relationship between the parent element and the child element in the operation and maintenance subnet based on the key attribute information, so as to match the template element corresponding to the parent element in the template element file; S44, automatically layout and route the child primitive according to the content of the template primitive matched by the parent primitive; S45. Dynamically update the primitive attributes of the parent primitive based on the layout and routing information of the child primitive, and perform layout and routing within the operation and maintenance subnet.

[0010] Preferably, in S45, dynamically updating the primitive attributes of the parent primitive based on the layout and routing information of the child primitive includes the following sub-steps: Extracting attribute feature information of all sub-element of the current parent element and line coordinates between sub-element based on the template element file, traversing all sub-element and corresponding line information that have the parent-child mapping relationship with the current parent element, and calculating the coordinate extreme values ​​of the sub-element relative to its parent element in the horizontal and vertical directions; The scaling factor of the parent primitive is calculated according to the extreme value of the coordinates, and the primitive size of the parent primitive is updated.

[0011] Preferably, the S4 further includes: mapping the graph element lines between the operation and maintenance subnets based on the parent-child mapping relationship, obtaining the final position information of the sub-graph element in the operation and maintenance subnet, and performing layout and routing between the operation and maintenance subnets; the specific steps are as follows: Based on the parent-child mapping relationship, the lines between the operation and maintenance subnets connected to the sub-element are mapped to the corresponding parent element, and the final position information of the sub-element in the operation and maintenance subnet is finally determined; Based on the final position information and the actual connection information between the sub-graph elements, the device models between the operation and maintenance subnets are laid out and routed, the layout and routing between the operation and maintenance subnets is completed, and the first operation and maintenance thematic map is obtained.

[0012] Preferably, S5 comprises the following sub-steps: S51, extracting the location information of graphic elements and the location information of lines in the first operation and maintenance thematic map, and constructing a first obstacle space of graphic element text and related measurement layout; S52, dividing the first obstacle space into first layout slots, and performing a primitive annotation layout using the first layout slots; S53, constructing a second obstacle space of route text and related measurement layout based on the primary primitive annotation layout result; S54, dividing the second obstacle space into second layout slots according to the text measurement space size required for the route, and determining the actual position of the route text and related measurements according to the division situation and the slot overlap situation, thereby completing a route labeling layout; S55, determining whether the overlapping text and related measurements of any graphic element in the primary line annotation layout overlap with the text and related measurements of other graphic elements or lines, if so, performing secondary annotation layout on the graphic element and line and then executing S56; if not, executing S56; S56. Perform graphic annotation based on the secondary annotation layout, where the annotation objects at least include a legend, a table, and a description text, to obtain a second operation and maintenance thematic map.

[0013] Preferably, the S52 includes the following sub-steps: S521, dividing the first obstacle space into first layout slots according to the space size required for the layout of a single primitive, determining the layout priorities of the first layout slots, and obtaining the overlap of the first layout slots according to the layout priorities; S522: Determine the actual position of the primitive text and related measurements based on the first layout slot division situation and the overlapping situation, and complete a primitive annotation layout.

[0014] Preferably, in S55, performing secondary annotation layout on the graphic elements and lines includes: Check whether there is a non-overlapping layout method in the layout of the graphics element or line that overlaps with the current graphics element. If so, move the annotation position that overlaps with the text and related measurements of the current graphics element to eliminate the overlap; if not, use the first layout slot as the reference slot to perform secondary layout slot division to obtain a third layout slot, use the second layout slot as the reference slot to perform secondary layout slot division to obtain a fourth layout slot, slide the slot windows of the third layout slot and the fourth layout slot respectively until the overlap is eliminated, and re-layout the third layout slot and the fourth layout slot with the overlap eliminated to complete the secondary annotation layout of the graphics element and the line.

[0015] In this solution, secondary annotation layout is performed on the text of the graphic elements and lines and the related measurement overlapping positions to ensure the accuracy of the measurement data and the annotated text information, ensure that each graphic element and line can be displayed independently and clearly, reduce misreading and misunderstanding, and improve the readability of the operation and maintenance thematic map; secondary optimization of the annotation layout helps to arrange information at different levels in an orderly manner to form a clear information hierarchy, which is convenient for operation and maintenance personnel to quickly capture key information. Overlap elimination and secondary annotation layout help reduce misjudgments and operational errors caused by information confusion, and improve the overall efficiency of operation and maintenance work.

[0016] Beneficial effects of the present invention: 1. Customize the operation and maintenance topology model according to different business needs based on the operation data of the power system, meet the personalized needs of power grid operation and maintenance, and enable operation and maintenance personnel to define the content and form of the operation and maintenance thematic map according to actual needs, improve the flexibility and adaptability of thematic map construction, and further improve the overall operation and maintenance efficiency of the power system; 2. Perform subnet segmentation based on the primitive information to obtain several operation and maintenance subnets of the operation and maintenance topology model, which is helpful for layout and wiring based on these operation and maintenance subnets, making the hierarchical structure of the thematic map clearer, so as to obtain more accurate labeling positions for type labels, and improving the display capabilities of operation and maintenance thematic graphics; 3. By performing multi-type fusion annotation on the thematic maps, more dimensional information can be provided for the operation and maintenance thematic maps, the readability of the operation and maintenance thematic maps can be improved, and stronger support can be provided for operation and maintenance decisions. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the drawings to represent the same parts.

[0018] Figure 1 This is a flow chart of a method for automatically constructing a thematic map for power system operation and maintenance business according to this embodiment.

[0019] Figure 2 This is a flow chart of operation and maintenance topology model verification in this embodiment.

[0020] Figure 3 The figure is a schematic diagram of a graphic element annotation slot of the present embodiment.

[0021] Figure 4 The figure is a schematic diagram of a line slot of this embodiment.

[0022] Figure 5 This is a schematic diagram of a legend display form of this embodiment. DETAILED DESCRIPTION

[0023] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0024] Example 1: Figure 1 As shown, a method for automatically constructing a thematic map for power system operation and maintenance business includes steps S1-S5, wherein: S1. Based on the power system operation and maintenance business scenarios, various operating data and log data in the power system servers and terminals are analyzed to obtain operation and maintenance data.

[0025] S2. Establish an operation and maintenance topology model based on the operation and maintenance data, and perform model verification on the operation and maintenance topology model.

[0026] Specifically, S2 includes the following sub-steps: S21. Customize the equipment model from the operation and maintenance data according to the actual business needs of the operation and maintenance business scenario, and use the equipment model as a node of the operation and maintenance thematic map; S22, constructing edges between nodes according to the association relationship between the equipment models, and constructing hierarchical relationships between the equipment models according to the internal hierarchical structure of the operation and maintenance data; S23, constructing an operation and maintenance topology model based on the connection relationship between nodes and the hierarchical relationship between device models; S24, judging whether the device model meets the actual operation and maintenance business requirements based on the key feature information of the operation and maintenance topology model, and screening and filtering the device models that do not meet the requirements; S25. Perform a topology search on the operation and maintenance topology model based on the search algorithm, and verify the topological connectivity status between devices corresponding to the device model according to the search results.

[0027] Specifically, S25 includes the following sub-steps: S251, using the operation and maintenance topology model and its topological connection relationship as input of the search algorithm, and establishing an adjacency matrix between device models; S252, initializing the topological island of the graph topology corresponding to the operation and maintenance topology model according to the adjacency matrix, and constructing a device storage; S253, select one device model in turn and store it in the device memory, and determine whether the device memory is empty. If so, execute S254; if not, execute S255; S254, determine whether there is an unaccessed device model in the device memory, if so, randomly select an unaccessed device model and store it in the device memory, update the number of topological islands, and execute S255; if not, output the number of topological islands, and verify the topological connectivity between device models based on the number of topological islands, to complete the verification of the operation and maintenance topological model; S255. Output the top device model of the device memory, and store the unaccessed device models connected to the top device model into the device memory, and execute S253.

[0028] Specifically, the key feature information includes at least: device model id, graphic topology and hierarchical relationship of device models. For example, whether the model id is repeated, whether the automatically generated graphic topology is consistent with the connection relationship between devices, whether the automatically constructed hierarchical relationship is consistent with the hierarchical relationship between models, etc., so as to verify the custom device model and filter and screen abnormal device models.

[0029] Specifically, Figure 2As shown, the depth-first search or breadth-first search algorithm can be used to perform topological search on the generated graph topology, search for the number of topological islands in the graph, and verify the topological connectivity between custom models. For the depth-first search, the data structure during the topological search is a stack, and for the breadth-first search, the data structure during the topological search is a queue. Finally, the topological connectivity between devices is verified based on the topological islands in the graph obtained by the topological search, thereby realizing automatic identification of abnormally connected devices.

[0030] S3. Performing graphic element matching on the verified operation and maintenance topology model, and segmenting the matched graphic elements according to the connection characteristics of the power network to obtain several operation and maintenance subnets of the operation and maintenance topology model.

[0031] Specifically, S3 includes the following sub-steps: S31, encapsulating the graphic patch corresponding to the operation and maintenance topology model into a first graphic element, and automatically matching the corresponding first graphic element according to the attribute characteristics of the operation and maintenance topology model; S32. Determine the grouping information of the device model according to the hierarchical relationship and network connection relationship of the device model, and divide the network topology of the operation and maintenance topology model into a plurality of operation and maintenance subnets.

[0032] As an implementation method, a personalized graphic element is provided for each custom device model. For example, various custom device models are displayed in the thematic map in the form of graphic patches; the graphic patches corresponding to the custom device models are encapsulated as graphic elements (first graphic elements) according to the CIM / G specification, wherein the size of the graphic element is consistent with the size of the patch. When matching graphic elements, the encapsulated graphic elements are automatically matched according to the name attributes of the custom device model, and then the width w1 and height h1 of each graphic element actually displayed in the graphic are automatically calculated according to the expected map size of the thematic map. The graphic elements are laid out and routed according to their actual sizes, and finally the scaling factor of each graphic element is written into the corresponding label attribute when the graphic is output, so that various custom device models can be displayed in the operation and maintenance thematic map in the form of custom graphic element patches.

[0033] S4. Perform grouping layout and wiring based on the operation and maintenance subnet to obtain the first operation and maintenance thematic map.

[0034] Specifically, S4 includes the following sub-steps: S41, establishing a template metafile based on the style distribution rule of the graphics in the operation and maintenance subnet; S42, taking the first graphic element in the operation and maintenance subnet as the parent graphic element, and determining the key attribute information of the sub-graphic element of the parent graphic element based on the graphic content of the template graphic element file, where the key attribute information at least includes the size and style of the sub-graphic element and the position of the sub-graphic element relative to its parent graphic element; S43, establishing a parent-child mapping relationship between a parent element and a child element in the operation and maintenance subnet based on the key attribute information, so as to match the template element corresponding to the parent element in the template element file; S44, automatically layout and route the child primitives according to the content of the template primitive matched by the parent primitive; S45. Dynamically update the primitive attributes of the parent primitive based on the layout and routing information of the child primitive, and perform layout and routing within the operation and maintenance subnet.

[0035] Specifically, in S45, dynamically updating the primitive attributes of the parent primitive based on the layout and routing information of the child primitive includes the following sub-steps: Extract the attribute feature information of all sub-element of the current parent element and the line coordinates between sub-element based on the template element file, traverse all sub-element and their corresponding line information that have a parent-child mapping relationship with the current parent element, and calculate the coordinate extreme values ​​of the sub-element relative to its parent element in the horizontal and vertical directions; Calculate the scaling factor of the parent element according to the extreme values ​​of the coordinates and update the element size of the parent element.

[0036] Specifically, the representation of coordinate extreme values ​​is as follows: In the formula, x i and i Respectively represent the position of the i-th child element relative to the parent element, w i and h i Represent the width and height of the i-th sub-element, and Represent the horizontal and vertical coordinates of the tth point in the jth line, respectively, x Max Indicates the maximum horizontal coordinate of the child element relative to its parent element, x Min Indicates the minimum horizontal coordinate of the child element relative to its parent element, y Max Indicates the maximum vertical coordinate of the child element relative to its parent element, y Min Indicates the minimum vertical coordinate of a child element relative to its parent element.

[0037] Specifically, the calculation formula of the scaling factor is as follows: Where w0 and h0 represent the width and height of the graphic patch corresponding to the operation and maintenance topology model, respectively.

[0038] As an implementation method, batches of repetitive graphic contents can be made into template metafiles according to the style of the graphics. When drawing, the model in the group (here refers to the operation and maintenance subnet) is laid out and wired according to the style in the template to ensure that the drawing style of the graphics in the group is relatively consistent with the template graphics, thereby improving the display capability of the operation and maintenance-related thematic graphics. Among them, the template graphics are saved in the form of CIM / G files, and the size and style of the sub-graphics are set relative to the parent graphics in the template graphics by graphic editing, and the corresponding configuration parameters are saved in the G file. When the graphics are generated, for the device graphics in the same group, the grouping information will be determined according to the hierarchical relationship, and the parent-child mapping relationship between the graphics will be established. After that, the parent graphics will preferentially match the template graphics according to the template metafile, and the sub-graphics will be automatically laid out and wired according to the content in the template graphics, and the corresponding attributes of the sub-graphics will be replaced with the content recorded in the template graphics to ensure that the layout and wiring styles in the group remain relatively consistent. Finally, the parent graphics dynamically updates the graphics size according to the results of the layout and wiring in the group.

[0039] Furthermore, the specific steps for the parent primitive to dynamically update the primitive size according to the result of the layout and routing within the group are as follows: A1. Count the relative positions and sizes of all sub-elements under the parent element and the line coordinates between the sub-elements; A2, traverse the n sub-element and m lines that have a parent-child mapping relationship with the parent element, and calculate the maximum and minimum coordinates of the sub-element relative to the parent element in the horizontal and vertical directions by formula (1); A3. Calculate the scaling factor of the parent primitive using formula (2). At this time, w0 and h0 are the primitive sizes obtained by matching the parent primitive.

[0040] Specifically, S4 also includes: mapping the graph element lines between the operation and maintenance subnets based on the parent-child mapping relationship, obtaining the final position information of the sub-graph element in the operation and maintenance subnet, and performing layout and routing between the operation and maintenance subnets; the specific steps are as follows: Based on the parent-child mapping relationship, the lines connecting each operation and maintenance subnet to the sub-element are mapped to the corresponding parent element, and the final position information of the sub-element in the operation and maintenance subnet is finally determined; Based on the final position information and the actual connection information between the sub-graph elements, the equipment models between the operation and maintenance subnets are laid out and routed, the layout and routing between the operation and maintenance subnets are completed, and the first operation and maintenance thematic map is obtained.

[0041] As an implementation method, according to the parent-child mapping relationship between the graph elements, the line connecting the group (here refers to the operation and maintenance subnet) to the sub-element is mapped to the parent graph element, and the final position of the sub-element is determined according to the mapping relationship between the parent and child graph elements and the position of the sub-element relative to the parent graph element to achieve the position allocation of the graphic node. The calculation formula is as follows: In the formula, x k and k Represents the position of the kth parent element in the graph. and Respectively represent the relative position of the i-th child element in the k-th parent element, and Represents the final position of the sub-element; then according to the actual connection information between the sub-elements and the expected effects of different operation and maintenance thematic maps, the automatic wiring of the inter-group elements is realized to obtain the first operation and maintenance thematic map.

[0042] S5. Perform multi-type fusion annotation on the first operation and maintenance thematic map to obtain a second operation and maintenance thematic map, thereby completing the construction of the operation and maintenance thematic map of the power system.

[0043] Specifically, S5 includes the following sub-steps: S51, extracting the location information of graphic elements and the location information of lines in the first operation and maintenance thematic map, and constructing a first obstacle space of graphic element text and related measurement layout; S52, dividing the first layout slots based on the first obstacle space, and performing a primitive annotation layout using the first layout slots; S53, constructing a second obstacle space of route text and related measurement layout based on the primary primitive annotation layout result; S54, dividing the second obstacle space into second layout slots according to the text measurement space size required for the route, and determining the actual position of the route text and related measurements according to the division situation and the slot overlap situation, thereby completing a route labeling layout; S55, determining whether the overlapping text and related measurements of any graphic element in the primary line annotation layout overlap with the text and related measurements of other graphic elements or lines, if so, performing secondary annotation layout on the graphic element and line and then executing S56; if not, executing S56; S56. Annotate the graphics based on the secondary annotation layout, where the annotation objects at least include a legend, a table, and a description text, to obtain a second operation and maintenance thematic map.

[0044] Specifically, S52 includes the following sub-steps: S521, dividing the first obstacle space into first layout slots according to the space size required for the layout of a single primitive, determining the layout priority of the first layout slots, and obtaining the overlap of the first layout slots according to the layout priority; S522: Determine the actual position of the primitive text and related measurements based on the first layout slot division and overlap conditions, and complete a primitive annotation layout.

[0045] Specifically, in S55, performing secondary annotation layout on the graphic elements and lines includes: Check whether there is a non-overlapping layout method in the layout of the graphics or lines that overlap with the current graphics. If so, move the annotation position that overlaps with the text and related measurements of the current graphics to eliminate the overlap; if not, use the first layout slot as the reference slot to perform secondary layout slot division to obtain the third layout slot, and use the second layout slot as the reference slot to perform secondary layout slot division to obtain the fourth layout slot, slide the slot windows of the third layout slot and the fourth layout slot respectively until the overlap is eliminated, and re-layout the third layout slot and the fourth layout slot with the overlap eliminated to complete the secondary annotation layout of the graphics and lines.

[0046] As an implementation method, based on the existing layout and routing results in the first operation and maintenance thematic map, the positions of the graphics elements and lines are counted, the first obstacle space is constructed, the text and measurement content associated with the graphics elements are obtained, and the size of the required space is obtained; the layout slots (first layout slots) are divided for a single graphics element, and the layout priority order of the slots is set according to actual business needs: around a single graphics element, it is divided into horizontal and vertical slots and slots in the four corners. Finally, the actual position of the text and related measurements is determined according to the slot division of the graphics element and the overlap of each slot, and the automatic layout of the graphics element annotation is completed.

[0047] Furthermore, if Figure 3 As shown, when the graphic element is automatically laid out, in the horizontal and vertical directions, it is ensured that at the initial position of the slot, the line connecting the midpoint of the graphic element and the associated text and measurement midpoint is also horizontal or vertical; in the four corners, it is ensured that at the initial position of the slot, the midpoint of the text and measurement is on the extension line of the graphic element edge line; to avoid close contact, there is a gap of fixed length M between the graphic element and the text and measurement; to avoid overlap between the initial position layout of the slot and the line, the slot window sliding operation is performed: set the fixed value L as the step length for translation, and translate the length of L to the left and right, that is, use the coordinates after translation on the left and right sides to determine whether overlap occurs again. If overlap occurs, continue to translate the translated coordinate points to the left and right with a step length of L until no overlap occurs, or the translation reaches the set boundary. For example, Figure 3 In the figure, the A element has 12 slots for layout in 8 directions, namely, top, bottom, left, right and four corners, which are set as S1 to S12. The priority decreases as the number increases. After determining the initial position of the slot, the window is slid for each slot for the associated text and specific measurement attributes to test whether the position will overlap. Assuming that the element A has a text measurement T that needs to be laid out, the S1 slot is tried first. The coordinates of T in the S1 slot are: In the formula, (x i ,y i) is the coordinate of T in slot S1, (x, y) is the coordinate of primitive A, h i is the height of T, h is the height of the primitive A, and M is the fixed distance between the set text measurement and the primitive; Since the initial layout of slot S1 will overlap with the line, a slot window sliding operation is performed, and a fixed value L is set as the step length for translation. The length of L is translated to the left and right, that is, the left and right coordinates of T are respectively used to determine whether overlap occurs. If overlap occurs, the translation continues to be performed to the left and right with a step length of L until no overlap occurs or the translation reaches the set boundary; the coordinates of T in slot S1 are recorded. If overlap occurs, it is recorded as T cannot be placed in S1, and the coordinates of T that can be placed in slots S2 to S12 are continued to be calculated, and so on until the traversal of all primitive-associated text measurements is completed.

[0048] As an implementation method, based on the existing layout and routing results in the first operation and maintenance thematic map and the automatic layout of the primitive annotation (primary primitive annotation layout) results, a second obstacle space is constructed to obtain the text and measurement content associated with the line, and the line is divided into layout slots (second layout slots), wherein the layout slot division method for a single line is: a polyline is disassembled into a collection of multiple line segments, and a fixed step size N is set for slot layout. Finally, the actual position of the text and related measurements is determined according to the line slot division and the overlap of each slot, and the automatic layout of the line annotation is completed.

[0049] Furthermore, if Figure 4As shown, when the line marking is automatically laid out, a polyline is disassembled into a set of multiple line segments, and a fixed step length N is set for slot layout, including: starting from the midpoint of the line segment, a slot is set at the position where the distance M between the midpoint and the line segment is the closest, and the remaining slots are set by a fixed step length N to the left and right, respectively, until the remaining space on both sides of the line segment is insufficient to support a complete slot; the slots of a polyline are prioritized: the priority of the center on the same line segment is greater than the priority of the two sides, and different line segments are sorted according to the longer the line segment, the higher the slot priority. After that, the number of layout slots of each primitive is subtracted from the number of unlayout texts and measurements to obtain a value, and the associated texts and measurements are laid out in order from small to large according to the value; after layout, check whether the slot overlaps with the obstacle space or the laid out primitives. If overlap occurs, slide the slot, slide the slot to both ends and judge the overlap again until the layout is successful or the sliding distance reaches the set upper limit. If the slot layout fails, continue to try the slot with the next priority. For example, we divide the layout slots based on line Q, and divide the polyline Q into three line segments Q1, Q2, and Q3. We sort the three line segments from long to short, and start from the longest line segment Q2. We find the midpoint of Q2, which has two layout slots S1 and S2 with the shortest distance M from Q2 above and below it. Then we move left and right by a length of N to obtain two layout slots. Then we continue to move left and right by a length of N until the remaining length is insufficient to support one slot. Assuming that Q2 has a total of k slots, when dividing the slots for the second longest line segment Q1, the highest priority starts from k+1, and the same operation is continued until the slots of all line segments are divided.

[0050] As an implementation method, for overlapping text and measurement, determine whether it overlaps with the text and measurement associated with other graphics elements or lines. If so, determine whether the overlapping objects have some non-overlapping layout methods; if so, move them to eliminate the overlap; if not, use the original slots as a reference to recalculate the layout slots, and try to layout by sliding the slot window until the overlap is eliminated, or the initial position is retained after the traversal is completed. In this way, secondary optimization of the text measurement annotation results in the graphics is achieved, thereby improving the effect of automatic annotation of text measurements in operation and maintenance thematic graphics, and providing effective technical support for the display of various annotation information in operation and maintenance thematic graphics.

[0051] Embodiment 2, as Figure 5 As shown in the figure, the legend can be automatically constructed in the operation and maintenance thematic map according to the element content in the model text. The steps are as follows: B1. Read the #GRAPH_LEGNED attribute in the model file, analyze the overall position of the legend and the graphic element content that needs to be displayed in the legend. The legend of each graphic element occupies one line and is displayed in the form of "graphic element + description text". The display format is as follows: Figure 5 As shown; for nodes, parse the width and height of the primitives in the legend; for lines, parse the length, line width and color of the lines in the legend; for all texts, parse the content and font size of each description text; B2. For node primitives, traverse the existing width and height of all primitives, and calculate the scaling factor of the primitives when laying out the legend according to the following formula: Where w1 is the width of the primitive specified in the legend, h1 is the height of the primitive specified in the legend, w0 is the width of the primitive itself, h0 is the height of the primitive itself, s x is the horizontal scaling factor of the graphic element when laying out the legend, s y The vertical scaling factor of the graphic element when laying out the legend; then, the length w of the description text is obtained according to the length and font size of the description text. t and height h t , calculate the final width w and height h of the row where this element is located, the calculation formula is as follows: B3. For line graphics, obtain the length w of the text according to the length and font size of the description text. t and height h t , and combined with the length of the line w l Calculate the final width w and height h of the row. The calculation formula is as follows: B4. Traverse each row in the graph and calculate the overall width W and overall height H of the legend, where n is the total number of legends. The calculation formula is as follows: B5. Traverse the maximum and minimum values ​​of the graphics elements and lines in the horizontal and vertical directions in the existing graphics, and calculate the overall placement position of the legend according to the placement direction and size of the legend; B6. Traverse each graphic element and line in the legend, and place the graphic elements / lines and the corresponding description text in rows; based on steps B1-B6, complete the automatic layout of the legend in the drawing, which helps to understand the meaning of each graphic element and line, and improves the overall display effect of operation and maintenance-related thematic graphics.

[0052] Beneficial effects of the embodiment: Through custom device models, they can be customized according to the business needs of different users, meeting the personalized needs of power grid operation and maintenance, and realizing the rapid generation and real-time updating of operation and maintenance thematic maps, so that operation and maintenance personnel can timely understand the operating status and performance of the system; users can adjust model parameters at any time according to actual conditions, improving the flexibility and adaptability of operation and maintenance thematic maps; in addition, the function of customizing models reduces the training costs for new employees, and employees can define models according to their own habits and preferences, and become familiar with and master system operations more quickly.

[0053] The above specific implementations are preferred implementations of the present invention, and are not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to the present specific implementations. All equivalent changes made in accordance with the shape, structure, and method of the present invention are within the protection scope of the present invention.

Claims

1. A method for automatically constructing a thematic map for power system operation and maintenance business, characterized by: The steps include: S1. Analyze various operation data and log data in various servers and terminals of the power system based on the power system operation and maintenance business scenario to obtain operation and maintenance data; S2. Establishing an operation and maintenance topology model based on the operation and maintenance data, and performing model verification on the operation and maintenance topology model; S3, performing graphic element matching on the verified operation and maintenance topology model, and segmenting the matched graphic elements according to the power network connection characteristics to obtain a plurality of operation and maintenance subnets of the operation and maintenance topology model; S4, performing grouping layout and wiring based on the operation and maintenance subnet to obtain a first operation and maintenance thematic map; S5. Perform multi-type fusion annotation on the first operation and maintenance thematic map to obtain a second operation and maintenance thematic map, thereby completing the construction of the operation and maintenance thematic map of the power system.

2. The method for automatically constructing thematic maps for power system operation and maintenance services according to claim 1 is characterized by: The S2 comprises the following sub-steps: S21, customizing a device model from the operation and maintenance data according to actual business requirements of the operation and maintenance business scenario, and using the device model as a node of the operation and maintenance thematic map; S22, constructing edges between the nodes according to the association relationship between the device models, and constructing a hierarchical relationship between the device models according to the internal hierarchical structure of the operation and maintenance data; S23, constructing an operation and maintenance topology model based on the connection relationship between the nodes and the hierarchical relationship between the device models; S24, judging whether the device model meets the actual operation and maintenance business requirements based on the key feature information of the operation and maintenance topology model, and screening and filtering the device models that do not meet the requirements; S25 . Perform a topology search on the operation and maintenance topology model based on a search algorithm, and verify the topological connectivity status between devices corresponding to the device model according to the search results.

3. The method for automatically constructing thematic maps for power system operation and maintenance services according to claim 2 is characterized by: The S25 comprises the following sub-steps: S251, using the operation and maintenance topology model and its topological connection relationship as input of the search algorithm to establish an adjacency matrix between the device models; S252, initializing a topological island of a graph topology corresponding to the operation and maintenance topology model according to the adjacency matrix, and constructing a device memory; S253, selecting a device model in turn and storing it in the device memory, determining whether the device memory is empty, if so, executing S254; if not, executing S255; S254, determining whether there is an unaccessed device model in the device memory, if so, randomly selecting an unaccessed device model to store in the device memory, updating the number of the topological islands, and executing S255; if not, outputting the number of the topological islands, verifying the topological connectivity between the device models based on the number of the topological islands, and completing the verification of the operation and maintenance topological model; S255, output the top device model of the device memory, store the unaccessed device models connected to the top device model into the device memory, and execute S253.

4. The method for automatically constructing thematic maps for power system operation and maintenance services according to claim 2 is characterized by: The S3 comprises the following sub-steps: S31, encapsulating the graphic patch corresponding to the operation and maintenance topology model into a first graphic element, and automatically matching the corresponding first graphic element according to the attribute characteristics of the operation and maintenance topology model; S32. Determine the grouping information of the device model according to the hierarchical relationship and network connection relationship of the device model, and divide the network topology of the operation and maintenance topology model into a plurality of operation and maintenance subnets.

5. The method for automatically constructing thematic maps for power system operation and maintenance services according to claim 1 is characterized by: The S4 comprises the following sub-steps: S41, establishing a template metafile based on the style distribution rule of the graphics in the operation and maintenance subnet; S42, taking the first graphic element in the operation and maintenance subnet as a parent graphic element, and determining key attribute information of a sub-graphic element of the parent graphic element based on the graphic content of the template graphic element file, wherein the key attribute information at least includes a size and a style of the sub-graphic element and a position of the sub-graphic element relative to its parent graphic element; S43, establishing a parent-child mapping relationship between the parent element and the child element in the operation and maintenance subnet based on the key attribute information, so as to match the template element corresponding to the parent element in the template element file; S44, automatically layout and route the child primitive according to the content of the template primitive matched by the parent primitive; S45. Dynamically update the primitive attributes of the parent primitive based on the layout and routing information of the child primitive, and perform layout and routing within the operation and maintenance subnet.

6. The method for automatically constructing thematic maps for power system operation and maintenance services according to claim 5 is characterized by: In the S45, dynamically updating the primitive attributes of the parent primitive based on the layout and routing information of the child primitive includes the following sub-steps: Extracting attribute feature information of all sub-element of the current parent element and line coordinates between sub-element based on the template element file, traversing all sub-element and corresponding line information that have the parent-child mapping relationship with the current parent element, and calculating the coordinate extreme values ​​of the sub-element relative to its parent element in the horizontal and vertical directions; The scaling factor of the parent primitive is calculated according to the extreme value of the coordinates, and the primitive size of the parent primitive is updated.

7. The method for automatically constructing thematic maps for power system operation and maintenance services according to claim 5 is characterized by: The S4 also includes: mapping the graph element lines between the operation and maintenance subnets based on the parent-child mapping relationship, obtaining the final position information of the sub-graph element in the operation and maintenance subnet, and performing layout and routing between the operation and maintenance subnets; the specific steps are as follows: mapping the lines connected to the sub-graph element between each operation and maintenance subnet to the corresponding parent graph element based on the parent-child mapping relationship, and finally determining the final position information of the sub-graph element in the operation and maintenance subnet; Based on the final position information and the actual connection information between the sub-graph elements, the device models between the operation and maintenance subnets are laid out and routed, the layout and routing between the operation and maintenance subnets is completed, and the first operation and maintenance thematic map is obtained.

8. The method for automatically constructing thematic maps for power system operation and maintenance services according to claim 1 is characterized by: The S5 comprises the following sub-steps: S51, extracting the location information of graphic elements and the location information of lines in the first operation and maintenance thematic map, and constructing a first obstacle space of graphic element text and related measurement layout; S52, dividing the first obstacle space into first layout slots, and performing a primitive annotation layout using the first layout slots; S53, constructing a second obstacle space of route text and related measurement layout based on the primary primitive annotation layout result; S54, dividing the second obstacle space into second layout slots according to the text measurement space size required for the route, and determining the actual position of the route text and related measurements according to the division situation and the slot overlap situation, thereby completing a route labeling layout; S55, determining whether the overlapping text and related measurements of any graphic element in the primary line annotation layout overlap with the text and related measurements of other graphic elements or lines, if so, performing secondary annotation layout on the graphic elements and lines and executing S56; if not, executing S56; to optimize the text measurement annotation result of the first operation and maintenance thematic map; S56. Perform graphic annotation based on the secondary annotation layout, where the annotation objects at least include a legend, a table, and a description text, to obtain a second operation and maintenance thematic map.

9. The method for automatically constructing thematic maps for power system operation and maintenance services according to claim 8, characterized in that: The S52 includes the following sub-steps: S521, dividing the first obstacle space into first layout slots according to the space size required for the layout of a single primitive, determining the layout priorities of the first layout slots, and obtaining the overlap of the first layout slots according to the layout priorities; S522: Determine the actual position of the primitive text and related measurements based on the first layout slot division situation and the overlapping situation, and complete a primitive annotation layout.

10. The method for automatically constructing thematic maps for power system operation and maintenance services according to claim 9, characterized in that: In S55, performing secondary marking layout on the graphic elements and lines includes: Check whether there is a non-overlapping layout method in the layout of the graphics element or line that overlaps with the current graphics element. If so, move the annotation position that overlaps with the text and related measurements of the current graphics element to eliminate the overlap; if not, use the first layout slot as the reference slot to perform secondary layout slot division to obtain a third layout slot, use the second layout slot as the reference slot to perform secondary layout slot division to obtain a fourth layout slot, slide the slot windows of the third layout slot and the fourth layout slot respectively until the overlap is eliminated, and re-layout the third layout slot and the fourth layout slot with the overlap eliminated to complete the secondary annotation layout of the graphics element and the line.