System graph interaction method, device and equipment between power grid systems and medium

By generating and mapping CIM model files and SVG graphic files, the problem of graphic data exchange between power grid business systems is solved, realizing the interoperability and standardized processing of graphic files between different power grid systems, and supporting data exchange and adaptation of visualization elements between power grid systems.

CN115905129BActive Publication Date: 2026-02-10GUANGDONG TOPWAY NETWORK +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211268595.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-17
Publication Date
2026-02-10
Estimated Expiration
2042-10-17

AI Technical Summary

Technical Problem

Existing power grid business systems suffer from inconsistencies in graphical specifications and data model descriptions, preventing direct exchange of graphical data between different power grid business systems.

Method used

By exporting the domain data and graphic data from the system graph of the source system, generating CIM model files and SVG graphic files, determining their mapping relationship, and importing them into the target system, new CIM model files and new SVG graphic files are generated, and normalization processing is performed to achieve the interaction of graphic files.

Benefits of technology

It enables the exchange of graphical data between different power grid systems, meets the standardization requirements of graphical files of the target system, ensures accurate mapping of data models and replacement of visualization elements, and supports interoperability of graphical files between different systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115905129B_ABST
    Figure CN115905129B_ABST
Patent Text Reader

Abstract

The application provides a system graphic interaction method and device between power grid systems, equipment and a medium. The source system field data and graphic data are exported in the form of a CIM model file and an SVG graphic file. Based on the mapping relationship between the CIM model file and the SVG graphic file, a new CIM model file and a new SVG graphic file are generated, and the mapping relationship between the new CIM model file and the new SVG graphic file is completed. Thus, the system graphics can be interactively converted between different systems. The problem that different power grid business systems cannot directly exchange graphic data due to different graphic specification standards and data model descriptions can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power grid management, specifically to a system graphical interaction method, device, equipment, and medium between power grid systems. Background Technology

[0002] With the reform and construction of the State Grid, the consumption of new energy has placed higher demands on the construction of information collection, perception, processing, and application in the power generation, transmission, distribution, and sales sectors. Therefore, it is essential to first realize power informatization, thereby achieving dynamic collection, real-time perception, and online monitoring of the status of the power grid, equipment, and customers, and optimizing the processes of power generation, distribution, and sales.

[0003] Therefore, the exchange of electricity consumption data between different power grid business systems, different manufacturers, and different power companies is inevitable. However, existing power grid business systems have different graphical standards and data model descriptions, which prevents different power grid business systems from directly exchanging graphical data. Summary of the Invention

[0004] This application provides a method, apparatus, device, and medium for graphical interaction between power grid systems, aiming to solve the problem that existing power grid business systems cannot directly exchange graphical data due to differences in graphical specifications and data model descriptions.

[0005] To address the aforementioned technical problems, in a first aspect, this application provides a system graphical interaction method between power grid systems, comprising:

[0006] Export the domain data and graphic data from the system graphics of the source system to generate CIM model files and SVG graphic files respectively;

[0007] Determine the mapping relationship between the CIM model file and the SVG graphic file;

[0008] The CIM model file and SVG graphic file are sequentially imported into the target system to generate a new CIM model file and a new SVG graphic file. Based on the mapping relationship, the mapping between the new CIM model file and the new SVG graphic file is completed in the target system.

[0009] Perform normalization processing on the new SVG graphic file to obtain an interactive graphic file.

[0010] Preferably, the step of determining the mapping relationship between the CIM model file and the SVG graphic file includes:

[0011] The CIM model file and the SVG graphic file are parsed respectively to obtain the equipment information in the CIM model file and the graphic element information in the SVG graphic file;

[0012] The mapping relationship between the CIM model file and the SVG graphic file is generated based on the reference between the device information and the graphic element information.

[0013] Preferably, the step of sequentially importing the CIM model file and SVG graphic file into the target system to generate a new CIM model file and a new SVG graphic file, and completing the mapping between the new CIM model file and the new SVG graphic file in the target system based on the mapping relationship includes:

[0014] The SVG graphic file is loaded into the import program of the target system and traversed to obtain the layer information of the SVG graphic file.

[0015] The CIM model file is loaded into the import program of the target system for parsing to obtain the CIM model;

[0016] Obtain the device object information of the target system;

[0017] Associate the CIM model with the device object information of the target system to generate a new CIM model file;

[0018] The layer information is imported into the new drawing, and the device object information in the new CIM model file and the layer information are mapped between the new CIM model file and the new SVG graphic file in the target system.

[0019] Preferably, the step of performing normalization processing on the new SVG graphic file includes:

[0020] Examine the header of the new SVG graphic file, which contains version information for the XML application;

[0021] According to the requirements of the primitive objects in the target system, the first primitive object contained in the new SVG graphics file is replaced with the second primitive object required by the target system;

[0022] Based on the style of the visualization elements required by the target system, the first visualization element contained in the new SVG graphic file is replaced with the second visualization element required by the target system.

[0023] Preferably, after the step of replacing the first visual element contained in the new SVG graphic file with the second visual element required by the target system according to the style of the visual element required by the target system, the method further includes:

[0024] Define a reference to the new SVG graphics file in the target system, the definition steps including:

[0025] Set an identifier containing specific elements in the second primitive object;

[0026] When the second primitive object is referenced, the second primitive object is drawn to the reference location using the identifier.

[0027] Preferably, after the step of drawing the second primitive object to the reference location using the identifier when the second primitive object is referenced, the method further includes performing coordinate transformation on the second primitive object, the transformation step including:

[0028] Obtain the initial coordinates of the second primitive object in the image template;

[0029] The actual coordinates of the second primitive object in the new SVG graphic file are calculated based on the initial coordinates, using the following formula:

[0030]

[0031] Where x and y are the initial coordinate values ​​of the second primitive object in the image template, and x1 and x2 are the actual coordinate values ​​of the second primitive object in the new SVG graphic file. The coordinate transformation expression when referencing the image template is as follows:

[0032] transform = matrix(abcdef),

[0033] a, b, c, d, e, and f are elements within the matrix in the transform matrix function, and all are constants.

[0034] Preferably, the step of performing normalization processing on the new SVG graphic file further includes:

[0035] Define the topological representation relationship between the second primitive objects in the new SVG graphics file;

[0036] The connection relationships among all devices are determined based on the topological representation relationship.

[0037] Secondly, this application also provides a system graphical interaction device between power grid systems, comprising:

[0038] The data export module is used to export the domain data and graphic data from the system graphics of the source system, generating CIM model files and SVG graphic files respectively.

[0039] A mapping relationship acquisition module is used to determine the mapping relationship between the CIM model file and the SVG graphic file;

[0040] The data import module is used to import the CIM model file and SVG graphic file into the target system in sequence, generate a new CIM model file and a new SVG graphic file, and complete the mapping between the new CIM model file and the new SVG graphic file in the target system based on the mapping relationship.

[0041] The interactive graphics file generation module is used to perform normalization processing on the new SVG graphics file to obtain an interactive graphics file.

[0042] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the system graphical interaction method between power grid systems described in any of the above claims.

[0043] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the system graphical interaction method between power grid systems described in any of the preceding claims.

[0044] This application discloses a method, apparatus, device, and medium for system graphical interaction between power grid systems, comprising: exporting domain data and graphical data from the system graphical representation of a source system to generate a CIM model file and an SVG graphic file, respectively; determining the mapping relationship between the CIM model file and the SVG graphic file; sequentially importing the CIM model file and the SVG graphic file into a target system to generate a new CIM model file and a new SVG graphic file, and completing the mapping between the new CIM model file and the new SVG graphic file in the target system based on the mapping relationship; performing normalization processing on the new SVG graphic file to obtain an interactive graphical file. This application achieves interactive transformation of system graphical representations between different systems by exporting the domain data and graphical data of the source system into CIM model files and SVG graphic files, and generating new CIM model files and new SVG graphic files based on the mapping relationship between the CIM model files and the SVG graphic files, and completing the mapping relationship between the new CIM model files and the new SVG graphic files. Attached Figure Description

[0045] Figure 1This is a flowchart illustrating a system graphical interaction method between power grid systems according to one embodiment.

[0046] Figure 2 This is a schematic diagram of the framework of a system graphical interaction method between power grid systems according to one embodiment;

[0047] Figure 3 This is a schematic diagram of the system graphical interaction device between power grid systems according to one embodiment;

[0048] Figure 4 This is a schematic block diagram of the structure of a computer device according to one embodiment.

[0049] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0051] Those skilled in the art will understand that, unless explicitly stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in the specification of this application means the presence of features, integers, steps, operations, elements, units, cells, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, units, cells, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless couplings. The term “and / or” as used herein includes all or any of the units and all combinations thereof of one or more associated listed items.

[0052] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0053] Reference Figure 1 and Figure 2 This is a system graphical interaction method between power grid systems provided in one embodiment of the present application, comprising:

[0054] S1: Export the domain data and graphic data from the system graphics of the source system to generate CIM model files and SVG graphic files respectively;

[0055] S2: Determine the mapping relationship between the CIM model file and the SVG graphic file;

[0056] S3: Import the CIM model file and SVG graphic file into the target system in sequence to generate a new CIM model file and a new SVG graphic file, and complete the mapping between the new CIM model file and the new SVG graphic file in the target system based on the mapping relationship;

[0057] S4: Perform normalization processing on the new SVG graphic file to obtain an interactive graphic file.

[0058] The system graphical interaction method between power grid systems provided in this application is based on the graphical interaction rules of system diagrams and primary wiring diagrams between EMS (Energy Management System) / SCADA (Supervisory Control and Data Acquisition) systems using SVG (Scalable Vector Graphics), as well as the graphical interaction rules between EMS / SCADA systems and other application systems such as GIS (Geographic Information System). The purpose is to realize graphical exchange between different systems, different manufacturers, and different power companies. The system graphics used in this application include, but are not limited to, system diagrams (geographical and schematic) and substation single-line diagrams, collectively referred to as SVG single-line diagrams.

[0059] The normative references applicable to this application include:

[0060] GB / T 4728 Standard for Drawing of Electrical Engineering

[0061] ISO 10646 - Universal Multiple-octet Coded Character Set (Information Technology)

[0062] IEC 61970-1, EMSAPI–Part 1: Guidelines and General Requirements

[0063] IEC 61970-2,EMSAPI–Part 2:Glossary

[0064] IEC 61970-301, EMSAPI–Part 301: Common Information Model (CIM) Base

[0065] IEC 61970-402, EMSAPI–Part 402: Common Services

[0066] IEC 61970-452, EMSAPI–Part 452: CIM Model Exchange Specification

[0067] IEC 61970-453, EMSAPI–Part 453: CIM Based Graphics Exchange

[0068] SVG 1.1 Specification;

[0069] As described in step S1 above, the domain data and graphic data in the system diagram of the source system are exported to generate CIM model files and SVG graphic files, respectively. The domain data includes the CIM model (i.e., the metadata model) of the system diagram, as well as the exchange types of the required devices, metadata elements, and corresponding metadata attributes within the model, as detailed in the table below:

[0070]

[0071]

[0072] The SVG graphics file contains definitions of system graphics chart objects, graphic objects, group objects, chart views, layer definitions, metadata objects, etc., as detailed in the table below:

[0073]

[0074] Figure 2 The SVG viewer in the document is not required; it is only used as a way to verify the correctness of the SVG document. It can be used to locate problems during the export and import process. The import program of the target system is responsible for reporting and handling inconsistencies between the graphics and the model, such as whether domain data is missing.

[0075] As described in step S2 above, determining the mapping relationship between the CIM model file and the SVG graphic file involves determining which type of normative reference and implementation the CIM model and the SVG graphic are based on.

[0076] As described in steps S3-S4 above, domain data import should precede graphic data import; otherwise, the references from graphics to domain objects cannot be resolved. That is, when importing into the target system, the CIM model file must be imported first, followed by the SVG graphic files. Otherwise, the references from graphics to domain objects cannot be resolved. After importing the CIM model file and SVG graphic files into the target system, the target system will create an interactive graphic file suitable for the target system based on its required device information and corresponding mapping relationships, and will perform normalization processing on the new SVG graphic file, such as setting colors, scaling, logos, width, height, background color, and foreground color to conform to the target system.

[0077] In one embodiment, the step of determining the mapping relationship between the CIM model file and the SVG graphic file includes:

[0078] The CIM model file and the SVG graphic file are parsed respectively to obtain the equipment information in the CIM model file and the graphic element information in the SVG graphic file;

[0079] The mapping relationship between the CIM model file and the SVG graphic file is generated based on the reference between the device information and the graphic element information.

[0080] As described above, after obtaining the system graphics of the source system, the system graphics CIM model file and the SVG graphic file are extracted and parsed to obtain the required equipment information in the CIM model file and the primitive information used in the SVG graphic file. Based on the CIM model, the reference relationship between the extracted equipment information and the primitive information is determined. According to the reference relationship between the two, the mapping relationship between the CIM model file and the SVG graphic file can be determined, that is, the above-mentioned normative reference relationship, to map the connection relationship between the CIM model and the graphics.

[0081] In one embodiment, the step of sequentially importing the CIM model file and the SVG graphic file into the target system to generate a new CIM model file and a new SVG graphic file, and then completing the mapping between the new CIM model file and the new SVG graphic file in the target system based on the mapping relationship includes:

[0082] The SVG graphic file is loaded into the import program of the target system and traversed to obtain the layer information of the SVG graphic file.

[0083] The CIM model file is loaded into the import program of the target system for parsing to obtain the CIM model;

[0084] Obtain the device object information of the target system;

[0085] Associate the CIM model with the device object information of the target system to generate a new CIM model file;

[0086] The layer information is imported into the new drawing, and the device object information in the new CIM model file and the layer information are mapped between the new CIM model file and the new SVG graphic file in the target system.

[0087] As described above, based on the import program in the target system, the SVG graphic file is traversed to obtain the layer information of the SVG graphic file. This layer information includes: a static background layer (Head_Layer), a power equipment component layer, a static text layer (Text_Layer), a measurement layer (MeasurementValue_Layer), a connection layer (Link_Layer), other layers (Other_Layer), and a hotspot layer (Ref_Layer). The static background layer includes the width, height, background color, and foreground color of the entire graphic. The power equipment component layer is layered according to different power equipment component types, including both AC and DC components: such as the Bus_Layer, Load_Layer, AC segment endpoint layer (ACLineSegment_Layer), AC segment layer (ACLine_Layer), Circuit breaker layer (Breaker_Layer), Disconnector layer (Disconnector_Layer), and Grounding switch layer (Gro). The following layers are included: undDisconnector_Layer, two-roller transformer layer (Transformer2_Layer), three-roller transformer layer (Transformer3_Layer), generator layer (Generator_Layer), terminal equipment layer (Terminal_Layer), dollyBreaker layer (DollyBreaker_Layer), capacitor layer (Compensator_Layer), reactor layer (Reactor_Layer), voltage transformer layer (PT_Layer), current transformer layer (CT_Layer), DC switching equipment layer (DCSwitch_Layer), DC commutator layer (HLJ_Layer), DC terminal equipment layer (DCTerminal_Layer), DC grounding equipment layer (DCGroundTerminal_Layer), DC conductor layer (DCLine_Layer), and DC conductor end layer (DCLineSegment_Layer); the static text layer is used for static text. <text>Element or primitive descriptions mainly include coordinate position, font size, type, font direction, color, etc.; the measurement layer is used to describe dynamic text information, and compared with static text, it includes more... <metadata / > Information such as ObjectID within the element. For measurements on the device, the format ObjectID = "Device Name: Measurement Type" is used. The advantage of this is that the importing party can directly generate measurements for the device based on the "Device Name" and "Measurement Type" information, eliminating the need for mapping with CIMXML. The connection relationship layer is used to describe the connection lines on the diagram. <path>Elements include descriptive information such as the start and end points of the connecting lines, the coordinates of each inflection point, color, and line width. The following information is optional: The connection relationships of the graphics are described in this layer, including the total number of devices connected by the connecting lines, the specific device ID at each end, and which terminal the connecting line is connected to. Other layers are used to store objects that do not have electrical meaning. The hotspot layer is used to handle all photosensitive points. For example, for hotspots on the graphics, they can be linked to the SVG file using the following method:

[0088] <a xlink:href="***.svg">

[0089] For example

[0090] <a xlink:href="广电_220kv某某变.svg">

[0091] <rect x="0"y="0"width="227"height="80"fill-opacity="0"stroke-opacity="0"stroke-width="2" / >

[0092] .

[0093] Where x and y are the coordinates of the hot spots on the graphic, width is the width of the graphic, height is the height of the graphic, fill-opacity represents the fill opacity of the graphic, stroke-opacity represents the border opacity, and stroke-width represents the border width.

[0094] The CIM model file will then be loaded into the import program of the target system for parsing to obtain the CIM model. Based on the parsed CIM model, device object information adapted to the target system, such as device name and ID, will be obtained. Then, the mapping between the new CIM model file and the new SVG graphic file will be completed through the mapping relationship between the CIM model file and the SVG graphic file obtained above.

[0095] In one embodiment, the step of performing normalization processing on the new SVG graphic file includes:

[0096] Examine the header of the new SVG graphic file, which contains version information for the XML application;

[0097] Specifically, there are several parameters to pay attention to during the header file verification process:

[0098] XML version: This refers to the XML version used. Since SVG graphics are based on XML, an SVG document must also contain XML declarations and a root element. The currently used version is 1.0.

[0099] Character encoding uses UTF-8

[0100] The DOCTYPE should specify whether it is SVG or the SVG version.

[0101] The root element of an SVG primarily describes the width and height of the entire graphic, as well as its namespace. `width` and `height` describe the width and height of the canvas, and `viewBox` allows for translation and transformation within the local coordinate system. The main namespaces are: <svg>The element is in the namespace http: / / www.w3.org / 2000 / svg, which is the default namespace. Two other namespaces are required.

[0102] xmlns:xlink="http: / / www.w3.org / 1999 / xlink", xmlns:cge="http: / / iec.ch / TC57 / 2005 / SVG-schema#"; It is worth mentioning that when converting the representation between the source system and the target system, the transmitting side needs to express the representation. Whether the importing side needs to and how to handle these representations can be considered separately. The representation is mainly reflected in the defs, for example:

[0103] <defs> ...

[0105] < / defs> .

[0106] According to the requirements of the primitive objects in the target system, the first primitive object contained in the new SVG graphics file is replaced with the second primitive object required by the target system;

[0107] Specifically, graphic elements describe how different power system objects are displayed in the diagram. For example, a switch can be displayed as a trolley shape or a standard switch shape. The corresponding graphic elements in the source system are replaced with the graphic elements of the target system. Among them, graphic element objects include: substations / electricity rooms, feeder switches, load switches, disconnect switches, circuit breakers, knife switches, grounding knife switches, transformers, busbars, overhead lines / cables, connecting lines, annotation text, base map, and layers.

[0108] Based on the style of the visualization elements required by the target system, the first visualization element contained in the new SVG graphic file is replaced with the second visualization element required by the target system.

[0109] Specifically, in a VG document, shapes, paths, or groups can be copied to multiple different locations within the document, by using... <use>An element references an element defined elsewhere in the document. Generally, the referenced element is placed in a... <defs>The interior of the element, up to a <use>The graphics are drawn only when an element references these elements. <defs>The element is only used to define the referenced element; it does not perform the actual drawing and rendering of the element.

[0110] Graphic primitives are converted into symbol elements in SVG. <symbol>This is used to define an image template. The defined template can only be accessed through... <use>Elements are referenced as instances for actual rendering. For example, a knife switch primitive is converted into two states, open and closed, respectively, in the SVG document. <symbol>element.

[0111] In one embodiment, after the step of replacing the first visual element contained in the new SVG graphic file with the second visual element required by the target system according to the style of the visual element required by the target system, the method further includes:

[0112] Define a reference to the new SVG graphics file in the target system, the definition steps including:

[0113] Set an identifier containing specific elements in the second primitive object;

[0114] When the second primitive object is referenced, the second primitive object is drawn to the reference location using the identifier.

[0115] As described above, in the above steps, primitives are defined, that is, by using... <use>The element references an element defined elsewhere in the document.

[0116] <use>The syntax for elements is:

[0117] <use xlink:href="#some_local_uri" / > .

[0118] In SVG, references can use absolute or relative URLs. The "xlink:href" example above doesn't require the "url" keyword; alternatively, you can use `url(#xpointer(id-name))`. For instance, the actual knife switch object is drawn using... <use>The reference to the element will be the one corresponding to "Disconnector". <symbol>The element is drawn to the reference.

[0119] It is worth mentioning that after defining the coloring style and style name for each voltage level, referencing a selector in a specific element requires using the "class" attribute.

[0120] In one embodiment, after the step of drawing the second primitive object to the reference location using the identifier when the second primitive object is referenced, the method further includes performing coordinate transformation on the second primitive object, the transformation step including:

[0121] Obtain the initial coordinates of the second primitive object in the image template;

[0122] The actual coordinates of the second primitive object in the new SVG graphic file are calculated based on the initial coordinates, using the following formula:

[0123]

[0124] Where x and y are the initial coordinate values ​​of the second primitive object in the image template, and x1 and x2 are the actual coordinate values ​​of the second primitive object in the new SVG graphic file. The coordinate transformation expression when referencing the image template is as follows:

[0125] transform = matrix(abcdef),

[0126] a, b, c, d, e, and f are elements within the matrix in the transform matrix function, and all are constants.

[0127] As mentioned above, the coordinate transformation utilizes matrix operations to transform the original coordinates of the image template symbol position into the actual coordinates on the SVG graphic. The formula for calculating the matrix transformation of a two-dimensional coordinate system is:

[0128]

[0129] Where x and y are the initial coordinate values ​​of the second primitive object in the image template, and x1 and x2 are the actual coordinate values ​​of the second primitive object in the new SVG graphic file. The coordinate transformation expression when referencing the image template is as follows:

[0130] transform = matrix(abcdef),

[0131] Where a, b, c, d, e, and f are elements within the matrix of the transform matrix function, and all are constants.

[0132] In one embodiment, the step of performing normalization processing on the new SVG graphic file further includes:

[0133] Define the topological representation relationship between the second primitive objects in the new SVG graphics file;

[0134] The connection relationships among all devices are determined based on the topological representation relationship.

[0135] As mentioned above, for general SCADA diagrams, it is recommended that all devices be directly associated with the ConnectiveNode in the CIM, as this reduces the need for endpoint representation. For the topologically topologically optimized bus branch model diagram, it is recommended that the CN_Ref be directly the bus. For example:

[0136]

[0137]

[0138] For the receiving end, this description is complete in terms of topology, fully representing the connection relationships between all devices. This allows the receiving end to perform topology analysis graphically even without CIM files or data. The SVG graphic ID is implemented using a format where 'g' is followed by 'id', i.e.<g id="BS-3"> .

[0139] Reference Figure 4 This application also provides a computer device, which may be a server, and its internal structure may be as follows: Figure 4 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data generated by graphical interactions between power grid systems. The network interface communicates with external terminals via a network. When executed by the processor, the computer program implements graphical interaction methods between power grid systems.

[0140] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer equipment on which the present application is applied.

[0141] One embodiment of this application also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements a system graphical interaction method between power grid systems. It is understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0142] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media provided in this application and in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-speed SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0143] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, apparatus, article, or method. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.

[0144] The above description is only a preferred embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural changes made based on the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.< / symbol> < / use> < / use> < / use> < / symbol> < / use> < / symbol> < / defs> < / use> < / defs> < / use> < / svg> < / path> < / text>

Claims

1. A system graphical interaction method between power grid systems, characterized in that, include: Export the domain data and graphic data from the system graphics of the source system to generate CIM model files and SVG graphic files respectively; Determine the mapping relationship between the CIM model file and the SVG graphic file; The SVG graphic file is loaded into the import program of the target system for traversal, filtering out the power equipment component layers, including the bus layer, load layer, and circuit breaker layer, and removing the static background layer to obtain the layer information of the SVG graphic file; the CIM model file is loaded into the import program of the target system for parsing to obtain the CIM model; the equipment object information of the target system is obtained, including the equipment unique identifier, rated parameters, and operating status fields; the CIM model is associated with the equipment object information of the target system to generate a new CIM model file; the layer information is imported into a new drawing, and the equipment object information and the layer information in the new CIM model file are mapped between the new CIM model file and the new SVG graphic file in the target system. Furthermore, it supports real-time retrieval of the corresponding equipment's operating data in the new CIM model file, including rated current, voltage level, and fault status, through clicking on the equipment elements in the SVG graphic in the target system. The process involves: verifying the header of the new SVG graphic file, which contains version information for the XML application; replacing the first primitive object in the new SVG graphic file with the second primitive object required by the target system, including standard disconnector symbols and standard circuit breaker symbols, according to the power equipment standard symbol library in the power engineering drawing standard and the requirements of the primitive objects in the target system; replacing the first visual element in the new SVG graphic file with the second visual element required by the target system, according to the unified coloring style requirements for different voltage levels of the power grid and the style of the visual elements required by the target system; triggering a graphic consistency check after the replacement is completed: comparing the matching degree between the equipment primitive positions in the new SVG graphic and the equipment coordinates in the new CIM model, automatically adjusting the primitive coordinates to meet the accuracy requirements of the target system, and then generating an interactive graphic file. The step of determining the mapping relationship between the CIM model file and the SVG graphic file includes: The CIM model file and the SVG graphic file are parsed respectively to obtain the equipment information in the CIM model file and the graphic element information in the SVG graphic file; Generate a mapping relationship between the CIM model file and the SVG graphic file based on the reference between the device information and the graphic element information; After the step of replacing the first visual element contained in the new SVG graphic file with the second visual element required by the target system according to the style of the visual element required by the target system, the method further includes: Define a reference to the new SVG graphics file in the target system, the definition steps including: Set an identifier containing specific elements in the second primitive object; When the second primitive object is referenced, the second primitive object is drawn to the reference location using the identifier; After the step of drawing the second primitive object to the reference location using the identifier when the second primitive object is referenced, the method further includes performing coordinate transformation on the second primitive object, the transformation step including: Obtain the initial coordinates of the second primitive object in the image template; The actual coordinates of the second primitive object in the new SVG graphic file are calculated based on the initial coordinates, using the following formula: ; Where x and y are the initial coordinate values ​​of the second primitive object in the image template. and These are the actual coordinate values ​​of the second primitive object in the new SVG graphics file. When referencing an image template, the coordinate transformation is expressed as follows: transform = matrix(abcdef), a, b, c, d, e, and f are elements within the matrix in the transform matrix function, and all are constants.

2. The system graphical interaction method between power grid systems as described in claim 1, characterized in that, The steps of performing normalization processing on the new SVG graphics file also include: Define the topological representation relationship between the second primitive objects in the new SVG graphics file; The connection relationships among all devices are determined based on the topological representation relationship.

3. A system graphical interaction device for power grid systems, used to execute the system graphical interaction method for power grid systems as described in any one of claims 1 or 2, characterized in that, include: The data export module is used to export the domain data and graphic data from the system graphics of the source system, generating CIM model files and SVG graphic files respectively. A mapping relationship acquisition module is used to determine the mapping relationship between the CIM model file and the SVG graphic file; The data import module is used to import the CIM model file and SVG graphic file into the target system in sequence, generate a new CIM model file and a new SVG graphic file, and complete the mapping between the new CIM model file and the new SVG graphic file in the target system based on the mapping relationship. The interactive graphics file generation module is used to perform normalization processing on the new SVG graphics file to obtain an interactive graphics file.

4. A computer device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the system graphical interaction method between power grid systems as described in any one of claims 1 or 2.

5. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the steps of the system graphical interaction method between power grid systems as described in any one of claims 1 or 2.

Citation Information

Patent Citations

  • Method for importing power grid CIM (common information model) data and SVG (scalable vector graphic) data

    CN102521380A