WO2015188626A1 - Method for viewing single line diagram of electric power system on mobile terminal in real time - Google Patents

Method for viewing single line diagram of electric power system on mobile terminal in real time Download PDF

Info

Publication number
WO2015188626A1
WO2015188626A1 PCT/CN2015/071597 CN2015071597W WO2015188626A1 WO 2015188626 A1 WO2015188626 A1 WO 2015188626A1 CN 2015071597 W CN2015071597 W CN 2015071597W WO 2015188626 A1 WO2015188626 A1 WO 2015188626A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
mobile terminal
svg
line diagram
cim
Prior art date
Application number
PCT/CN2015/071597
Other languages
French (fr)
Chinese (zh)
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 国家电网公司
Publication of WO2015188626A1 publication Critical patent/WO2015188626A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E40/00Technologies for an efficient electrical power generation, transmission or distribution
    • Y02E40/70Smart grids as climate change mitigation technology in the energy generation sector
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Definitions

  • the present invention relates to the field of communications, and in particular to a method for viewing a one-line diagram of a power system in real time on a mobile terminal.
  • a one-line diagram is a graphical display of one or more power lines in a power system, including the connection of lines, lines, equipment connected in the line, status of equipment, details of equipment accounts, etc., is circuit design and construction.
  • Reference diagram of the staff during the maintenance process is that the field staff can get in touch with the control center and query the required information before the construction. On the one hand, it takes a lot of time to communicate with each other. On the other hand, it is difficult for the field staff to fully understand all relevant information and cannot grasp it in time. The situation on the spot; especially when dealing with power grid repair work, the traditional operation mode is slow and inefficient, and it is difficult to meet the demand.
  • the technical problem to be solved by the present invention is to provide a method for real-time viewing of a single line graph of a power system on a mobile terminal, which can realize functions such as free zooming, clicking device viewing device account information, device positioning, fault repairing, etc., and providing field staff with Fast, precise and convenient assistance and assistance.
  • a method for viewing a one-line diagram of a power system in real time on a mobile terminal comprising a mobile terminal loading a WebView control, and a power grid GIS platform and an intermediate server of the power system, wherein the WebView control includes an SVG viewer, and the grid GIS platform generates a one-line diagram.
  • SVG scalable vector graphics files and CIM topology data files are transmitted to the intermediate server, and the intermediate server needs to view the settings according to the mobile terminal.
  • the CIM file is parsed to obtain the ID code of each device that the mobile terminal needs to view, and the click event, the JavaScript program, and the second set of ⁇ symbol> tags are added to each device in the SVG file by ID encoding to realize the reconstruction of the SVG file. Then, the CIM file and the reconstructed SVG file are packaged and compressed to form a compressed package; the mobile terminal downloads the compressed package from the intermediate server, decompresses the CIM file and the reconstructed SVG file, and parses the CIM file according to the device type to be viewed.
  • the relative coordinates of the device in the reconstructed SVG file are used to encode the region according to the device name or ID code, and calculate the device in the WebView image according to the zoom ratio and the screen height and width information of the WebView image currently displayed by the mobile terminal.
  • the absolute coordinates of the WebView image display area position switch are used to encode the region according to the device name or ID code, and calculate the device in the WebView image according to the zoom ratio and the screen height and width information of the WebView image currently displayed by the mobile terminal.
  • the WebView control starts a new thread, and the JavaScript program in the SVG file and the second set of ⁇ symbol> tags are called by loadUrl to control the thread to cyclically change the image elements of the device in the WebView image. Get a flicker effect on it.
  • the JavaScript program executes a click device display detail and a click device coloring operation; when a device in the one-line diagram displayed by the mobile terminal is clicked, the SVG file sends an Alert popup box containing the device ID code to the mobile terminal, and the JavaScript program acquires The information in the Alert pop-up box is converted into a pop-up box in a format recognizable by the mobile terminal, and the JavaScript program changes the original ⁇ symbol> tag referenced by the ⁇ use> reference image element of the click device to the second set ⁇ symbol> label.
  • the intermediate server uses the DOM method to parse CIM files and reconstruct SVG files.
  • the mobile terminal parses the CIM file and the SVG file by using the SAX method.
  • the on-site staff can view the one-line diagram in real time through the mobile terminal, and can freely zoom, click the device to view the equipment account information, equipment positioning, fault repair information query, effectively improve the construction speed and work efficiency, which is of great significance for the power grid repair work.
  • Figure 1 is a schematic diagram of a single-line diagram export mode.
  • the method for viewing the power system one-line diagram in real time on the mobile terminal as shown in FIG. 1 includes a mobile terminal loaded with Android 3.0 and above, because in the environment of Android 3.0 system and above, the WebView control of the system itself is provided. SVG viewer, as well as grid GIS platform and intermediate server for power systems.
  • the grid GIS platform can generate single-line diagrams in a variety of formats, where SVG (Scalable Vector Graphics) scalable vector graphics are defined using XML format to define vector-based graphics for the network, and SVG images are enlarged or resized to their graphics. The quality will not be lost.
  • SVG Scalable Vector Graphics
  • the standard is customized by the World Wide Web Consortium. Therefore, in order to facilitate the terminal display, the SVG format single line graph is selected for display during the implementation process.
  • the SVG file generated by the grid GIS platform is only graphically displayed on the line and equipment. The account details of each device are not explained. Therefore, the grid also provides CIM topology data files for each SVG file.
  • the formal description of CIM is implemented by XML, and the detailed information of each device in the single-line diagram (such as device name, device type, device number, device coordinates, switch status, etc.) is described, and the corresponding ID code and SVG file are used. The devices in the association are associated.
  • the directly downloaded SVG file does not contain device details, image source color change, click device response, etc., considering the specific needs of the project and the display characteristics of the SVG file in the Android system, the downloaded SVG file cannot be The terminal performs direct display, and needs to parse and refactor after the download is completed, and regenerate the SVG file that meets the project display requirements.
  • the grid GIS platform generates a single-line SVG scalable vector graphics file and CIM topology data file, and transmits it to the intermediate server.
  • the CIM file is parsed by the DOM method according to the device type that the mobile terminal needs to view, and each of the CIM files is retrieved.
  • the ⁇ cim:PowerSystemResource.PSRType> tag determines whether the value in the rdf:resource attribute is the same as the type of the device to be viewed.
  • the value of the rdf:ID attribute in the parent tag that meets the requirements is obtained by each device that the mobile terminal needs to view.
  • ID code the ID code is the unique association of the device in the CIM file and the SVG file.
  • the ID code is used to add a click event, a JavaScript program and a second set of ⁇ symbol> tags to each device in the SVG file to implement the DOM mode to the SVG file.
  • the refactoring, the intermediate server further compresses and compresses the CIM file and the reconstructed SVG file to form a compressed package
  • the mobile terminal downloads the compressed package from the intermediate server, and obtains the CIM file and the reconstructed SVG file after decompression, and views according to the need.
  • the device type resolves the CIM file to obtain the account details of each device, parses the reconstructed SVG file, obtains the file generation time, the ID code of the device that needs to respond to the click event, and the relative coordinates of these devices in the SVG file.
  • the device's account details, click events, relative coordinates in the reconstructed SVG file are associated with the ID code to establish a database for local persistence; the mobile terminal uses a SAX method that consumes relatively low memory and has high parsing efficiency to parse the CIM. Files and SVG files.
  • the mobile terminal needs to pay attention to the control and cleaning of the settings and cache of the WebView control, so as to avoid the situation that the program overflows due to memory overflow during the viewing process because the single-line diagram is too large.
  • the JavaScript program executes a click device display detail and a click device coloring operation.
  • the SVG file sends an Alert popup box containing the device ID encoding information to the mobile terminal, due to Android.
  • the system cannot directly display the pop-up effect of the web page.
  • the JavaScript program calls the WebChromeClient in the WebView control to intercept the Alert pop-up box, and obtains the device ID code, and retrieves the device account details in the database of the mobile terminal by using the device ID code.
  • the DiaLog pop-up box is displayed in the mobile terminal according to the style and style of the demand; at the same time, the image elements in the SVG file generated by the grid GIS platform include: ⁇ rect> rectangle, ⁇ path> line segment and ⁇ use> reference (ie reference).
  • the defined primitive ⁇ symbol>, ⁇ rect> rectangle and ⁇ path> line segment can directly set its style, change the style, and the ⁇ use> reference is relatively complicated because the referenced ⁇ symbol> is composed of multiple elements.
  • the reference relationship between ⁇ symbol> and ⁇ use> is a one-to-many relationship, so the original ⁇ symbol> style cannot be directly changed.
  • JavaScript program will be a pointing device ⁇ use> references the original ⁇ symbol> referenced label to the second set of ⁇ symbol> tag; this does not change the SVG file itself temporarily change the image to show the effect.
  • the relative coordinates of the device in the reconstructed SVG file are used to encode the region according to the device name or ID code, and calculate the device in the WebView image according to the zoom ratio and the screen height and width information of the WebView image currently displayed by the mobile terminal.
  • the absolute coordinates of the WebView image display area is switched; when the WebView image display area is moved to the specified position, the WebView control starts a new thread, and the JavaScript program in the SVG file and the second set of ⁇ symbol> tags are controlled by loadUrl. This thread loops through the image elements of the device and gets a flicker effect on the WebView image.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method for viewing a single line diagram of an electric power system on a mobile terminal in real time, comprising: loading a mobile terminal of a WebView control, and a power grid GIS platform and an intermediate server of an electric power system, wherein the WebView control contains an SVG viewer; generating, by the power grid GIS platform, an SVG file and a CIM file of a single line diagram and transmitting same to the intermediate server; when the intermediate server parses the CIM file to obtain ID codes of devices, reconstructing the SVG file through the ID codes; obtaining and parsing, by the mobile terminal, the CIM file and the reconstructed SVG file, acquiring file generation time, the ID codes of the devices required to respond to click events and relative coordinates of these devices in the SVG file, and establishing a database, to conduct local persistence. On-site staff can view a single line diagram through a mobile terminal in real time, so that the construction speed and the working efficiency are effectively increased, thereby having great significance for power grid rush-repair work.

Description

在移动终端上实时查看电力系统单线图的方法Method for viewing power system single line graph in real time on mobile terminal 技术领域Technical field
本发明涉及通讯领域,具体涉及在移动终端上实时查看电力系统单线图的方法。The present invention relates to the field of communications, and in particular to a method for viewing a one-line diagram of a power system in real time on a mobile terminal.
背景技术Background technique
单线图是电力系统对电网中某一条或多条电力线路的图形化展示,其中包含线路、线路的连接、线路中连接的设备、设备的状态、设备台账明细等信息,是电路设计、施工、维护过程中工作人员的参照图。传统的作业模式是现场工作人员与控制中心取得联系,查询到需要的信息后再进行施工,一方面相互沟通需要花费大量的时间,另一方面现场工作人员难以全面了解所有相关信息,无法及时掌握现场的情况;尤其是在应对电网抢修工作时,传统的作业模式速度慢、效率低,难以满足需求。A one-line diagram is a graphical display of one or more power lines in a power system, including the connection of lines, lines, equipment connected in the line, status of equipment, details of equipment accounts, etc., is circuit design and construction. Reference diagram of the staff during the maintenance process. The traditional mode of operation is that the field staff can get in touch with the control center and query the required information before the construction. On the one hand, it takes a lot of time to communicate with each other. On the other hand, it is difficult for the field staff to fully understand all relevant information and cannot grasp it in time. The situation on the spot; especially when dealing with power grid repair work, the traditional operation mode is slow and inefficient, and it is difficult to meet the demand.
《国家电网公司“十二五”信息化规划》中明确提出了“借助无线互联技术实现移动终端对企业门户的安全访问,将业务应用的前端扩展到生产、营销等业务领域的作业现场,实现作业现场与后台应用之间及时畅通交互,从而提高业务管理效率”的工作要求。"The National Grid Corporation's "Twelfth Five-Year Plan for Informatization" clearly stated that "the wireless terminal technology can be used to realize the secure access of the mobile terminal to the enterprise portal, and the front end of the business application is extended to the operation site of the production and marketing business areas. Work requirements for smooth and uninterrupted interaction between the job site and the back-end application to improve business management efficiency.
因此,如何实现在移动终端上实时查看单线图,是当下迫切需要解决的一个问题。Therefore, how to realize the one-line diagram in real time on the mobile terminal is an urgent problem to be solved at present.
发明内容Summary of the invention
本发明要解决的技术问题是提供一种在移动终端上实时查看电力系统单线图的方法,可以实现自由缩放、点击设备查看设备台账信息、设备定位、故障报修等功能,为现场工作人员提供快速、精准、便利的辅助及帮助。The technical problem to be solved by the present invention is to provide a method for real-time viewing of a single line graph of a power system on a mobile terminal, which can realize functions such as free zooming, clicking device viewing device account information, device positioning, fault repairing, etc., and providing field staff with Fast, precise and convenient assistance and assistance.
本发明通过以下技术方案实现:The invention is achieved by the following technical solutions:
在移动终端上实时查看电力系统单线图的方法,包括装载WebView控件的移动终端,以及电力系统的电网GIS平台和中间服务器,所述WebView控件中包含有SVG查看器,电网GIS平台生成单线图的SVG可缩放矢量图形文件和CIM拓扑数据文件,并传输至中间服务器,在中间服务器根据移动终端需要查看的设 备类型,解析CIM文件得到移动终端需要查看的各设备的ID编码,通过ID编码为SVG文件中的各设备添加点击事件、JavaScript程序和第二套<symbol>标签,实现对SVG文件的重构,再将CIM文件和重构后的SVG文件打包压缩形成压缩包;移动终端从中间服务器下载压缩包,解压缩后获得CIM文件和重构后的SVG文件,根据需要查看的设备类型解析CIM文件获取每台设备的台账明细,解析重构后的SVG文件,获取文件生成时间、需要响应点击事件的设备的ID编码以及这些设备在SVG文件中的相对坐标,将每台设备的台账明细、点击事件、在重构后的SVG文件中的相对坐标与ID编码关联建立数据库,进行本地持久化。A method for viewing a one-line diagram of a power system in real time on a mobile terminal, comprising a mobile terminal loading a WebView control, and a power grid GIS platform and an intermediate server of the power system, wherein the WebView control includes an SVG viewer, and the grid GIS platform generates a one-line diagram. SVG scalable vector graphics files and CIM topology data files are transmitted to the intermediate server, and the intermediate server needs to view the settings according to the mobile terminal. The type of the device, the CIM file is parsed to obtain the ID code of each device that the mobile terminal needs to view, and the click event, the JavaScript program, and the second set of <symbol> tags are added to each device in the SVG file by ID encoding to realize the reconstruction of the SVG file. Then, the CIM file and the reconstructed SVG file are packaged and compressed to form a compressed package; the mobile terminal downloads the compressed package from the intermediate server, decompresses the CIM file and the reconstructed SVG file, and parses the CIM file according to the device type to be viewed. Obtain the account details of each device, parse the reconstructed SVG file, obtain the file generation time, the ID code of the device that needs to respond to the click event, and the relative coordinates of these devices in the SVG file, and the account details of each device. The click event, the relative coordinates in the reconstructed SVG file are associated with the ID code to establish a database for local persistence.
设备在重构后的SVG文件中的相对坐标用于根据设备名称或ID编码查询所在区域时,根据移动终端当前展示WebView图像的缩放比例和屏幕高度、宽度信息,计算出该设备在WebView图像中的绝对坐标,进行WebView图像展示区域位置切换。The relative coordinates of the device in the reconstructed SVG file are used to encode the region according to the device name or ID code, and calculate the device in the WebView image according to the zoom ratio and the screen height and width information of the WebView image currently displayed by the mobile terminal. The absolute coordinates of the WebView image display area position switch.
当WebView图像展示区域移动到指定位置后,WebView控件启动一个新的线程,通过loadUrl调用SVG文件中的JavaScript程序和第二套<symbol>标签,控制该线程循环改变设备的图像元素,在WebView图像上获得闪烁效果。When the WebView image display area is moved to the specified location, the WebView control starts a new thread, and the JavaScript program in the SVG file and the second set of <symbol> tags are called by loadUrl to control the thread to cyclically change the image elements of the device in the WebView image. Get a flicker effect on it.
所述JavaScript程序执行点击设备展示详情和点击设备着色操作;当移动终端显示的单线图中的某一个设备被点击时,SVG文件向移动终端发送的包含设备ID编码的Alert弹出框,JavaScript程序获取Alert弹出框中的信息并转化为移动终端可识别格式的弹出框进行展示,同时JavaScript程序将被点击设备的<use>引用图像元素所引用的原<symbol>标签改为第二套<symbol>标签。The JavaScript program executes a click device display detail and a click device coloring operation; when a device in the one-line diagram displayed by the mobile terminal is clicked, the SVG file sends an Alert popup box containing the device ID code to the mobile terminal, and the JavaScript program acquires The information in the Alert pop-up box is converted into a pop-up box in a format recognizable by the mobile terminal, and the JavaScript program changes the original <symbol> tag referenced by the <use> reference image element of the click device to the second set <symbol> label.
中间服务器采用DOM方式解析CIM文件、重构SVG文件。The intermediate server uses the DOM method to parse CIM files and reconstruct SVG files.
移动终端采用SAX方式解析CIM文件和SVG文件。The mobile terminal parses the CIM file and the SVG file by using the SAX method.
本发明的优点在于:The advantages of the invention are:
现场工作人员可通过移动终端实时查看单线图,可进行自由缩放、点击设备查看设备台账信息、设备定位、故障报修信息查询,有效提高施工速度和工作效率,对于电网抢修工作具有重大意义。The on-site staff can view the one-line diagram in real time through the mobile terminal, and can freely zoom, click the device to view the equipment account information, equipment positioning, fault repair information query, effectively improve the construction speed and work efficiency, which is of great significance for the power grid repair work.
附图说明DRAWINGS
图1为单线图导出模式示意图。 Figure 1 is a schematic diagram of a single-line diagram export mode.
具体实施方式detailed description
如图1所示的在移动终端上实时查看电力系统单线图的方法,包括装载Android 3.0及以上版本系统的移动终端,因为在Android 3.0系统及以上版本的环境中,系统本身的WebView控件自带SVG查看器,以及电力系统的电网GIS平台和中间服务器。The method for viewing the power system one-line diagram in real time on the mobile terminal as shown in FIG. 1 includes a mobile terminal loaded with Android 3.0 and above, because in the environment of Android 3.0 system and above, the WebView control of the system itself is provided. SVG viewer, as well as grid GIS platform and intermediate server for power systems.
电网GIS平台可生成多种格式的单线图,其中SVG(Scalable Vector Graphics)可缩放矢量图形是使用XML格式来定义用于网络的基于矢量的图形,SVG图像在放大或改变尺寸的情况下其图形质量不会有所损失,标准由万维网联盟定制,所以为了最终便于终端的展示,在实现过程中选择SVG格式的单线图进行展示。The grid GIS platform can generate single-line diagrams in a variety of formats, where SVG (Scalable Vector Graphics) scalable vector graphics are defined using XML format to define vector-based graphics for the network, and SVG images are enlarged or resized to their graphics. The quality will not be lost. The standard is customized by the World Wide Web Consortium. Therefore, in order to facilitate the terminal display, the SVG format single line graph is selected for display during the implementation process.
电网GIS平台所生成单线图的SVG文件仅单纯对线路以及设备进行图形化的展示,并未对每个设备的台账明细进行说明,因此电网也为每个SVG文件配备了CIM拓扑数据文件,CIM的形式化描述利用XML实现,对单线图中每一个设备的详细信息(如:设备名称、设备类型、设备编号、设备坐标、开关状态等)进行说明,并通过对应的ID编码与SVG文件中的设备进行关联。The SVG file generated by the grid GIS platform is only graphically displayed on the line and equipment. The account details of each device are not explained. Therefore, the grid also provides CIM topology data files for each SVG file. The formal description of CIM is implemented by XML, and the detailed information of each device in the single-line diagram (such as device name, device type, device number, device coordinates, switch status, etc.) is described, and the corresponding ID code and SVG file are used. The devices in the association are associated.
由于直接下载到的SVG文件并不包含设备详细信息、图源变色,点击设备响应等功能,考虑到本项目中的具体需求以及SVG文件在Android系统中的展示特性,下载到的SVG文件无法在终端进行直接展示,需在下载完成后进行解析和重构,重新生成符合项目展示需求的SVG文件。Since the directly downloaded SVG file does not contain device details, image source color change, click device response, etc., considering the specific needs of the project and the display characteristics of the SVG file in the Android system, the downloaded SVG file cannot be The terminal performs direct display, and needs to parse and refactor after the download is completed, and regenerate the SVG file that meets the project display requirements.
电网GIS平台生成单线图的SVG可缩放矢量图形文件和CIM拓扑数据文件,并传输至中间服务器,在中间服务器根据移动终端需要查看的设备类型,采用DOM方式解析CIM文件,检索CIM文件中每个<cim:PowerSystemResource.PSRType>标签,判断其rdf:resource属性中的值是否与所需查看设备的类型一致,获取符合要求的父标签中rdf:ID属性的值得到移动终端需要查看的各设备的ID编码,该ID编码为CIM文件和SVG文件中设备的唯一关联,通过ID编码为SVG文件中的各设备添加点击事件、JavaScript程序和第二套<symbol>标签,实现采用DOM方式对SVG文件的重构,中间服务器再将CIM文件和重构后的SVG文件打包压缩形成压缩包,移动终端从中间服务器下载压缩包,解压缩后获得CIM文件和重构后的SVG文件,根据需要查看的 设备类型解析CIM文件获取每台设备的台账明细,解析重构后的SVG文件,获取文件生成时间、需要响应点击事件的设备的ID编码以及这些设备在SVG文件中的相对坐标,将每台设备的台账明细、点击事件、在重构后的SVG文件中的相对坐标与ID编码关联建立数据库,进行本地持久化;移动终端采用消耗内存相对较低、解析效率较高的SAX方式解析CIM文件和SVG文件。移动终端需要注意的是对WebView控件的设置与缓存的控制、清理,以免出现因为单线图过大,而在查看过程中出现内存溢出从而导致程序崩溃的情况。The grid GIS platform generates a single-line SVG scalable vector graphics file and CIM topology data file, and transmits it to the intermediate server. In the intermediate server, the CIM file is parsed by the DOM method according to the device type that the mobile terminal needs to view, and each of the CIM files is retrieved. The <cim:PowerSystemResource.PSRType> tag determines whether the value in the rdf:resource attribute is the same as the type of the device to be viewed. The value of the rdf:ID attribute in the parent tag that meets the requirements is obtained by each device that the mobile terminal needs to view. ID code, the ID code is the unique association of the device in the CIM file and the SVG file. The ID code is used to add a click event, a JavaScript program and a second set of <symbol> tags to each device in the SVG file to implement the DOM mode to the SVG file. The refactoring, the intermediate server further compresses and compresses the CIM file and the reconstructed SVG file to form a compressed package, and the mobile terminal downloads the compressed package from the intermediate server, and obtains the CIM file and the reconstructed SVG file after decompression, and views according to the need. The device type resolves the CIM file to obtain the account details of each device, parses the reconstructed SVG file, obtains the file generation time, the ID code of the device that needs to respond to the click event, and the relative coordinates of these devices in the SVG file. The device's account details, click events, relative coordinates in the reconstructed SVG file are associated with the ID code to establish a database for local persistence; the mobile terminal uses a SAX method that consumes relatively low memory and has high parsing efficiency to parse the CIM. Files and SVG files. The mobile terminal needs to pay attention to the control and cleaning of the settings and cache of the WebView control, so as to avoid the situation that the program overflows due to memory overflow during the viewing process because the single-line diagram is too large.
所述JavaScript程序执行点击设备展示详情和点击设备着色操作,当移动终端显示的单线图中的某一个设备被点击时,SVG文件向移动终端发送的包含设备ID编码信息的Alert弹出框,由于Android系统无法直接展示Web页面的弹出框效果,JavaScript程序调用WebView控件中的的WebChromeClient截获Alert弹出框,并获取其中设备ID编码,通过设备ID编码在移动终端的数据库中检索到设备台账明细,组合成符合需求的风格和样式DiaLog弹出框在移动终端进行展示;同时电网GIS平台所生成单线图的SVG文件中的图像元素包括:<rect>矩形、<path>线段和<use>引用(即引用定义好的图元<symbol>),<rect>矩形和<path>线段可直接设置其风格,改变样式,而<use>引用由于所引用的<symbol>由多个元素组成,相对比较复杂,并且<symbol>与<use>的引用关系为一对多关系,因此不能直接改变原有<symbol>的样式,必须通过JavaScript程序将被点击设备的<use>引用所引用的原<symbol>标签改为第二套<symbol>标签;这种在图像展示效果的暂时改变并未改变SVG文件本身。The JavaScript program executes a click device display detail and a click device coloring operation. When a device in the one-line diagram displayed by the mobile terminal is clicked, the SVG file sends an Alert popup box containing the device ID encoding information to the mobile terminal, due to Android. The system cannot directly display the pop-up effect of the web page. The JavaScript program calls the WebChromeClient in the WebView control to intercept the Alert pop-up box, and obtains the device ID code, and retrieves the device account details in the database of the mobile terminal by using the device ID code. The DiaLog pop-up box is displayed in the mobile terminal according to the style and style of the demand; at the same time, the image elements in the SVG file generated by the grid GIS platform include: <rect> rectangle, <path> line segment and <use> reference (ie reference The defined primitive <symbol>, <rect> rectangle and <path> line segment can directly set its style, change the style, and the <use> reference is relatively complicated because the referenced <symbol> is composed of multiple elements. And the reference relationship between <symbol> and <use> is a one-to-many relationship, so the original <symbol> style cannot be directly changed. By JavaScript program will be a pointing device <use> references the original <symbol> referenced label to the second set of <symbol> tag; this does not change the SVG file itself temporarily change the image to show the effect.
设备在重构后的SVG文件中的相对坐标用于根据设备名称或ID编码查询所在区域时,根据移动终端当前展示WebView图像的缩放比例和屏幕高度、宽度信息,计算出该设备在WebView图像中的绝对坐标,进行WebView图像展示区域位置切换;当WebView图像展示区域移动到指定位置后,WebView控件启动一个新的线程,通过loadUrl调用SVG文件中的JavaScript程序和第二套<symbol>标签,控制该线程循环改变设备的图像元素,在WebView图像上获得闪烁效果。 The relative coordinates of the device in the reconstructed SVG file are used to encode the region according to the device name or ID code, and calculate the device in the WebView image according to the zoom ratio and the screen height and width information of the WebView image currently displayed by the mobile terminal. The absolute coordinates of the WebView image display area is switched; when the WebView image display area is moved to the specified position, the WebView control starts a new thread, and the JavaScript program in the SVG file and the second set of <symbol> tags are controlled by loadUrl. This thread loops through the image elements of the device and gets a flicker effect on the WebView image.

Claims (6)

  1. 在移动终端上实时查看电力系统单线图的方法,其特征在于:包括装载WebView控件的移动终端,以及电力系统的电网GIS平台和中间服务器,所述WebView控件中包含有SVG查看器,电网GIS平台生成单线图的SVG可缩放矢量图形文件和CIM拓扑数据文件,并传输至中间服务器,在中间服务器根据移动终端需要查看的设备类型,解析CIM文件得到移动终端需要查看的各设备的ID编码,通过ID编码为SVG文件中的各设备添加点击事件、JavaScript程序和第二套<symbol>标签,实现对SVG文件的重构,再将CIM文件和重构后的SVG文件打包压缩形成压缩包;移动终端从中间服务器下载压缩包,解压缩后获得CIM文件和重构后的SVG文件,根据需要查看的设备类型解析CIM文件获取每台设备的台账明细,解析重构后的SVG文件,获取文件生成时间、需要响应点击事件的设备的ID编码以及这些设备在SVG文件中的相对坐标,将每台设备的台账明细、点击事件、在重构后的SVG文件中的相对坐标与ID编码关联建立数据库,进行本地持久化。A method for viewing a one-line diagram of a power system in real time on a mobile terminal, comprising: a mobile terminal loaded with a WebView control, and a power grid GIS platform and an intermediate server of the power system, wherein the WebView control includes an SVG viewer, and the power grid GIS platform The SVG scalable vector graphics file and the CIM topology data file of the one-line diagram are generated and transmitted to the intermediate server. The intermediate server parses the CIM file according to the type of the device that the mobile terminal needs to view, and obtains the ID code of each device that the mobile terminal needs to view. The ID code adds a click event, a JavaScript program, and a second set of <symbol> tags to each device in the SVG file to implement reconstruction of the SVG file, and then compresses and compresses the CIM file and the reconstructed SVG file to form a compressed package; The terminal downloads the compressed package from the intermediate server, decompresses the CIM file and the reconstructed SVG file, parses the CIM file according to the device type to be viewed, obtains the account details of each device, parses the reconstructed SVG file, and obtains the file. Generate time, ID code of the device that needs to respond to the click event, and these devices in the SV The relative coordinates in the G file are associated with the account details of each device, the click event, the relative coordinates in the reconstructed SVG file, and the ID code to establish a database for local persistence.
  2. 如权利要求1所述的在移动终端上实时查看电力系统单线图的方法,其特征在于:设备在重构后的SVG文件中的相对坐标用于根据设备名称或ID编码查询所在区域时,根据移动终端当前展示WebView图像的缩放比例和屏幕高度、宽度信息,计算出该设备在WebView图像中的绝对坐标,进行WebView图像展示区域位置切换。The method for viewing a power line one-line diagram in real time on a mobile terminal according to claim 1, wherein: the relative coordinates of the device in the reconstructed SVG file are used to query the region according to the device name or ID code, according to The mobile terminal currently displays the zoom ratio of the WebView image and the screen height and width information, calculates the absolute coordinates of the device in the WebView image, and performs the location switching of the WebView image display area.
  3. 如权利要求2所述的在移动终端上实时查看电力系统单线图的方法,其特征在于:当WebView图像展示区域移动到指定位置后,WebView控件启动一个新的线程,通过loadUrl调用SVG文件中的JavaScript程序和第二套<symbol>标签,控制该线程循环改变设备的图像元素,在WebView图像上获得闪烁效果。The method for viewing a one-line diagram of a power system in real time on a mobile terminal according to claim 2, wherein when the WebView image display area is moved to the specified location, the WebView control starts a new thread, and the SVG file is called by the loadUrl. The JavaScript program and the second set of <symbol> tags control the thread to change the image elements of the device and get a flicker effect on the WebView image.
  4. 如权利要求1或3所述的在移动终端上实时查看电力系统单线图的方法,其特征在于:所述JavaScript程序执行点击设备展示详情和点击设备着色操作;当移动终端显示的单线图中的某一个设备被点击时,SVG文件向移动终端发送的包含设备ID编码的Alert弹出框,JavaScript程序获取Alert弹出框中的信息并转化为移动终端可识别格式的弹出框进行展示,同时JavaScript程序将被点击设备的<use>引用图像元素所引用的原<symbol>标签改为第二套<symbol>标签。 The method for viewing a power line one-line diagram in real time on a mobile terminal according to claim 1 or 3, wherein: said JavaScript program performs a click device display detail and a click device coloring operation; when the mobile terminal displays a one-line diagram When a device is clicked, the SVG file sends an Alert pop-up box containing the device ID code to the mobile terminal, and the JavaScript program obtains the information in the Alert pop-up box and converts it into a pop-up box of the mobile terminal identifiable format, and the JavaScript program will The original <symbol> tag referenced by the <use> reference image element of the clicked device is changed to the second set of <symbol> tags.
  5. 如权利要求1所述的在移动终端上实时查看电力系统单线图的方法,其特征在于:中间服务器采用DOM方式解析CIM文件、重构SVG文件。The method for viewing a power line one-line diagram in real time on a mobile terminal according to claim 1, wherein the intermediate server parses the CIM file and reconstructs the SVG file by using a DOM method.
  6. 如权利要求1所述的在移动终端上实时查看电力系统单线图的方法,其特征在于:移动终端采用SAX方式解析CIM文件和SVG文件。 The method for viewing a power line one-line diagram in real time on a mobile terminal according to claim 1, wherein the mobile terminal parses the CIM file and the SVG file by using a SAX method.
PCT/CN2015/071597 2014-06-10 2015-01-27 Method for viewing single line diagram of electric power system on mobile terminal in real time WO2015188626A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410254436.3 2014-06-10
CN201410254436.3A CN104063806B (en) 2014-06-10 2014-06-10 The method of real time inspection power system line chart on mobile terminals

Publications (1)

Publication Number Publication Date
WO2015188626A1 true WO2015188626A1 (en) 2015-12-17

Family

ID=51551503

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/071597 WO2015188626A1 (en) 2014-06-10 2015-01-27 Method for viewing single line diagram of electric power system on mobile terminal in real time

Country Status (2)

Country Link
CN (1) CN104063806B (en)
WO (1) WO2015188626A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052634A (en) * 2017-12-20 2018-05-18 江苏瑞中数据股份有限公司 A kind of power grid production control great Qu and the integrated approach of asset management great Qu multi information systems
CN108520086A (en) * 2018-02-11 2018-09-11 广东电网有限责任公司佛山供电局 A kind of power distribution network Drawing Network Diagram and automatic generation method
CN109933634A (en) * 2019-01-28 2019-06-25 广东电网有限责任公司 A kind of electric system drawing drawing method based on power supply radiation scope
CN111581758A (en) * 2020-05-07 2020-08-25 广东电网有限责任公司电力调度控制中心 Power grid graph topology modeling method and computer readable storage medium
CN112507262A (en) * 2020-12-30 2021-03-16 苏州光格科技股份有限公司 Cable channel section acquisition and automatic generation method based on handheld terminal
CN115146879A (en) * 2022-09-05 2022-10-04 国网山西省电力公司超高压变电分公司 Optimization method for safety measure arrangement path of transformer substation relay protection room

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063806B (en) * 2014-06-10 2017-04-05 国家电网公司 The method of real time inspection power system line chart on mobile terminals
CN105809314A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Method and system for asset management
CN105760603B (en) * 2016-02-19 2019-03-12 云南电网有限责任公司电力科学研究院 A kind of grid model data conversion method and device
CN106210281A (en) * 2016-06-29 2016-12-07 中国神华能源股份有限公司 Realize the method and apparatus showing configuration map file on mobile terminals
CN106777750A (en) * 2016-12-29 2017-05-31 国家电网公司 A kind of management method and look-up system of power distribution network line chart
CN109002455A (en) * 2018-05-23 2018-12-14 广东电网有限责任公司 A kind of cross-platform power distribution network line chart Mobile Online checks and equipment localization method
US11423495B2 (en) * 2019-11-18 2022-08-23 Rockwell Automation Technologies, Inc. System and method for generating single-line diagrams for an industrial automation system
WO2021245752A1 (en) * 2020-06-01 2021-12-09 東芝三菱電機産業システム株式会社 Scada web hmi system and hmi client
CN111859586A (en) * 2020-07-06 2020-10-30 广东电网有限责任公司 Method for intelligently generating distribution network line automatic switch distribution diagram
CN111950977B (en) * 2020-07-28 2023-11-21 中国南方电网有限责任公司 Data interaction system and method for information system radio station account to dispatching master station
CN113190946A (en) * 2021-05-14 2021-07-30 广东电网有限责任公司 Method and related device for displaying switch information by distribution network line distribution diagram

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617641A (en) * 2013-12-19 2014-03-05 国家电网公司 Electric equipment SVG (Scalable Vector Graphics) icon rendering method based on Android system
CN104063806A (en) * 2014-06-10 2014-09-24 国家电网公司 Method for viewing single line drawing of electrical power system through mobile terminal in real time

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040246256A1 (en) * 2003-06-04 2004-12-09 Parakkuth Jayapal Dharmapalan Scalable vector graphics for SCADA functions
CN103412981B (en) * 2013-07-18 2016-01-13 国电南瑞科技股份有限公司 The implementation method of the integrated information displaying of a kind of transformer station pel
CN103473068A (en) * 2013-09-24 2013-12-25 北京天源科创风电技术有限责任公司 Customizing system and customizing method for graph real-time monitoring interface based on SVG (Scalable Vector Graphics)
CN103646091B (en) * 2013-12-17 2016-10-12 北京中电普华信息技术有限公司 A kind of generation method and device of grid graph data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617641A (en) * 2013-12-19 2014-03-05 国家电网公司 Electric equipment SVG (Scalable Vector Graphics) icon rendering method based on Android system
CN104063806A (en) * 2014-06-10 2014-09-24 国家电网公司 Method for viewing single line drawing of electrical power system through mobile terminal in real time

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HAN, WENMING: "Automatic Generation of Single-Line Diagram for Distribution Network Based on SIM", CHINA MASTER'S THESES FULL-TEXT DATABASE, 15 June 2013 (2013-06-15) *
TU, JING: "The Design and Application of Display System to Integrative Data Platform for Power Dispatching System Based on Android", CHINA MASTER'S THESES FULL-TEXT DATABASE, October 2013 (2013-10-01), pages 5 , 7 , 16 - 17 , 26-27, 31 and 47, 15 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052634A (en) * 2017-12-20 2018-05-18 江苏瑞中数据股份有限公司 A kind of power grid production control great Qu and the integrated approach of asset management great Qu multi information systems
CN108052634B (en) * 2017-12-20 2021-11-12 江苏瑞中数据股份有限公司 Integration method of multi-information system of power grid production control large area and asset management large area
CN108520086A (en) * 2018-02-11 2018-09-11 广东电网有限责任公司佛山供电局 A kind of power distribution network Drawing Network Diagram and automatic generation method
CN109933634A (en) * 2019-01-28 2019-06-25 广东电网有限责任公司 A kind of electric system drawing drawing method based on power supply radiation scope
CN109933634B (en) * 2019-01-28 2023-05-26 广东电网有限责任公司 Power system graph drawing method based on power radiation range
CN111581758A (en) * 2020-05-07 2020-08-25 广东电网有限责任公司电力调度控制中心 Power grid graph topology modeling method and computer readable storage medium
CN111581758B (en) * 2020-05-07 2024-01-30 广东电网有限责任公司电力调度控制中心 Power grid graph topology modeling method and computer readable storage medium
CN112507262A (en) * 2020-12-30 2021-03-16 苏州光格科技股份有限公司 Cable channel section acquisition and automatic generation method based on handheld terminal
CN112507262B (en) * 2020-12-30 2024-03-12 苏州光格科技股份有限公司 Method for collecting and automatically generating section of cable channel based on handheld terminal
CN115146879A (en) * 2022-09-05 2022-10-04 国网山西省电力公司超高压变电分公司 Optimization method for safety measure arrangement path of transformer substation relay protection room
CN115146879B (en) * 2022-09-05 2022-12-06 国网山西省电力公司超高压变电分公司 Optimization method for safety measure arrangement path of relay protection room of transformer substation

Also Published As

Publication number Publication date
CN104063806A (en) 2014-09-24
CN104063806B (en) 2017-04-05

Similar Documents

Publication Publication Date Title
WO2015188626A1 (en) Method for viewing single line diagram of electric power system on mobile terminal in real time
CN110781423B (en) Webpage generation method and device and electronic equipment
CN110704136B (en) Method for rendering applet components, client, electronic device and storage medium
CN104484189B (en) The structure and design method of a kind of application interface
US8019860B2 (en) Service accounting method and apparatus for composite service
CN104410720B (en) A kind of real-time monitoring platform system and method based on web graph shape
CN102360288B (en) Scriptable full-configuration HMI (Human Machine Interface) system driven by real-time data
JP7220753B2 (en) Labeling tool generation method and apparatus, labeling method and apparatus, electronic device, storage medium and program
CN103778201A (en) Large-screen visualization display system and method based on procedural model configuration
CN103473068A (en) Customizing system and customizing method for graph real-time monitoring interface based on SVG (Scalable Vector Graphics)
CN113504908A (en) Business code generation method and device, electronic equipment and computer readable medium
CN102377246A (en) Graphic instantiation method based on IEC61850 fault analysis system
CN105630512A (en) Method and system for implementing mobile device data tracking through software development toolkit
CN104636400A (en) Browser webpage generating method, browser and system
CN103150624A (en) Equipment management and monitoring system based on process flow diagram
CN102855315A (en) Cluster network topology presentation method based on HTML5 (HyperText Markup Language 5)
CN104201779B (en) A kind of online monitoring data based on SVG is automatically integrating monitoring method
Fiaschetti et al. Monitoring and controlling energy distribution: Implementation of a distribution management system based on Common Information Model
CN111651966A (en) Data report file generation method and device and electronic equipment
CN104573213A (en) G-language-based generating method of intelligent electronic equipment electric wiring graph
US20130067379A1 (en) Graphical comparison of geographic information system data
CN110633436A (en) Visualization and user-defined panorama editing method, system, storage medium and equipment
CN104765843A (en) Control method used for graphic interface of electric power real-time monitoring system
US20210192004A1 (en) Method and apparatus for processing webpage, device, and storage mediem
CN109766373A (en) Electric network data methods of exhibiting and computer readable storage medium

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: 15806972

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15806972

Country of ref document: EP

Kind code of ref document: A1