CN109710897B - Bidirectional conversion method for graphic description format SVG and G language of power system - Google Patents

Bidirectional conversion method for graphic description format SVG and G language of power system Download PDF

Info

Publication number
CN109710897B
CN109710897B CN201811480493.8A CN201811480493A CN109710897B CN 109710897 B CN109710897 B CN 109710897B CN 201811480493 A CN201811480493 A CN 201811480493A CN 109710897 B CN109710897 B CN 109710897B
Authority
CN
China
Prior art keywords
graphic
svg
format
description
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811480493.8A
Other languages
Chinese (zh)
Other versions
CN109710897A (en
Inventor
李坤
何鹏
刘明峰
王萍
吴珺
吕庆真
程辉
张媛
田小川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
QINGDAO POWER SUPPLY Co OF STATE GRID SHANDONG ELECTRIC POWER Co
State Grid Corp of China SGCC
Original Assignee
QINGDAO POWER SUPPLY Co OF STATE GRID SHANDONG ELECTRIC POWER Co
State Grid Corp of China SGCC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by QINGDAO POWER SUPPLY Co OF STATE GRID SHANDONG ELECTRIC POWER Co, State Grid Corp of China SGCC filed Critical QINGDAO POWER SUPPLY Co OF STATE GRID SHANDONG ELECTRIC POWER Co
Priority to CN201811480493.8A priority Critical patent/CN109710897B/en
Publication of CN109710897A publication Critical patent/CN109710897A/en
Application granted granted Critical
Publication of CN109710897B publication Critical patent/CN109710897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a bidirectional conversion method of a graphic description format SVG (scalable vector graphics) and a G language of a power system, belonging to the technical field of power dispatching automation. The invention comprises the following steps: the method comprises the following steps: analyzing the graphic file to be converted, wherein the DOM frame is used in the analyzing method; step two: generating a graphic object description based on a memory; step three: generating a primitive description object; step four: constructing a connection relation between the graphic objects; step five: analyzing and correlating metadata; step six: and generating a needed SVG format file or a G format file from the graphic object in the memory. The invention can realize that: (1) The bidirectional conversion is convenient and flexible, and the holography of the conversion is ensured based on the unified memory; (2) The adaptability of the two standards is good, and the original investment is protected by converting the two standards and the original system; (3) The method promotes the graph sharing and fusion of the heterogeneous system and the new and old systems, and breaks through barriers caused by technology upgrading.

Description

Bidirectional conversion method for graphic description format SVG and G language of power system
Technical Field
The invention relates to a bidirectional conversion method of a graphic description format SVG (scalable vector graphics) and a G language of a power system, belonging to the technical field of power dispatching automation.
Background
The two description languages of CIM/SVG and CIM/G are both in IEC61970 standard, and have respective characteristics with larger difference. SVG is a graphic description mode recommended by early IEC, graphics in a power system are described by combining SVG extensible vector graphic specification and CIM standard of a common information model of the power system, the graphics are used as EMS-API for standardized interaction, and most of web browsers can support the display of the SVG. The CIM/G language provides a new generation of graphic description specification for China national grid company, and the new generation of graphic description specification enters IEC61970 series standard-556, defines description labels of all electrical primitives on the basis of xml, defines independent primitive description files and interval description files, is superior to the CIM/SVG specification in file size, and better accords with the characteristics of power system graphics. The language conversion of CIM/SVG and CIM/G can shield the adaptability of two standards, and CIM/G can be conveniently processed on the original system only supporting SVG. And the system only supporting CIM/G can be converted into an SVG format for displaying in a WEB browser.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a bidirectional conversion method of a power system graphic description format SVG and a G language, which is based on a memory object model, analyzes CIM/SVG and CIM/G format graphic files to classify and store information in the files, constructs a primitive, a layer, a connection relation and a metadata object model, and converts and outputs a required graphic format file on the basis of the constructed general graphic object description model, thereby realizing the bidirectional conversion function of the CIM/SVG and the CIM/G format files.
The invention relates to a bidirectional conversion method of a power system graphic description format SVG and a G language, which comprises the following steps:
the method comprises the following steps: analyzing the graphic file to be converted, wherein the DOM frame is used in the analyzing method;
step two: generating a graphic object description based on a memory;
step three: generating a primitive description object;
step four: constructing a connection relation between the graphic objects;
step five: analyzing and correlating metadata;
step six: and generating a required SVG format file or G format file from the graphic object in the memory.
As a further limitation, in the first step, the graphic file includes: SVG format files and G format files, both of which bear XML standard and are read by DOM frames.
As a further limitation, the second step specifically includes the following sub-steps:
whether the SVG format file and the G format file are processed, the file information is stored in the internal memory in a uniform intermediate graphic object description format.
As a further limitation, in the third step, the primitive information of the SVG is described in Symbol in the SVG format file, the G format graphics adopts an independent G format file to describe the primitive information, the primitive files are read respectively after the primitives cited in the graphics are analyzed, and the primitive description information is generated in the memory in a unified manner.
By way of further limitation, in the fourth step, the connection relationship between the graphic objects is used to describe the topological relationship of the electrical connection in the electrical graph, and the reference ID of the object connected with the graphic object is added in the graphic object.
As a further limitation, the step five specifically includes the following sub-steps:
and adding electrical object description information to the electrical objects in the memory, wherein the content of the electrical object description information comprises a device object related to the graphic object and a remote measuring object related to the dynamic data object.
As a further limitation, in the sixth step, the unified graphic object description in the memory is output as an SVG format file or a G format file through a tag mapping technology.
The beneficial effects of the invention are: the bidirectional conversion method of the graphic description format SVG and the G language of the power system can realize that: (1) The bidirectional conversion is convenient and flexible, and the holography of the conversion is ensured based on the unified memory; (2) The adaptability of the two standards is good, and the original investment is protected by converting the two standards and the original system; (3) The graph sharing and fusion of the heterogeneous system and the new and old system are promoted, and the barrier caused by technology updating is broken.
Drawings
Fig. 1 is a schematic diagram of the bi-directional conversion of the present invention.
FIG. 2 is a diagram illustrating the structure stored in the graphic description object according to the present invention.
Detailed Description
In order to make the object and technical solution of the present invention more apparent, the present invention will be further described in detail with reference to the following examples.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
In the present invention, terms such as "upper", "lower", "left", "right", "front", "rear", "vertical", "horizontal", "side", "bottom", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only terms of relationships determined for convenience of describing structural relationships of the parts or elements of the present invention, and are not intended to refer to any parts or elements of the present invention, and are not to be construed as limiting the present invention.
In the present invention, terms such as "fixedly connected", "connected", and the like are to be understood in a broad sense, and mean either a fixed connection or an integrally connected or detachable connection; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present invention can be determined according to specific situations by persons skilled in the art, and should not be construed as limiting the present invention.
Example 1:
as shown in fig. 1, the bidirectional conversion method for the graphic description format SVG and the G language of the power system according to the present invention includes the following steps:
the method comprises the following steps: analyzing the graphic file to be converted, wherein the DOM frame is used in the analyzing method;
step two: generating a graphic object description based on a memory;
step three: generating a primitive description object;
step four: constructing a connection relation between the graphic objects;
step five: analyzing and correlating metadata;
step six: and generating a required SVG format file or G format file from the graphic object in the memory.
As shown in fig. 2, in the first step, the graphic file includes: SVG format files and G format files, both of which bear XML standard and are read by DOM frames.
As a further limitation, the second step specifically includes the following steps:
the processing of both the SVG format file and the G format file stores the file information in the memory in a uniform intermediate graphic object description format.
As a further limitation, in the third step, the primitive information of the SVG is described in Symbol in the SVG format file, the G format graphics adopt an independent G format file to describe the primitive information, the primitive files are read respectively after the primitives quoted in the graphics are analyzed, and the primitive description information is generated in the memory in a unified manner.
By way of further limitation, in the fourth step, the connection relationship between the graphic objects is used to describe the topological relationship of the electrical connection in the electrical graph, and the reference ID of the object connected with the graphic object is added in the graphic object.
As a further limitation, the step five specifically includes the following sub-steps:
and adding electrical object description information to the electrical objects in the memory, wherein the content of the electrical object description information comprises a device object related to a graphic object and a telemetry object related to a dynamic data object.
As a further limitation, in the sixth step, the unified graphic object description in the memory is output as an SVG format file or a G format file through a tag mapping technology.
The beneficial effects of the invention are: the bidirectional conversion method of the graphic description format SVG and the G language of the power system can realize that: (1) The bidirectional conversion is convenient and flexible, and the holography of the conversion is ensured based on the unified memory; (2) The adaptability of the two standards is good, and the original investment is protected by converting the two standards and using the original system and the original standard; (3) The graph sharing and fusion of the heterogeneous system and the new and old system are promoted, and the barrier caused by technology updating is broken.
Example 2:
the intelligent dispatching system generally adopts graphic files in a G language (graphical programming language) format, while the substation monitoring system mostly supports graphic files in an SVG (Scalable Vector Graphics) format, and an SVG-to-G language graphic conversion module needs to be deployed on a substation monitoring platform to realize the function of remotely browsing the substation, so that the conversion from the SVG to the G format file is realized, and the dispatching master station can remotely browse the pictures and data of the substation monitoring system.
The invention relates to a bidirectional conversion method of a power system graphic description format SVG (scalable vector graphics) and a G language, in particular to a power grid CIM/E model analysis method based on event driving.
Based on the memory object model, the invention analyzes the CIM/SVG and CIM/G format graphic files to classify and store the information in the files, constructs the primitive, layer, connection relation and metadata object model, and converts and outputs the required graphic format files on the basis of the constructed general graphic object description model, thereby realizing the bidirectional conversion function of the CIM/SVG and CIM/G format files.
As shown in fig. 1, the step before generating the memory-based graphical object in step three is parsing, and the step after generating is outputting; the analysis is divided into SVG analysis and G analysis, and the output is also divided into output SVG and output G format; the method comprises the following specific steps:
the method comprises the following steps: analyzing the graphic file to be converted, wherein the DOM frame is used in the analyzing method;
step two: generating a graphic object description based on a memory;
step three: generating a primitive description object;
step four: constructing a connection relation between the graphic objects;
step five: analyzing and correlating metadata;
step six: and generating a required SVG format file or G format file from the graphic object in the memory.
As shown in fig. 2, a schematic diagram of a storage structure in a graphic description object is given, and a connection relationship between graphic objects is constructed; analyzing and correlating the metadata; and generating a required SVG format file or G format file from the graphic object in the memory.
The invention can be widely applied to the power dispatching automation occasion, realizes the bidirectional conversion of the graphic description files of the two power systems through a series of processes of file analysis, memory object generation, label mapping conversion and file generation, and can be widely applied to the exchange and storage of the graphics in the power systems.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the present invention, and all equivalent modifications, equivalents, improvements, etc. made within the spirit and scope of the present invention should be included in the scope of the present invention.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (3)

1. A bidirectional conversion method for graphic description formats SVG and G language of a power system is characterized by comprising the following steps:
the method comprises the following steps: analyzing the graphic file to be converted, wherein the DOM frame is used in the analyzing method;
step two: generating a graphic object description based on a memory; the second step specifically comprises the following small steps:
whether the SVG format file and the G format file are processed, the file information is stored in the memory in a uniform intermediate graphic object description format;
step three: generating a primitive description object; in the third step, the primitive information of the SVG is described in Symbol in an SVG format file, the G format graph adopts an independent G format file to describe the primitive information, the primitive files are respectively read after the primitives quoted in the graph are analyzed, and the primitive description information is uniformly generated in a memory;
step four: constructing a connection relation between the graphic objects; in the fourth step, the connection relation among the graphic objects is used for describing the electrical connection topological relation in the electrical graph, and the reference ID of the object connected with the graphic objects is added in the graphic objects;
step five: analyzing and correlating metadata; the fifth step specifically comprises the following steps:
adding electrical object description information to the electrical objects in the memory, wherein the content of the electrical object description information comprises equipment objects related to graphic objects and remote measuring objects related to dynamic data objects;
step six: and generating a required SVG format file or G format file from the graphic object in the memory.
2. The method for bidirectionally converting graphic description format SVG and G language of power system according to claim 1, wherein in said step one, the graphic file includes: SVG format files and G format files, both of which bear XML standard and are read by DOM frames.
3. The bidirectional conversion method for graphic description format SVG and G language of power system as claimed in claim 1, wherein in said sixth step, the unified graphic object description in the memory is output as a SVG format file or a G format file by using tag mapping technique.
CN201811480493.8A 2018-12-05 2018-12-05 Bidirectional conversion method for graphic description format SVG and G language of power system Active CN109710897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811480493.8A CN109710897B (en) 2018-12-05 2018-12-05 Bidirectional conversion method for graphic description format SVG and G language of power system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811480493.8A CN109710897B (en) 2018-12-05 2018-12-05 Bidirectional conversion method for graphic description format SVG and G language of power system

Publications (2)

Publication Number Publication Date
CN109710897A CN109710897A (en) 2019-05-03
CN109710897B true CN109710897B (en) 2023-01-31

Family

ID=66254572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811480493.8A Active CN109710897B (en) 2018-12-05 2018-12-05 Bidirectional conversion method for graphic description format SVG and G language of power system

Country Status (1)

Country Link
CN (1) CN109710897B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532047B (en) * 2019-07-02 2022-11-04 国网浙江省电力有限公司 Power grid graph standardization system for regulating and controlling cloud platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458711A (en) * 2008-12-30 2009-06-17 国家电网公司 Image describing and transforming method and system
CN102867021A (en) * 2012-08-08 2013-01-09 中国电力科学研究院 Conversion method for vector graphics of transformer substation
CN103631578A (en) * 2013-10-12 2014-03-12 国家电网公司 Data display method in power distribution network automated system
CN104572718A (en) * 2013-10-21 2015-04-29 中国石油天然气股份有限公司 Oil gas pipeline system graphic file exchange method
CN104933095A (en) * 2015-05-22 2015-09-23 中国电子科技集团公司第十研究所 Heterogeneous information universality correlation analysis system and analysis method thereof
CN105868161A (en) * 2016-03-25 2016-08-17 华东交通大学 A calculation method for a dispatching supervision breaker vector graph primitive coordinate conversion system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302445B (en) * 2015-11-12 2019-07-23 小米科技有限责任公司 Graphic user interface method for drafting and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458711A (en) * 2008-12-30 2009-06-17 国家电网公司 Image describing and transforming method and system
CN102867021A (en) * 2012-08-08 2013-01-09 中国电力科学研究院 Conversion method for vector graphics of transformer substation
CN103631578A (en) * 2013-10-12 2014-03-12 国家电网公司 Data display method in power distribution network automated system
CN104572718A (en) * 2013-10-21 2015-04-29 中国石油天然气股份有限公司 Oil gas pipeline system graphic file exchange method
CN104933095A (en) * 2015-05-22 2015-09-23 中国电子科技集团公司第十研究所 Heterogeneous information universality correlation analysis system and analysis method thereof
CN105868161A (en) * 2016-03-25 2016-08-17 华东交通大学 A calculation method for a dispatching supervision breaker vector graph primitive coordinate conversion system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于SVG和CIM/G的统一图形包实现;闫朝阳 等;《电力设备管理》;20210825;197-198 *
基于可扩展架构的SVG图形系统的设计与实现;张学勇等;《江苏电机工程》;20161128(第06期);85-87+106 *
电网调度中心图形信息跨平台共享与应用方法研究;刘伯杰;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20180115;C042-942 *

Also Published As

Publication number Publication date
CN109710897A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN112769237B (en) Digital twin system of transformer substation
CN104104149A (en) Electric apparatus state display and real-time alarm method based on SVG (Scalable Vector Graphics) technology
CN103631578B (en) Method for exhibiting data in a kind of distribution automation system
CN202094938U (en) Web-based wireless temperature and humidity monitoring network
CN105631080A (en) Automatic generation device and method of vector power grid wiring diagram
CN104951857A (en) Power-grid-GIS-based meteorological data invoking and pretreatment method and system
CN110532047B (en) Power grid graph standardization system for regulating and controlling cloud platform
CN103412744A (en) Method for showing summarized information of power station primitives
CN102998562A (en) Power quality monitoring system based on International Electrotechnical Commission (IEC) 61850 communication protocol
CN105184836A (en) Multifunctional electrical wiring diagram display method based on QT graphics frame
CN109710897B (en) Bidirectional conversion method for graphic description format SVG and G language of power system
CN106776800B (en) Page generation method, device and system for AngularJS framework
CN111625735A (en) Method for displaying active operation and inspection in moving direction visualization mode by using secondary equipment of intelligent substation
CN113961631A (en) Method for dynamically displaying topological graph of power system based on Javascript language
CN108897913A (en) A method of plant stand figure is automatically generated by SCD model file
CN103399895A (en) System and method for processing monitoring display on basis of SVG (scalable vector graphics)
CN116366701A (en) Digital building management control system and method
CN105956133B (en) Method and device for displaying file on intelligent terminal
CN107645564B (en) CAN message analysis method and system based on data cache
CN111553129A (en) SVG and echarts graph fusion method based on canvas
CN102411498A (en) Method for realizing data model and graphical designer
CN103324693A (en) Modeling method based on international electro technical commission (IEC) 61850 protocol and extensive makeup language (XML) database
CN102243663A (en) Dynamic labeling method based on electronic drawing
CN109413083A (en) A kind of intelligent station communication network shutdown data transparent transmission method and system
CN113239670A (en) Method and device for uploading service template, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant