WO2010081316A1 - 一种图形描述和变换方法及系统 - Google Patents

一种图形描述和变换方法及系统 Download PDF

Info

Publication number
WO2010081316A1
WO2010081316A1 PCT/CN2009/072972 CN2009072972W WO2010081316A1 WO 2010081316 A1 WO2010081316 A1 WO 2010081316A1 CN 2009072972 W CN2009072972 W CN 2009072972W WO 2010081316 A1 WO2010081316 A1 WO 2010081316A1
Authority
WO
WIPO (PCT)
Prior art keywords
graphic
device object
description
power
queried
Prior art date
Application number
PCT/CN2009/072972
Other languages
English (en)
French (fr)
Inventor
辛耀中
李伟
沈国辉
陶洪铸
黄昆
边晓宇
李亚萍
姚建国
赵林
李毅松
尚学伟
Original Assignee
国家电网公司
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 国家电网公司 filed Critical 国家电网公司
Priority to EP09838103.1A priority Critical patent/EP2352105A4/en
Priority to EA201071303A priority patent/EA021257B1/ru
Publication of WO2010081316A1 publication Critical patent/WO2010081316A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Definitions

  • the present invention relates to the field of data interaction, and in particular to a graphic description and transformation method and system. Background technique
  • State Grid Corporation has developed the "SVG-based public graphics exchange format" based on IEC61970-453 "CIM Based Graphics Exchange”, and organized several domestic interoperability experiments to verify and perfect the exchange format.
  • This exchange format provides a solid foundation for data sharing and information interaction between power dispatching systems. To some extent, data sharing and application interaction between power dispatching systems are realized.
  • SVG Scalable Vector Graphics Description Specification
  • W3C Scalable Vector Graphics Description Specification
  • the W3C organization's interpretation of SVG is "a language that uses XML (Extensible Markup Language) to describe two-dimensional graphics.”
  • the power system graphics format based on the SVG format is mainly divided into two parts: the primitive and the style definition part and the power system graphic object part.
  • the graphical objects of the power system mainly refer to electrical equipment in various power systems, such as circuit breakers. Busbars, outlets, knives, capacitors, reactance, generators, transformers, loads, etc.
  • As a primitive object of a power system it not only has the characteristics that an "Element” of SVG graphics should have, but also an attribute of a power system resource in "metadata". By using the properties of this part, the graphics can be associated with the domain model of the existing power system.
  • FIG. 1 there is shown a flow diagram of a prior art format for converting a standard SVG file into a private graphics format required by the target system.
  • the standard original system SVG file 101 is converted to a private graphics format required by the target system - the third party system 102 or the source system 103, and the graphics are displayed in the target system - the third party system 102 or the source system 103.
  • the original system SVG file 101 is subjected to extraction of standard SVG element information 104 and electrical model information 105, and then transmitted to the third party system 102 and the source system 103 through the SVG import tool, respectively.
  • SVG is a general vector graphics specification developed to meet the rapid development needs of Internet Web applications.
  • the common graphics exchange format of power systems based on SVG description cannot fully describe the attributes of power equipment, nor can it express the characteristics of power equipment efficiently.
  • the shortcomings of SVG are mainly reflected in the following aspects:
  • SVG itself is a general-purpose vector graphics format developed for Internet Web applications, and cannot directly express the concept of power system graphics and model integration. Based on the SVG description of the power system common graphics format, for a power device object must be described by the "Element” attribute of the SVG graphic, while the “metadata” attribute is used to describe the attributes of the power device, and the attributes of the part are used to implement the graphic and the existing The domain model of the power system is correlated.
  • the primitive object is described by ⁇ symbol>, and the primitive object must be included in the same SVG file, causing the same power device primitive to be repeatedly included in different power device graphics, based on SVG.
  • Interactive format power system graphics files are too large to allow graphical access and interaction between different systems online.
  • a technical problem to be solved by the present invention is to provide a graphic description and transformation method and system for implementing a common graphic exchange format of a power system based on an SVG description, which can fully describe the attributes of the power device and improve the expression of the characteristics of the power device. effectiveness. In turn, the exchange of power equipment information and power graphics between different systems is realized.
  • the present invention specifically provides a graphic description and transformation method, the method comprising the following steps: receiving, by a query system, a request for a query system to acquire a graphic;
  • the queried system performs metadata description on the device object corresponding to the graphic, and saves it as public information;
  • the queried system sends the metadata description of the device object to the query system
  • Both the query system and the system to be queried prestore the correspondence between the device object graphic and the metadata description of the device object and the device object graphic.
  • the device object corresponding to the graphic is described by metadata as public information; specifically:
  • Metadata description is performed on the device object corresponding to the graphic, the device object type is expressed by using an XML tag, and the metadata description is saved as public information;
  • the metadata description of the device object and the description of the graphic itself are sent to the system being queried, and the queried system prestores a metadata description of the device object graphic and the device object and the device object graphic.
  • the metadata description of the device object includes a description of voltage level definitions, primitives, intervals, fonts, colors, menus.
  • the device object corresponding to the graphic is described by using the G language as a common information
  • the G language uses basic graphic elements that are compatible with SVG definitions.
  • the query system is specifically a power dispatching system or a power company or a power plant.
  • the queried system is specifically the same or different power scheduling as the query system System or power company or power supplier.
  • the present invention provides a graphical description and transformation system, the system comprising:
  • a first processing unit performing metadata description on the device object in the graphic, and saving the public information
  • the queried system receives a metadata description of the device object obtained by the processing unit and sent by the processing unit;
  • Both the query system and the system to be queried prestore the correspondence between the device object graphic and the metadata description of the device object and the device object graphic.
  • the system further comprises a second processing unit coupled to the query system and the queried system: the device object type is expressed using an XML tag, and the graphic itself is described.
  • the first processing unit uses the G language to perform metadata description on the device object corresponding to the graphic as common information; and the G language adopts a basic graphic element that is compatible with the SVG definition.
  • the metadata description of the device object includes a description of voltage level definitions, primitives, intervals, fonts, colors, menus.
  • the graphic description and the exchange method in the embodiment of the present invention are stored according to the common information, and are distributed by the whole system. Due to the access system and the accessed system, a correspondence between the device object graphic and the metadata description of the device object, and the device object graphic are prestored. Therefore, in the access system, only the primitive object referenced by the device needs to be sent to the accessed system, and the queried system can find the corresponding device object primitive according to the metadata.
  • the graphic description and exchange method and system of the present invention are based on the description and expression of basic graphic elements by using the compatible SVG standard, expanding the description of the power device according to the XML standard, truly expressing the power device common graphic exchange format, fully describing the power device attributes, and improving the power.
  • the efficiency of expression of device characteristics can solve the problem of information islands caused by the inconsistent graphic data format between power dispatching, and lays a solid data foundation for the interconnection between the same-level scheduling system and the upper-level scheduling system.
  • FIG. 1 is a flow diagram of a prior art proprietary graphics format required to convert a standard SVG file to a target system
  • FIG. 2 is a flow chart of a graphic description and transformation method according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of a graphic description and transformation system according to an embodiment of the present invention.
  • the invention provides a graphic description and exchange method and system, which are used for implementing a complete description of power device attributes of a common graphic exchange format of a power system based on the xml standard, improving the expression efficiency of power device characteristics, and realizing power devices between different systems. Exchange of information and power graphics.
  • the technical solution of the invention realizes the exchange of power equipment information and power graphics between different systems, different manufacturers and different power dispatching systems, completely solves the problem of information islands caused by the incompatibility of data between heterogeneous systems, and truly realizes the same level system and Data sharing and interconnection between subordinate systems.
  • the G language consists of two major categories, one is system public information, including voltage level definitions, primitives, intervals, menus, etc., as a power device metadata description to achieve system-wide sharing.
  • the other type is a description of a specific power plant station graphic, which realizes shared display of primitives and intervals by referring to external G language files. In this way, the amount of data exchanged by the graphic file is greatly reduced.
  • the G language is a mark-based plain text language that conforms to the xml standard, and can be converted to and from SVG.
  • the exchange of complex objects supports hotspot connections, supports naming and menus, supports curves and bar graphs, supports sounds, images, animations, and supports events.
  • the G language completely solves the shortcomings of the common graphics exchange format of the power system based on the SVG description.
  • the G language extends the description of power devices according to the XML standard by absorbing and inheriting the experience based on SVG to describe the common graphics exchange format of the power system, using the SVG-compliant standard to describe and express basic graphic elements.
  • the flexible and rich graphic representation elements compatible with the SVG standard are used to form the graphical basis of the electrical system electrical device description, that is, the international standard conforming to the definition of basic graphic elements, in line with the international trend of software development, and also Combine China's national conditions and meet the needs of China's power industry power dispatching system.
  • the language hierarchy of the G language specification is as follows: Power device description proprietary language -G language
  • the G language uses basic graphic elements that are compatible with SVG definitions.
  • the attribute names of these graphic elements are always in lowercase letters.
  • the color of the power grid and power equipment is uniformly defined according to the voltage level.
  • the G language defines the color of the voltage level in the header file.
  • the reference directly refers to the voltage level name. For example, "kv500” means “red” and its value is RGB (255,0, 0).
  • the colors defined here are mainly used for the color and closure of the stroke line of the power system graphics.
  • the color of the text in the display can be consistent with the voltage level of the related device. It can also be used according to the purpose. For example, all static texts use “orange” and all dynamic texts use “green”.
  • the main method used is the primitive.
  • the parameters of the required graphic properties are X, y, w, h, tr, href.
  • x, y, w, h represent the size of the rectangular area of the graph.
  • Tr includes rotate, scale, translate, skew, which characterizes the flip, scale, offset, and tilt of the original graph in this rectangular interval.
  • G language and domain data associations are associated with metadata, and related elements include id and name.
  • the id information of the device in the G language indicates a reference to the device resource information, and the id corresponds to The rdf:ID of the device in the CIM/XML model, the default value is null;
  • the link information of the device in the G language indicates a reference to the device resource information, and the id corresponds to the rdf: ID of the connection point ConnectivityNode in the CIM/XML model, and the default value is null;
  • the id information measured in the G language represents a reference to the measurement resource information, and the id corresponds to
  • the rdf ID of the Measurement in the CIM/XML model, the default value is null.
  • FIG. 2 the figure is a flow chart of a first embodiment of a graphic description and transformation method according to the present invention.
  • the graphic description and transformation method of the first embodiment of the present invention includes the following steps:
  • the queryed system receives a request for the query system to acquire a graphic.
  • the queried system performs metadata description on the device object corresponding to the graphic as public information.
  • Metadata description is performed on the device object corresponding to the graphic, the device object type is expressed by using an XML tag, and the metadata description is used as common information; the graphic itself is described.
  • the metadata description of the device object includes a description of voltage level definitions, primitives, intervals, fonts, colors, menus, and the like.
  • the G language may be used to describe the metadata of the device object corresponding to the graphic as public information.
  • the G language uses basic graphic elements that are compatible with SVG definitions.
  • the queried system sends the metadata description of the device object to the query system.
  • the metadata description of the device object and the description of the graphic itself are sent to the queried system, and the queried system prestores a correspondence between the device object graphic and the metadata description of the device object and the device object graphic.
  • Both the query system and the system to be queried prestore the correspondence between the device object graphic and the metadata description of the device object and the device object graphic.
  • the graphic description and the exchange method according to the embodiment of the present invention as having the metadata description of the device object corresponding to the graphic, is used as public information; and the metadata description of the device object is sent to the system to be queried.
  • Both the device object graphic and the metadata of the device object are pre-stored due to the query system and the queried system Describe the correspondence, and the device object graphic. Therefore, in the query system, only the device metadata needs to be sent to the system being queried, and the queried system can find the corresponding device object graphic according to the metadata.
  • the graphic description and transformation method of the invention can solve the problem of information islands caused by the inconsistent graphic data format between power dispatching, and lay a solid data foundation for the interconnection and intercommunication between the same-level scheduling system and the upper-level scheduling system.
  • the query system is specifically a power dispatching system or a power company or a power manufacturer.
  • the queried system is specifically a power dispatching system or a power company or a power manufacturer that is the same as or different from the query system.
  • the graphic description and exchange method of the invention realizes power equipment information and power graphics exchange between different systems, different manufacturers and different power dispatching systems, completely solves the problem of information islands caused by data exchange between heterogeneous systems, and truly realizes the same level system. Data sharing and interconnection with upper and lower systems.
  • FIG. 3 the figure is a structural diagram of a graphic description and transformation system according to an embodiment of the present invention.
  • the query system 1 receives a request for obtaining a graphic by the querying system.
  • the first processing unit 2 performs metadata description on the device object in the graphic as the common information.
  • the queried system 3 receives the metadata description of the device object obtained by the processing unit 2 and sent by the querying system 1.
  • the query system 1 and the queried system 3 prestore the correspondence between the device object graphic and the metadata description of the device object and the device object graphic.
  • the system may also include a second processing unit (not shown) coupled to the query system 1 and the queried system 3.
  • a second processing unit (not shown) coupled to the query system 1 and the queried system 3.
  • the second processing unit expresses the device object type by using an XML tag, and describes the graphic itself.
  • the first processing unit 2 uses the G language to perform metadata description on the device object corresponding to the graphic as common information; and the G language adopts a basic graphic element that is compatible with the SVG definition.
  • the metadata description of the device object includes a description of voltage level definitions, primitives, intervals, fonts, colors, menus.
  • the graphic description and the conversion method of the embodiment of the present invention may be performed by the first processing unit 2 for metadata description of the device object corresponding to the graphic as common information; and the metadata description of the device object is sent to the query system 1. Since both the query system 1 and the queried system 3 prestore the metadata description corresponding to the device object graphic and the device object and the device object graphic. Therefore, in the query system 1, only the device metadata needs to be sent to the queried system 3, and the queried system 3 can find the corresponding device object graphic according to the metadata.
  • the graphic description and transformation method of the invention can solve the problem of information islands caused by the inconsistent graphic data format between power dispatching, and lay a solid data foundation for the interconnection and intercommunication between the same-level scheduling system and the upper-level scheduling system.
  • the query system 1 is specifically a power dispatch system or a power company or a power manufacturer.
  • the queried system 2 is specifically a power dispatching system or a power company or a power manufacturer that is the same as or different from the query system.
  • the graphic description and transformation system of the invention realizes the exchange of power equipment information and power graphics between different systems, different manufacturers and different power dispatching systems, completely solves the problem of information islands caused by the incompatibility of data between heterogeneous systems, and truly realizes the same-level system. Data sharing and interconnection with upper and lower systems.

Description

一种图形描述和变换方法及系统 本申请要求于 2008 年 12 月 30 日提交中国专利局、 申请号为 200810241130.9、 发明名称为 "一种图形描述和变换方法及系统" 的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及数据交互领域, 具体涉及一种图形描述和变换方法及系统。 背景技术
现有电力调度系统存在着多套独立应用系统,每一套独立应用系统由于生 产厂商各不相同, 图形的存储通常采用不同的存储格式, 一般都是采用生产厂 商自己的方式来定义。这样就导致电力调度系统下的各个电力公司内部不同应 用, 以及不同电力公司之间调度系统无法直接交互, 导致实现各系统间进行数 据和信息共享比较困难。
鉴于此, 国网公司在 IEC61970-453 《CIM Based Graphics Exchange》 的 基础之上制定了《基于 SVG的公共图形交换格式》, 并组织了国内的多次互操 作实验验证和完善了该交换格式。该交换格式为电力调度系统间的数据共享和 信息交互奠定坚实的基础。从一定程度上实现各电力调度系统间的数据共享和 应用间交互。
SVG (可缩放矢量图形描述规范 )是由 W3C组织为适应 Internet Web应 用的飞速发展需要,而制定的一套基于 XML语言的可缩放矢量图形描述规范。 W3C组织对 SVG的解释是 "一种使用 XML (可扩展标记语言 )来描述二维 图形的语言"。基于 SVG格式的电力系统图形格式主要分为两大部分: 图元及 样式定义部分和电力系统图形对象部分。
图元及样式的定义部分由双引号—— ""包含,其中统一定义图形可能要用 到统一的样式及图元。在图形中如果使用到该部分样式,可以将该图形的" class (种类) "选项设置为所需的 "style (类型) "。 如果使用到该部分的图元定义 可以将该图形的" use (用途) "选项设置为所需的 "symbol (符号) "。 统一定义 图元及样式的信息的目的: 主要是为了能够统一修改某一个样式和图元。 这对 于设置某个具体电压等级的颜色, 或者对图形的动态着色时, 将更方便。
电力系统的图形对象主要是指各个电力系统中的电气设备, 例如断路器, 母线, 出线, 闸刀, 电容, 电抗, 发电机, 变压器, 负荷等。 作为一个电力系 统的图元对象, 不仅拥有作为 SVG图形的 "Element (元素 ) "应该具备的特性, 同时还在" metadata (元数据) "中附带了作为一个电力系统资源的属性。 通过 利用该部分的属性可以将图形与已有的电力系统的领域模型进行必要的一些 关联。
参见图 1 , 该图为现有技术将标准 SVG文件转换为目标系统所需私有图 形格式的流程图。
将标准原系统 SVG文件 101转换为目标系统——第三方系统 102或源系 统 103所需的私有图形格式, 并在目标系统——第三方系统 102或源系统 103 中实现图形的显示。
原系统 SVG文件 101要经过提取标准 SVG元素信息 104和电气模型信息 105, 再分别通过 S VG导入工具发送到第三方系统 102和源系统 103中。
SVG是为了适应 Internet Web应用的飞速发展需要, 而制定的通用矢量图 形规范, 而基于 SVG描述的电力系统公共图形交换格式, 无法完整描述电力 设备属性, 也不能够高效地表达电力设备特性。 SVG 的缺点主要表现在以下 几个方面:
SVG 本身是面向 Internet Web应用而发展的通用矢量图形格式,无法直接 表达电力系统图形和模型一体化的概念。 基于 SVG描述的电力系统公共图形 格式, 对于一个电力设备对象必须通过 SVG图形的 "Element"属性描述, 同时 通过" metadata"属性描述电力设备的属性, 利用该部分的属性来实现图形与已 有的电力系统的领域模型进行关联。
基于 SVG描述的电力系统公共图形交换格式, 通过 <symbol>描述图元对 象, 该图元对象必须包含在同一个 SVG文件中, 导致同一电力设备图元在不 同电力设备图形中重复包含, 基于 SVG交互格式的电力系统图形文件太大, 无法进行在线的不同系统间的图形调阅和交互。
目前基于 SVG描述的电力系统公共图形交换格式, 无法表达电力系统间 隔设备概念。
基于上述问题, 如何提供一种图形描述和变换方法及相对应系统, 克服现 有基于 SVG描述的电力系统公共图形交换格式无法完整描述电力设备属性, 提高电力设备特性的表达效率, 是本领域技术人员需要解决的技术问题。 发明内容
针对上述缺陷,本发明解决的技术问题在于提供一种图形描述和变换方法 及系统, 用于实现基于 SVG描述的电力系统公共图形交换格式的, 能够完整 描述电力设备属性, 提高电力设备特性的表达效率。 进而实现不同系统之间的 电力设备信息和电力图形的交换。
本发明具体提供一种图形描述和变换方法, 所述方法包括以下步骤: 被查询系统接收查询系统获取图形的请求;
被查询系统对所述图形对应的设备对象进行元数据描述,作为公用信息保 存;
被查询系统将设备对象的元数据描述发送至查询系统;
所述查询系统和被查询系统均预存有设备对象图形与所述设备对象的元 数据描述对应关系和所述设备对象图形。
优选地, 所述对所述图形对应的设备对象进行元数据描述, 作为公用信息 保存; 具体为:
对所述图形对应的设备对象进行元数据描述, 采用 XML标签表达所述设 备对象类型, 元数据描述作为公用信息保存;
对所述图形自身进行描述。
优选地, 将设备对象的元数据描述和图形自身进行描述发送至被查询系 统,所述被查询系统预存有设备对象图形与所述设备对象的元数据描述对应关 系和所述设备对象图形。
优选地, 所述设备对象的元数据描述包括电压等级定义、 图元、 间隔、 字 体、 颜色、 菜单的描述。
优选地, 使用 G语言对所述图形对应的设备对象进行元数据描述, 作为 公用信息;
所述 G语言采用兼容 SVG定义的基本图形元素。
优选地, 所述查询系统具体为电力调度系统或者电力公司或者是电力厂 家。
优选地,所述被查询系统具体为与所述查询系统相同或者不同的电力调度 系统或者电力公司或者是电力厂家。
本发明提供一种图形描述和变换系统, 所述系统包括:
查询系统, 接收被查询系统获取图形的请求;
第一处理单元, 对所述图形中的设备对象进行元数据描述, 作为公用信息 保存;
被查询系统,接收所述查询系统发送的通过所述处理单元得到的设备对象 的元数据描述;
所述查询系统和被查询系统中均预存有设备对象图形与所述设备对象的 元数据描述对应关系和所述设备对象图形。
优选地,所述系统还包括与所述查询系统和被查询系统相连的第二处理单 元: 采用 XML标签表达所述设备对象类型, 并对所述图形自身进行描述。
优选地, 所述第一处理单元使用 G语言对所述图形对应的设备对象进行 元数据描述,作为公用信息;所述 G语言采用兼容 SVG定义的基本图形元素。
优选地, 所述设备对象的元数据描述包括电压等级定义、 图元、 间隔、 字 体、 颜色、 菜单的描述。
本发明实施例所述图形描述和交换方法,由于对设备对象进行统一元数据 描述, 按照公用信息进行存储, 并进行全系统分发。 由于调阅系统和被调阅系 统, 均预存有设备对象图形与所述设备对象的元数据描述对应关系, 和所述设 备对象图形。因此,在调阅系统只需要向被调阅系统发送设备所引用图元对象, 被查询系统可以根据元数据查找到对应的设备对象图元。本发明图形描述和交 换方法及系统是基于采用兼容 SVG 标准来描述和表达基本图形要素, 按照 XML标准扩展对电力设备的描述, 真正表达电力系统公共图形交换格式的完 整描述电力设备属性, 提高电力设备特性的表达效率。 本发明图形描述和交换 方法可以解决电力调度间由于图形数据格式不统一带来的信息孤岛问题,为同 级调度系统和上下级调度系统间互联互通奠定坚实的数据基础。
附图说明
图 1是现有技术将标准 SVG文件转换为目标系统所需私有图形格式的流 程图;
图 2是本发明实施例所述图形描述和变换方法流程图; 图 3是本发明实施例所述图形描述和变换系统结构图。
具体实施方式
本发明提供一种图形描述和交换方法及系统,用于实现基于 xml标准描述 的电力系统公共图形交换格式的完整描述电力设备属性,提高电力设备特性的 表达效率, 实现不同系统之间的电力设备信息和电力图形的交换。
本发明的技术方案实现不同系统、不同厂家和不同电力调度系统间的电力 设备信息和电力图形交换,彻底解决由于异构系统间数据无法交换带来的信息 孤岛问题, 真正实现同级系统和上、 下级系统间的数据共享和互联互通。
为了解决基于 SVG描述的电力系统公共图形交换格式存在以上缺陷, 满 足电力调度系统间图形数据一次维护、 全网共享, 真正实现电力调度系统的互 联互通, 提出一套适合电力系统的新型高效的图形描述语言—— G语言。
G语言包括两大类, 一类是系统公有信息, 包括电压等级定义、 图元、 间 隔、 菜单等, 作为电力设备元数据描述实现全系统共享。 另一类是某具体电力 厂站图形的描述, 通过引用外部 G语言文件实现图元、 间隔的共享显示。 通 过该种方式大大降低图形文件交换的数据量。 同时 G语言是一种基于标记的 遵循 xml标准的纯文本语言, 和 SVG之间可以实现相互转换。
G语言规范图形要素具备以下特征:
( 1 )详细说明了连接图形对象和领域数据的基本方法。 领域数据和图形 对象将各自独立交换。
( 2 )采用 xml的标签直接表达电力设备类型。
( 3 ) 支持与领域数据没有关联关系的图形对象的交换, 例如纯粹的静态 背景对象。
( 4 )复杂对象的交换支持热点连接, 支持命名和菜单, 支持曲线和棒图, 支持声音、 图像、 动画, 支持事件。
( 5 ) 支持在相同或不同的图形中同一领域对象的多种表现形式。
( 6 ) 支持在没有领域拓朴模型的情况下使用图形拓朴来描述拓朴关系。
( 7 )支持图形对象按层或其他方式分布, 实现基于缩放级别和 /或用户关 注的角度显示或隐藏一些信息。
( 8 ) 图形文件包括两类: 一类是描述图形自身的文件, 另一类包含对于 系统中图元、 间隔、 字体和颜色等公用部分的描述。
G语言通过实现以上特征, 彻底解决基于 SVG描述的电力系统公共图形 交换格式存在的缺陷。
G语言通过吸收和继承基于 SVG描述电力统公共图形交换格式的经验基 础上, 采用兼容 SVG标准来描述和表达基本图形要素, 按照 XML标准扩展 对电力设备的描述。 作为面向电力系统扩展的 G语言, 采用兼容 SVG标准的 灵活、 丰富的图形表达元素来形成电力系统电气设备描述图形基础, 即符合基 本图形要素定义的国际标准,符合软件开发的国际潮流,同时也结合中国国情, 满足中国电力工业电力调度系统的需求。
G语言规范的语言层次如下: 电力设备描述专有语言 -G语言
兼容 SVG标准 遵循电力工业标准
的图形描述 的电力设备描述
XML
G语言规范的具体定义: ( 1 )、 符号定义如下: 序 号 定 义
1 < > 元素起始符
2 </ > 元素结束符
3 <! 系统声明起始符
4 !> 系统声明结束符
7 〈!-→ 注释引导符 9 赋值连接符
说明: 以上符号均为英文半角符号。
( 2 )、 基本绘图元素定义
G语言采用兼容 SVG定义的基本图形元素, 这些图形元素的属性名一律 采用小写字母。
Figure imgf000009_0001
( 3 )、 电力系统设备特征定义
A、 电压等级及颜色
电网和电力设备的颜色按照电压等级统一定义, G语言在头文件中定义电 压等级的颜色, 引用时直接引用电压等级名称, 如" kv500"表示"红色", 其值为 RGB ( 255,0,0 )。
这里定义的颜色主要用于电力系统图形的描边(stroke ) 线的颜色和闭合 图形填充(fill) 的颜色。 画面 (Display) 中文字 (text) 的颜色可以与相关设 备的电压等级颜色保持一致, 也可以按照用途统一颜色, 如: 所有静态文字采 用"橙色", 所有动态文字采用"绿色"。
<VoltageColors>
<kvl000 "blue" "中蓝" RGB (0,0,255 ) />
<kv800 "blue" "中蓝" RGB (0,0,255 ) />
<kv750 "orange" "橙色 "RGB (250,128 ,10) />
<kv660 "orange" "橙色 "RGB (250,128 ,10) />
<kv500 "red" "红色" RGB (255,0,0) />
<kv330 "brightblue" "亮蓝" RGB (30,144 ,255 ) />
<kv220 "purple" "紫色" RGB ( 128,0,128) />
<kvll0 "vermeil" "朱红" RGB ( 240,65 ,85 ) />
<kv66 "gold" "橙黄" RGB ( 255,204 ,0 ) />
<kv35 "yellow" "鲜黄" RGB ( 255,255 ,0 ) />
<kv20 "brown" "梨黄" RGB (226,172 ,6) />
<kvl5 "darkgreen" "绿色" RGB (0,128 ,0) /> //kvl5.75
<kvl3 "lightgreen" "浅绿" RGB (0,210,0) /> //kvl3.8
<kvl0 "crimson" "绛红 "RGB ( 185,72 ,66) /> //
<kv6 "darkbule" "深蓝" RGB (0,0,139) /> //
<kvOW "grey" "灰色" RGB ( 128,128 ,128) /> //浅背景时
<kvOB "white" "白色" RGB (255,255 ,255 ) /> //深背景时
</VoltageColors>
B、 电力设备图形元素。
对于元件来说, 主要使用的方式是图元的方式, 需要的图形属性的参数为 X, y, w, h, tr, href。 其中 x, y, w, h表征了该图形的矩形区域大小。 tr 包括 rotate、 scale、 translate、 skew , 表征了对原有图形在这个矩形区间中的 翻转、 缩放、 偏移和倾斜,
G语言与领域数据关联采用元数据关联, 相关的元素包括 id和 name。 G 语言上设备的 id 信息表示对设备资源信息的引用, 该 id 对应于 CIM/XML模型中设备的 rdf:ID , 缺省值为 null;
G 语言上设备的 link信息表示对设备资源信息的引用, 该 id 对应于 CIM/XML模型中连接点 ConnectivityNode (连接节点) 的 rdf: ID, 缺省值为 null;
G 语言上测量的 id 信息表示对量测资源信息的引用, 该 id 对应于
CIM/XML模型中量测 Measurement的 rdf: ID , 缺省值为 null。
具体电网设备图形要素定义参考 <<电力系统图形描述语言 G语言 规范:》。
基于 G语言电力图形数据编辑和调阅流程:
参见图 2, 该图为本发明所述图形描述和变换方法第一实施例流程图。 本发明第一实施例所述图形描述和变换方法, 包括以下步骤:
S 110、 被查询系统接收查询系统获取图形的请求。
S120、被查询系统对所述图形对应的设备对象进行元数据描述,作为公用 信息。
对所述图形对应的设备对象进行元数据描述, 采用 XML标签表达所述设 备对象类型, 元数据描述作为公用信息; 对所述图形自身进行描述。
所述设备对象的元数据描述包括电压等级定义、 图元、 间隔、字体、颜色、 菜单等的描述。
具体可以使用 G语言对所述图形对应的设备对象进行元数据描述, 作为 公用信息。 所述 G语言采用了兼容 SVG定义的基本图形元素。
S130、 被查询系统将设备对象的元数据描述发送至查询系统。
将设备对象的元数据描述和图形自身进行描述发送至被查询系统,所述被 查询系统预存有设备对象图形与所述设备对象的元数据描述对应关系和所述 设备对象图形。
所述查询系统和被查询系统均预存有设备对象图形与所述设备对象的元 数据描述对应关系和所述设备对象图形。
本发明实施例所述图形描述和交换方法,由于具有对图形对应的设备对象 进行元数据描述,作为公用信息;将设备对象的元数据描述发送至被查询系统。 由于查询系统和被查询系统 ,均预存有设备对象图形与所述设备对象的元数据 描述对应关系, 和所述设备对象图形。 因此, 在查询系统只需要向被查询系统 发送设备元数据, 被查询系统可以根据元数据查找到对应的设备对象图形。 本 发明图形描述和变换方法可以解决电力调度间由于图形数据格式不统一带来 的信息孤岛问题,为同级调度系统和上下级调度系统间互联互通奠定坚实的数 据基础。
所述查询系统具体为电力调度系统或者电力公司或者是电力厂家。所述被 查询系统具体为与所述查询系统相同或者不同的电力调度系统或者电力公司 或者是电力厂家。
本发明图形描述和交换方法实现不同系统、不同厂家和不同电力调度系统 间的电力设备信息和电力图形交换,彻底解决由于异构系统间数据无法交换带 来的信息孤岛问题, 真正实现同级系统和上、 下级系统间的数据共享和互联互 通。
参见图 3 , 该图为本发明实施例所述图形描述和变换系统结构图。
本发明实施例所述图形描述和变换系统, 所述系统包括:
查询系统 1 , 接收被查询系统获取图形的请求。
第一处理单元 2, 对所述图形中的设备对象进行元数据描述, 作为公用信 息。
被查询系统 3 , 接收所述查询系统 1发送的通过所述处理单元 2得到的设 备对象的元数据描述。
查询系统 1和被查询系统 3中预存有设备对象图形与所述设备对象的元数 据描述对应关系和所述设备对象图形。
所述系统还可以包括与所述查询系统 1和被查询系统 3相连的第二处理单 元(图中未示出)。
第二处理单元, 采用 XML标签表达所述设备对象类型, 并对所述图形自 身进行描述。
所述第一处理单元 2使用 G语言对所述图形对应的设备对象进行元数据 描述, 作为公用信息; 所述 G语言采用兼容 SVG定义的基本图形元素。
所述设备对象的元数据描述包括电压等级定义、 图元、 间隔、字体、颜色、 菜单的描述。 本发明实施例所述图形描述和变换方法,由于第一处理单元 2可以具有对 图形对应的设备对象进行元数据描述, 作为公用信息; 将设备对象的元数据描 述发送至查询系统 1。 由于查询系统 1和被查询系统 3均预存有设备对象图形 与所述设备对象的元数据描述对应关系和所述设备对象图形。 因此, 在查询系 统 1只需要向被查询系统 3发送设备元数据,被查询系统 3可以根据元数据查 找到对应的设备对象图形。本发明图形描述和变换方法可以解决电力调度间由 于图形数据格式不统一带来的信息孤岛问题,为同级调度系统和上下级调度系 统间互联互通奠定坚实的数据基础。
所述查询系统 1具体为电力调度系统或者电力公司或者是电力厂家。所述 被查询系统 2 具体为与所述查询系统相同或者不同的电力调度系统或者电力 公司或者是电力厂家。
本发明图形描述和变换系统实现不同系统、不同厂家和不同电力调度系统 间的电力设备信息和电力图形交换,彻底解决由于异构系统间数据无法交换带 来的信息孤岛问题, 真正实现同级系统和上、 下级系统间的数据共享和互联互 通。
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普通 技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权 利 要 求
1、 一种图形描述和变换方法, 其特征在于, 所述方法包括以下步骤: 被查询系统接收查询系统获取图形的请求;
被查询系统对所述图形对应的设备对象进行元数据描述,作为公用信息保 存;
被查询系统将设备对象的元数据描述发送至查询系统;
所述查询系统和被查询系统均预存有设备对象图形与所述设备对象的元 数据描述对应关系和所述设备对象图形。
2、 根据权利要求 1所述的方法, 其特征在于, 所述对所述图形对应的设 备对象进行元数据描述, 作为公用信息保存; 具体为:
对所述图形对应的设备对象进行元数据描述, 采用 XML标签表达所述设 备对象类型, 元数据描述作为公用信息保存;
对所述图形自身进行描述。
3、 根据权利要求 2所述的方法, 其特征在于,
将设备对象的元数据描述和图形自身进行描述发送至被查询系统,所述被 查询系统预存有设备对象图形与所述设备对象的元数据描述对应关系和所述 设备对象图形。
4、 根据权利要求 1所述的方法, 其特征在于, 所述设备对象的元数据描 述包括电压等级定义、 图元、 间隔、 字体、 颜色、 菜单的描述。
5、 根据权利要求 1所述的方法, 其特征在于, 使用 G语言对所述图形对 应的设备对象进行元数据描述, 作为公用信息;
所述 G语言采用兼容 SVG定义的基本图形元素。
6、 根据权利要求 1所述的方法, 其特征在于, 所述查询系统具体为电力 调度系统或者电力公司或者是电力厂家。
7、 根据权利要求 1所述的方法, 其特征在于, 所述被查询系统具体为与 所述查询系统相同或者不同的电力调度系统或者电力公司或者是电力厂家。
8、 一种图形描述和变换系统, 其特征在于, 所述系统包括:
查询系统, 接收被查询系统获取图形的请求;
第一处理单元, 对所述图形中的设备对象进行元数据描述, 作为公用信息 保存;
被查询系统,接收所述查询系统发送的通过所述处理单元得到的设备对象 的元数据描述;
所述查询系统和被查询系统中均预存有设备对象图形与所述设备对象的 元数据描述对应关系和所述设备对象图形。
9、 根据权利要求 8所述的系统, 其特征在于, 所述系统还包括与所述查 询系统和被查询系统相连的第二处理单元: 采用 XML标签表达所述设备对象 类型, 并对所述图形自身进行描述。
10、 根据权利要求 8所述的系统, 其特征在于, 所述第一处理单元使用 G 语言对所述图形对应的设备对象进行元数据描述, 作为公用信息; 所述 G语 言采用兼容 SVG定义的基本图形元素。
11、 根据权利要求 8所述的系统, 其特征在于, 所述设备对象的元数据描 述包括电压等级定义、 图元、 间隔、 字体、 颜色、 菜单的描述。
PCT/CN2009/072972 2008-12-30 2009-07-29 一种图形描述和变换方法及系统 WO2010081316A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP09838103.1A EP2352105A4 (en) 2008-12-30 2009-07-29 METHOD AND SYSTEM FOR GRAPHICAL DESCRIPTION AND TRANSFORMATION
EA201071303A EA021257B1 (ru) 2008-12-30 2009-07-29 Способ и система для описания и преобразования графики

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810241130.9 2008-12-30
CN2008102411309A CN101458711B (zh) 2008-12-30 2008-12-30 一种图形描述和变换方法及系统

Publications (1)

Publication Number Publication Date
WO2010081316A1 true WO2010081316A1 (zh) 2010-07-22

Family

ID=40769567

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/072972 WO2010081316A1 (zh) 2008-12-30 2009-07-29 一种图形描述和变换方法及系统

Country Status (4)

Country Link
EP (1) EP2352105A4 (zh)
CN (1) CN101458711B (zh)
EA (1) EA021257B1 (zh)
WO (1) WO2010081316A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458711B (zh) * 2008-12-30 2011-01-05 国家电网公司 一种图形描述和变换方法及系统
CN102509246B (zh) * 2011-11-01 2015-04-08 国电南瑞科技股份有限公司 电力系统源端图形裁剪方法
CN103136228A (zh) * 2011-11-25 2013-06-05 阿里巴巴集团控股有限公司 一种图片搜索方法以及图片搜索装置
CN102662945B (zh) * 2012-02-09 2017-10-24 天津市电力公司 采用坐标位置结合偏移导出变电站图形对象的方法
CN103730894B (zh) * 2013-12-26 2016-05-11 广东电网公司中山供电局 能量管理系统图形检查方法及装置
CN104376416B (zh) * 2014-11-17 2017-08-08 国家电网公司 电网生产管理系统与调度自动化系统图形交互方法
CN109360485A (zh) * 2018-10-10 2019-02-19 泰华智慧产业集团股份有限公司 智能路灯地图展示方法及系统
CN109710897B (zh) * 2018-12-05 2023-01-31 国网山东省电力公司青岛供电公司 电力系统图形描述格式svg与g语言双向转换方法
CN110365651B (zh) * 2019-06-17 2021-10-19 贵州黔驰信息股份有限公司 一种基于图像识别的数据分发的方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1723456A (zh) * 2002-12-19 2006-01-18 英国电讯有限公司 图像搜索
CN1758771A (zh) * 2001-07-09 2006-04-12 三星电子株式会社 基于色温浏览图像数据的装置和方法
CN101211371A (zh) * 2006-12-27 2008-07-02 索尼株式会社 图像检索设备、图像检索方法、摄像设备及程序
KR20080066361A (ko) * 2007-01-12 2008-07-16 한국문화콘텐츠진흥원 온톨로지검색시스템
CN101458711A (zh) * 2008-12-30 2009-06-17 国家电网公司 一种图形描述和变换方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1537285A (zh) * 2001-08-03 2004-10-13 �ʼҷ����ֵ��ӹɷ����޹�˾ 用于更新文档的方法和系统
CN100347704C (zh) * 2004-11-25 2007-11-07 武汉大学 一种新的空间信息发布样式表处理器的转换方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758771A (zh) * 2001-07-09 2006-04-12 三星电子株式会社 基于色温浏览图像数据的装置和方法
CN1723456A (zh) * 2002-12-19 2006-01-18 英国电讯有限公司 图像搜索
CN101211371A (zh) * 2006-12-27 2008-07-02 索尼株式会社 图像检索设备、图像检索方法、摄像设备及程序
KR20080066361A (ko) * 2007-01-12 2008-07-16 한국문화콘텐츠진흥원 온톨로지검색시스템
CN101458711A (zh) * 2008-12-30 2009-06-17 国家电网公司 一种图形描述和变换方法及系统

Also Published As

Publication number Publication date
EP2352105A4 (en) 2014-05-07
EP2352105A1 (en) 2011-08-03
CN101458711B (zh) 2011-01-05
CN101458711A (zh) 2009-06-17
EA021257B1 (ru) 2015-05-29
EA201071303A1 (ru) 2011-12-30

Similar Documents

Publication Publication Date Title
WO2010081316A1 (zh) 一种图形描述和变换方法及系统
CN104376416B (zh) 电网生产管理系统与调度自动化系统图形交互方法
CN104951996B (zh) 基于可缩放矢量图形的配电网运行监测方法
CN107743072B (zh) 高效可扩展的网络仿真场景生成方法
CN100595752C (zh) 一种基于iec61970标准的电力系统图形的交互性实现方法
CN102270261B (zh) 基于cad图模一体化的智能变电站模型设计方法
CN102750358B (zh) 一种系统数据模型到cim模型的映射方法及系统
CN104680421B (zh) 一种可伸缩矢量图形svg显示方法及装置
CN103078958A (zh) 一种基于可缩放矢量图形svg结合富互联网ria的电力scada web方式实时监控复视方法
CN103955549A (zh) 基于SVG的WebGIS系统及其数据录入和查询方法
CN101334872B (zh) 基于Web服务的电子公文交换方法
CN107515741A (zh) 一种变电站与主站间数据的轻量化传输方法和装置
CN108667851A (zh) 一种调控系统轻量化人机交互系统
CN104750468B (zh) 一种服务端拓扑数据转换方法和转换装置
CN101847142A (zh) 基于数据表模型封装的网页开发方法
CN115981625A (zh) 一种可扩展的电力系统接线图界面建模方法及系统
CN105404741A (zh) 智能变电站智能电子设备的动态建模方法
CN102521359B (zh) 界面数据文件的比较方法及装置
Sharma et al. Towards XML interoperability
CN104573983B (zh) 一种电力生产调度语义服务实现方法
CN111209359A (zh) 一种ems变电图模接入gis平台图符自适应系统和方法
CN106528949A (zh) 基于gis的电网配电设计方法及其系统
CN105373635B (zh) 变电站与调控中心图模一体化全信息模型的构建方法
CA2543959A1 (en) System and method for developing arbitrary and efficient mappings between complex message structures
CN102143209A (zh) 图形展现方法、装置和服务器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09838103

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 201071303

Country of ref document: EA

Ref document number: 2009838103

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE