Web end visualization method of transformer substation main wiring diagram based on G language

By analyzing the XML format G file and converting it to JSON format data, real-time display of the main wiring diagram of the substation on the web side is realized, which solves the problem that the existing technology cannot be visualized on the web side, and improves the digitalization and operation and maintenance efficiency of the power system.

CN119621048AInactive Publication Date: 2025-03-14国网陕西省电力有限公司西安供电公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410193879.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-01-30
Filing Date
2024-02-21
Publication Date
2025-03-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art cannot directly visualize the main wiring diagram of the substation of the power system on the web side, resulting in the need to reconfigure the main wiring diagram when the devices of different manufacturers are replaced, which affects work efficiency.

Method used

Get XML format G files through the Http service, convert them into JSON format data, parse basic primitive collection, interval template collection and layer collection, and realize real-time display on the web side.

Benefits of technology

The real-time display of the main wiring diagram of the substation on the web is realized, and the digitalization and Internetization of the power system is improved, making the operation and maintenance of the intelligent substation more vivid, intuitive, efficient and convenient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention discloses a Web end visualization method for a transformer substation main wiring diagram based on a G language, and the method comprises the steps: drawing layer primitives in a page of a Web end according to the layer width, the layer height and the layer coordinate position of a layer set; in the layer primitives, interval primitives and interval connecting line primitives are drawn according to instantiation intervals and instantiation interval connecting lines, and in the interval primitives, basic primitives and interval inner basic primitive connecting line primitives are drawn according to an associated interval template BayTemplate; the method comprises the following steps: acquiring a rear-end interval name, rear-end interval display information and rear-end interval color information through an Http service, finding a corresponding interval primitive according to the rear-end interval name, and performing display and hiding switching on a basic primitive in the corresponding interval primitive according to the rear-end interval display information. And adjusting the color of the interval primitive according to the color information of the back-end interval. According to the method, the visualization of the main wiring diagram on the Web can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of visualization of a main wiring diagram of a substation, and relates to a Web-side visualization method of a main wiring diagram of a substation based on G language. Background Art

[0002] The Power System Graphical Description Specification (hereinafter referred to as "G language") is a new type of graphic description language applied to power systems, which was developed based on IEC 61970-453 CIM-based graphic exchange to address the shortcomings of the SVG-based common graphic exchange format, which cannot directly express the integration of power system graphics and models.

[0003] At present, the main wiring diagrams of the devices of major manufacturers of power system secondary equipment adopt the manufacturer's private mode. Different manufacturers cannot exchange the main wiring diagram files. If the device is replaced with a device from another manufacturer, it is necessary to reconfigure the main wiring diagram and use its own main wiring diagram file, which greatly affects the work efficiency. Although the G language is based on the SVG basic drawing format, it has also expanded many power equipment graphics elements, as well as new methods of graphic element templates, graphic element references, interval templates, and interval references. These are incompatible with the SVG specification and cannot be directly visualized on the Web. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a Web-side visualization method of a substation main wiring diagram based on G language, which can realize the visualization of the main wiring diagram on the Web.

[0005] In order to achieve the above object, the present invention adopts the following technical scheme:

[0006] In one aspect, the present invention provides a Web-side visualization method of a substation main wiring diagram based on G language, comprising:

[0007] 1) Obtain the G file in XML format through the HTTP service;

[0008] 2) Convert the G file in XML format to data in JSON format;

[0009] 3) Parsing the basic primitive set in the data in JSON format, the basic primitive set includes several basic primitives;

[0010] 4) parsing the interval template set in the data in JSON format, where the interval template set includes a plurality of interval templates, and the interval templates include a plurality of basic primitive templates and basic primitive connection lines in the intervals;

[0011] 5) Parse the layer set in the JSON format data. The attributes of the layer set include layer width, layer height, layer coordinate position, and layer background color. The layer set includes a number of instantiation intervals and connecting lines between instantiation intervals.

[0012] 6) In the web page, draw layer primitives according to the layer width, layer height, and layer coordinate position of the layer set; in the layer primitives, draw interval primitives and inter-interval connecting line primitives according to the instantiated intervals and the connecting lines between instantiated intervals; in the interval primitives, draw basic primitives and inter-interval basic primitive connecting line primitives according to the associated interval template BayTemplate;

[0013] 7) Obtain the backend interval name, backend interval display information, and backend interval color information through the Http service, find the corresponding interval graphic element according to the backend interval name, switch the display and hiding of the basic graphic elements in the corresponding interval graphic element according to the backend interval display information, and adjust the color of the interval graphic element according to the color information of the backend interval.

[0014] In step 3), the basic graphic element includes basic graphic element drawing information.

[0015] The basic primitive drawing information includes the basic primitive width, the basic primitive height, the basic primitive coordinate position, and the shape and coordinate position of each basic graphic unit constituting the basic primitive.

[0016] The attributes of the spacing template include path attributes, spacing template width, spacing template height, and spacing template coordinate position.

[0017] The interval template includes the coordinate position, name, transformation information and display information of each basic primitive template. The basic primitive template and the basic primitive are associated through the name of the basic primitive template and the type attribute of the basic primitive.

[0018] When the base element template of the interval template references the base element, the coordinate system of the base element is transformed to the coordinate system of the base element template, and the base element is translated, rotated or scaled according to the transformation information of the base element template.

[0019] In step 5), the instantiated inter-compartment connection line includes a connection line path attribute.

[0020] In step 5), each instantiation interval includes corresponding coordinate position, name, and transformation information.

[0021] In step 5), the instantiated interval and the interval template are associated through the name of the instantiated interval and the path attribute of the interval template.

[0022] In step 5), when the instantiated interval references the corresponding interval template, the coordinate system of the interval template is converted to the coordinate system of the instantiated interval, and the interval template is translated, rotated or scaled according to the transformation information of the instantiated interval.

[0023] The present invention has the following beneficial effects:

[0024] The Web-side visualization method of the substation main wiring diagram based on the G language described in the present invention realizes the real-time display of the substation main wiring diagram on the Web side by parsing the basic graphic element set, interval template set and layer set in the data in JSON format during specific operation, providing technical support for the digitization and Internetization of the power system; the main wiring diagram constructed by the present invention has the characteristics of objectification and modeling, making the operation and maintenance of the smart substation more vivid, intuitive, efficient and convenient, and providing a basis for the further development of advanced applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:

[0026] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0030] Embodiment 1

[0031] refer to Figure 1 The Web-side visualization method of the main wiring diagram of a substation based on the G language of the present invention can visualize the main wiring diagram on the Web side, making the operation and maintenance of the smart substation more intuitive, efficient and convenient, and includes the following steps:

[0032] 1) Obtain the G file in XML format from the backend through the interface provided by the Http service.

[0033] 2) Convert the G file in XML format into data in JSON format that can be used by the front end through the XMLtojs plug-in, process the data in JSON format, and obtain a basic graphic element set, an interval template set, and a layer set.

[0034] 3) Analyze the basic primitive set.

[0035] The basic element collection ElemDefines includes multiple basic elements ElemDef.

[0036] The attributes of the basic element ElemDef include a type attribute type.

[0037] The type attribute type is the type of the basic primitive. Basic primitives are used to describe a type of power equipment primitive, such as: circuit breaker basic primitive (CBreaker), disconnector basic primitive (Disconnector), grounding switch basic primitive (GroundDisconnector), generator basic primitive (Generator), etc. Basic graphic units include standard shapes such as rectangle, circle, ellipse, straight line, polyline and polygon.

[0038] The basic primitive ElemDef includes basic primitive drawing information.

[0039] The basic primitive drawing information includes the basic primitive width, the basic primitive height, and the basic primitive coordinate position.

[0040] Furthermore, the basic graphic element drawing information also includes the shapes and coordinate positions of each basic graphic unit constituting the basic graphic element.

[0041] The coordinate positions of the basic primitives and the basic graphic units are based on the coordinate system in the basic primitive set ElemDefines.

[0042] 4) Analyze the interval template set BayTemplates, where the interval template set BayTemplates includes multiple interval templates BayTemplate.

[0043] The properties of the bay template BayTemplate include the path property path, the bay template width (w), the bay template height (h), and the bay template coordinate position.

[0044] Furthermore, the bay template BayTemplate also includes each basic primitive template, and also includes the coordinate position (x, y), name (DevRef), transformation information (tfr), and display information (sta) of each basic primitive template.

[0045] Furthermore, the interval template BayTemplate also includes the basic primitive connection lines within the interval, and the basic primitive connection lines within the interval include connection line path attributes (RoundBox) for connecting each basic primitive template within the interval.

[0046] The basic element template and the basic element ElemDef are associated through the name of the basic element template (DevRef) and the type attribute type of the basic element ElemDef.

[0047] For example, the name of the basic primitive template (DevRef) and the type attribute type of the basic primitive ElemDef are both "km-CT.g", which means that the basic primitive template refers to the corresponding basic primitive ElemDef.

[0048] The coordinate positions of the interval template and the basic primitive template are based on the coordinate system of the interval template set. Therefore, when the basic primitive template of the interval template BayTemplate references the basic primitive ElemDef, the coordinate system of the basic primitive ElemDef needs to be transformed to the coordinate system of the basic primitive template. And the basic primitive ElemDef is translated, rotated or scaled according to the transformation information (tfr) of the basic primitive template.

[0049] 5) Analyze the layer set.

[0050] The properties of a layer collection include layer width, layer height, layer coordinate position, and layer background color (bgc).

[0051] The layer collection includes multiple instantiation intervals and connecting lines between instantiation intervals. The connecting lines between instantiation intervals include connecting line path attributes (RoundBox). The connecting lines between instantiation intervals are used to connect each instantiation interval in the layer collection.

[0052] Each instantiation interval includes a corresponding coordinate location, a name (DevRef), and transformation information (tfr).

[0053] The instantiated interval and the interval template BayTemplate are associated through the name of the instantiated interval (DevRef) and the path attribute path of the interval template BayTemplate. For example, if the name of the instantiated interval (DevRef) and the path attribute path of the interval template BayTemplate are both "reactor, capacitor interval template", the instantiated interval and the interval template BayTemplate are associated, and the instantiated interval refers to the corresponding interval template BayTemplate.

[0054] The coordinate position of the instantiated interval and the layer coordinate position are both based on the coordinate system in the layer collection. Therefore, when referencing the corresponding interval template BayTemplate between instantiations, it is necessary to convert the coordinate system of the interval template BayTemplate to the coordinate system of the instantiated interval, and translate, rotate or scale the interval template BayTemplate according to the transformation information (tfr) of the instantiated interval.

[0055] 6) In the web page, draw layer primitives according to the layer width, layer height, and layer coordinate position of the layer set; in the layer primitives, draw interval primitives and inter-interval connecting line primitives according to the instantiated intervals and the connecting lines between instantiated intervals; in the interval primitives, draw basic primitives and inter-interval basic primitive connecting line primitives according to the associated interval template BayTemplate.

[0056] 7) The backend interval name (name), backend interval display information (sta), and backend interval color information (color) are obtained from the backend through the interface provided by the Http service. The corresponding interval graphic element is found according to the backend interval name. The basic graphic element in the corresponding interval graphic element is displayed and hidden according to the backend interval display information (sta). The color information of the backend interval adjusts the color of the interval graphic element.

[0057] In the web page, you can add a click event on the web according to the name of the interval element, and jump to the page of the corresponding interval element. The page of the interval element displays each basic element and the corresponding basic element connection line.

[0058] Combining the relevant specifications of the G language and the SVG polyline drawing method, the connection line path attribute (RoundBox) of the basic primitive connection line within the interval and the connection line path attribute (RoundBox) of the instantiated interval connection line are changed to the polyline attribute of SVG polyline drawing to realize the drawing of the connection line.

[0059] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A Web-based visualization method for a substation main wiring diagram based on G language, characterized in that: include: 1) Obtain the G file in XML format through the HTTP service; 2) Convert the G file in XML format to data in JSON format; 3) Parsing the basic primitive set in the data in JSON format, the basic primitive set includes several basic primitives; 4) parsing the interval template set in the data in JSON format, the interval template set including a plurality of interval templates, the interval template including a plurality of basic primitive templates and basic primitive connection lines in the interval; 5) Parse the layer set in the JSON format data. The properties of the layer set include layer width, layer height, layer coordinate position, and layer background color; The layer set includes a number of instantiation intervals and connecting lines between the instantiation intervals; 6) In the web page, draw the layer primitives according to the layer width, layer height, and layer coordinate position of the layer set; In the layer primitives, according to the instantiated intervals and the connecting lines between the instantiated intervals, the interval primitives and the connecting line primitives between the intervals are drawn; in the interval primitives, according to the associated interval template BayTemplate, the basic primitives and the connecting line primitives of the basic primitives within the interval are drawn; 7) Obtain the backend interval name, backend interval display information, and backend interval color information through the Http service, find the corresponding interval graphic element according to the backend interval name, switch the display and hiding of the basic graphic elements in the corresponding interval graphic element according to the backend interval display information, and adjust the color of the interval graphic element according to the color information of the backend interval.

2. The web-side visualization method of the substation main wiring diagram based on G language according to claim 1 is characterized in that: In step 3), the basic graphic element includes basic graphic element drawing information.

3. The web-side visualization method of the substation main wiring diagram based on G language according to claim 1 is characterized in that: The basic primitive drawing information includes the basic primitive width, the basic primitive height, the basic primitive coordinate position, and the shape and coordinate position of each basic graphic unit constituting the basic primitive.

4. The web-side visualization method of the substation main wiring diagram based on G language according to claim 1 is characterized in that: The attributes of the spacing template include path attributes, spacing template width, spacing template height, and spacing template coordinate position.

5. The Web-side visualization method of the substation main wiring diagram based on G language according to claim 1 is characterized in that: The interval template includes the coordinate position, name, transformation information and display information of each basic primitive template. The basic primitive template and the basic primitive are associated through the name of the basic primitive template and the type attribute of the basic primitive.

6. The Web-side visualization method of the substation main wiring diagram based on G language according to claim 5 is characterized in that: When the base element template of the interval template references the base element, the coordinate system of the base element is transformed to the coordinate system of the base element template, and the base element is translated, rotated or scaled according to the transformation information of the base element template.

7. The Web-side visualization method of the substation main wiring diagram based on G language according to claim 5 is characterized in that: In step 5), the instantiated inter-compartment connection line includes a connection line path attribute.

8. The method for visualizing the main wiring diagram of a substation on the Web based on G language according to claim 5, characterized in that: In step 5), each instantiation interval includes corresponding coordinate position, name, and transformation information.

9. The Web-side visualization method of the substation main wiring diagram based on G language according to claim 5 is characterized in that: In step 5), the instantiated interval and the interval template are associated through the name of the instantiated interval and the path attribute of the interval template.

10. The method for visualizing the main wiring diagram of a substation on the Web based on G language according to claim 5, characterized in that: In step 5), when the instantiated interval references the corresponding interval template, the coordinate system of the interval template is converted to the coordinate system of the instantiated interval, and the interval template is translated, rotated or scaled according to the transformation information of the instantiated interval.