CN112598535A - Method for measuring and retaining power distribution network equipment when SVG is converted into G file - Google Patents

Method for measuring and retaining power distribution network equipment when SVG is converted into G file Download PDF

Info

Publication number
CN112598535A
CN112598535A CN202011432412.4A CN202011432412A CN112598535A CN 112598535 A CN112598535 A CN 112598535A CN 202011432412 A CN202011432412 A CN 202011432412A CN 112598535 A CN112598535 A CN 112598535A
Authority
CN
China
Prior art keywords
file
equipment
measurement
stock
svg
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.)
Granted
Application number
CN202011432412.4A
Other languages
Chinese (zh)
Other versions
CN112598535B (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.)
Hetian Power Supply Co Of State Grid Xinjiang Electric Power Co ltd
Beijing Kedong Electric Power Control System Co Ltd
Original Assignee
Hetian Power Supply Co Of State Grid Xinjiang Electric Power Co ltd
Beijing Kedong Electric Power Control System Co Ltd
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 Hetian Power Supply Co Of State Grid Xinjiang Electric Power Co ltd, Beijing Kedong Electric Power Control System Co Ltd filed Critical Hetian Power Supply Co Of State Grid Xinjiang Electric Power Co ltd
Priority to CN202011432412.4A priority Critical patent/CN112598535B/en
Publication of CN112598535A publication Critical patent/CN112598535A/en
Application granted granted Critical
Publication of CN112598535B publication Critical patent/CN112598535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Public Health (AREA)
  • Marketing (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • General Engineering & Computer Science (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method for measuring and retaining power distribution network equipment when SVG is converted into a G file, which comprises the steps of generating and processing a new G file, processing a stock G file and measuring and retaining the new G file, wherein the corresponding relation between equipment and position information is obtained in the generation and processing of the new G file, the equipment measuring information corresponds to the position information in the processing and measuring and retaining of the stock G file, and the new G file replaces the stock G file in the measuring and retaining.

Description

Method for measuring and retaining power distribution network equipment when SVG is converted into G file
Technical Field
The invention relates to a device measurement and retention method, in particular to a power distribution network device measurement and retention method when SVG is converted into a G file.
Background
SVG: scalable vector graphics, a graphic format based on extensible markup language (a subset of standard generalized markup language) for describing two-dimensional vector graphics, strictly complying with XML syntax, and describing image content in a descriptive language in text format, is a vector graphics format independent of image resolution.
And G language: the graph description language of the power system is a novel efficient graph description language aiming at the power system developed by large SVG text and slow network transmission on the basis of the graph exchange of IEC 61970 and 453 based on a CIM (common information model), and the G language is mainly suitable for efficient and convenient power grid graph exchange among different application systems, different manufacturers and different power enterprises.
The grid line graph G file in the distribution automation main station system is converted from an SVG file pushed by a PMS system. In the actual use process, equipment measurement (such as A-phase current and the like) can be added near the equipment in the power grid line diagram, so that the real-time detection of the power grid operation condition is facilitated.
When equipment abnormal movement occurs, the PMS system can push a new SVG file, a power grid line graph in the power distribution automation master station system needs to be regenerated, and in the process of converting the new SVG file into a G file, equipment measurement information in the stock power grid line graph is completely lost and needs to be regenerated.
Two measurement and generation technologies of power distribution network equipment in the existing power grid line diagram G file exist.
Based on manual dragging of the retriever, the G file is opened through the screen editor, the retriever is called, and the measurement is dragged from the retriever to the position near the equipment. The mechanism is as follows: and screening according to the equipment hierarchical structure in the retriever, and after the equipment is screened out, selecting the required measurement from all the measurements of the equipment listed in the retriever and dragging the selected measurement to the vicinity of the equipment. The technology has the advantages of flexible adding and measuring, complex work of main problems, manual operation of all measurements and large workload.
And based on automatic measurement of the screen editor, opening the G file through the screen editor, calling an automatic measurement function, and automatically adding measurement near the same type of equipment. The mechanism is as follows: after a certain device is selected, the measurement information required by the device of the type is set, and automatic batch addition measurement is carried out. The advantages of this technique are fast addition measurement, the main problem is not flexible enough, all the equipment measurement types of the same type are fixed, and manual intervention is needed.
Disclosure of Invention
In order to solve the problems, the invention provides a method for measuring and retaining power distribution network equipment when SVG is converted into a G file.
The technical scheme adopted by the invention is as follows: a measurement and retention method for power distribution network equipment when SVG is converted into G files comprises the steps of generating and processing new G files, processing stock G files and measurement and retention
The new G file is generated and processed, including
Obtaining SVG files
The SVG file is parsed to obtain a graph G file,
obtaining a mapping relation between equipment identification and equipment position information according to the graph G file;
the stock G file processing comprises
Acquiring a stock G file;
analyzing the stock G file to obtain the mapping relation between the equipment identification and the equipment position information;
acquiring a mapping relation between equipment measurement identification and measurement information in a stock G file;
obtaining equipment measurement identification and measurement position information in a stock G file, and corresponding the equipment measurement identification to the measurement position information;
obtaining the mapping relation between the equipment identification and the measurement information through the mapping relation between the equipment identification and the equipment position information and the mapping relation between the equipment measurement identification and the measurement information; obtaining the mapping relation between the equipment identification and the position deviation between the equipment and the measurement through the mapping relation between the equipment identification and the equipment position information and the mapping relation between the equipment measurement identification and the measurement position information;
the measurement reservation includes
According to the mapping relation between the equipment identifier and the equipment position information in the new G file and the mapping relation between the equipment identifier and the measurement information in the stock G file, obtaining the equipment measurement information in the stock G file which needs to be reserved in the new G file;
according to the mapping relation between the equipment identifier and the equipment position information in the new G file and the mapping relation between the equipment identifier and the position deviation between the equipment and the measurement in the stock G file, the relative positions of the equipment identifier in the new G file and the equipment measurement in the stock G file to be reserved are obtained;
the device measurement information in the inventory G file that needs to be retained is added to the new G file based on the relative location to the devices in the new G file.
Furthermore, the graphic element G file is obtained by analyzing the content of Symbol in the SVG file, and the graphic element G file is obtained by analyzing the content of the equipment layer in the SVG file.
Further, the new G file is analyzed into a primitive G file and a graph G file.
Further, according to the feeder line information, searching real-time operation stock power grid circuit diagram information in a distribution automation master station system database to obtain a stock G file.
Further, the device identification is obtained by converting the RDF _ ID in the SVG.
Further, the device information in the graphics G file includes the referenced primitive, the display attribute of the device, the coordinates of the device, and the RDF _ ID of the device.
Furthermore, the relative position of the measurement and the equipment is adjusted according to the scaling of the new G file and the size of the equipment.
Further, when the measurement information of the device is added to the new G file, a unit of measurement is added after the measurement.
The beneficial effects produced by the invention comprise: the invention does not need to start a picture editor and human intervention, realizes full-automatic processing, only keeps the equipment measurement required in the power grid line graph, and in addition, the relative positions of the equipment and the measurement in the new G file are consistent with the stock power grid line graph.
Drawings
FIG. 1 is a flow chart of converting SVG to G files;
FIG. 2 is a inventory G file processing flow diagram;
fig. 3 is a flowchart of a power distribution network device measurement retention method when SVG is converted into G language graphics.
Detailed Description
The present invention is explained in further detail below with reference to the drawings and the specific embodiments, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
New G file generation and processing
1. Analyzing an SVG file provided by the PMS;
2. analyzing Symbol content in the SVG file into an equipment graphic primitive G file;
the SVG file content is composed of two parts of device primitive definition and device layer description, wherein the device primitive definition part describes the display style of each state of each device in detail. When the SVG file is analyzed, each device creates a graphic primitive G file, the file content is all state display styles of the same device, and different states are distinguished through attributes in the file.
3. Analyzing the device layer content in the SVG file, wherein each device is described by an element in the SVG file layer, the element comprises information such as a quoted primitive, a display attribute of the device, a coordinate of the device, an RDF _ ID of the device, and the RDF _ ID of other directly connected devices, the content in the element is converted into device information in a graph G file, the graph G file is constructed, a connecting line is created according to the connection relationship between the devices in the SVG file, and the devices are connected;
4. the identification of the device in the graphics G file is converted from RDF _ ID (resource identification) in SVG, and the RDF _ ID provided by PMS is the device resource ID, so that the device identification is ensured to be unique in the system, and the mapping between the device identification and the device position information is stored in the final stage of converting graphics.
Stock G file handling
1. Searching real-time operation stock power grid circuit diagram information in a distribution automation master station system database according to feeder line information to obtain a stock G file;
2. analyzing the stock graph G file to obtain the mapping between the equipment identification and the equipment position information;
each measurement in the G file is defined as an element, and the content comprises: the method comprises the steps that information such as equipment measurement identification and measurement positions is obtained in the process of analyzing stock G files, and equipment measurement identification and measurement position information are constructed; constructing device measurement identification and measurement information mapping
4. Acquiring the association relationship between the equipment identification and the equipment measurement identification through a master station system database, and combining the data in the steps 2 and 3 to obtain the mapping relationship between the equipment identification and the position deviation between the equipment and the measurement;
5. in addition, different types of equipment are set through configuration files to reserve different measurements so as to be suitable for different application scenes;
6. after removing useless measurement data, for example, the equipment data in the system is deleted, the measurement data corresponding to the equipment is useless.
The new G file is identical in device Identification (ID) to the same device in the inventory G file. The stock G file contains the measurement information of the equipment, and the equipment identification and the equipment measurement have a corresponding relation, namely, the specific equipment can be found through the equipment measurement. Based on the relative locations of the devices and the device measurements in the G file, the quantity of the devices can be stored. And then, setting the position of the measurement in the new G file according to the relative positions of the equipment and the measurement according to the condition that the same equipment identifiers in the new G file and the stock G file are the same.
Measurement reservation
1. Based on the mapping data of the equipment identifier and the equipment position information in the new G file generated and processed by the new G file, acquiring the measurement data information needing to be measured and reserved by mapping the equipment identifier and the measurement information in the stock G file processing;
2. acquiring a relative measurement position based on equipment and measurement relative position mapping in stock G file processing; according to the mapping relation between the device identifier and the device position information in the new G file and the mapping relation between the device identifier and the position deviation between the device and the measurement in the stock G file, the relative position between the device identifier in the new G file and the device measurement in the stock G file which needs to be reserved is obtained;
3. adding the device measurement data information in the stock G file obtained in the step 1, which needs to be reserved, into the new G file based on the relative position of the device in the new G file;
4. adjusting the relative position of the measurement and the equipment according to the scaling of the new G file and the equipment size
5. Inquiring a database of the master station, acquiring the description of measurement, and adding the description to the measurement;
6. supporting the unit of measurement to be set in the configuration file, and when the measurement is added to a new G file, adding the unit after the measurement;
7. and after the error is confirmed, the new G file is put into operation to replace the stock G file.
The measurement information retention method analyzes stock G files, obtains the relative positions of equipment and measurement, and is applied to measurement generation of new G files; on the basis of the step 1, removing the device measurement from which the model data is deleted; on the basis of the step 1, adding information such as measured static text description, units and the like; on the basis of 2 and 3, different equipment types are configured to reserve different measurements.
In the execution process of the scheme, a picture editor does not need to be started and human intervention is not needed, full-automatic processing is realized, only equipment measurement required in the power grid line diagram is reserved, in addition, the relative positions of the equipment and the measurement in the new G file are consistent with the stock power grid line diagram, and the scheme can ensure the practicability and the attractiveness of the power grid line diagram when the SVG file is converted into the G file for many times.
The invention has been described with reference to a few embodiments. However, it will be apparent to those skilled in the art that other embodiments of the invention disclosed above are equally possible within the scope of the invention, as defined by the appended patent claims.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (8)

1. A method for measuring and retaining power distribution network equipment when SVG is converted into G files is characterized in that: including new G file generation and processing, stock G file processing and measurement retention
The new G file is generated and processed, including
Obtaining SVG files
The SVG file is parsed to obtain a graph G file,
obtaining a mapping relation between equipment identification and equipment position information according to the graph G file;
the stock G file processing comprises
Acquiring a stock G file;
analyzing the stock G file to obtain the mapping relation between the equipment identification and the equipment position information;
acquiring a mapping relation between equipment measurement identification and measurement information in a stock G file;
obtaining equipment measurement identification and measurement position information in a stock G file, and corresponding the equipment measurement identification to the measurement position information;
obtaining the mapping relation between the equipment identification and the measurement information through the mapping relation between the equipment identification and the equipment position information and the mapping relation between the equipment measurement identification and the measurement information; obtaining the mapping relation between the equipment identification and the position deviation between the equipment and the measurement through the mapping relation between the equipment identification and the equipment position information and the mapping relation between the equipment measurement identification and the measurement position information; the measurement reservation includes
According to the mapping relation between the equipment identifier and the equipment position information in the new G file and the mapping relation between the equipment identifier and the measurement information in the stock G file, obtaining the equipment measurement information in the stock G file which needs to be reserved in the new G file;
according to the mapping relation between the equipment identifier and the equipment position information in the new G file and the mapping relation between the equipment identifier and the position deviation between the equipment and the measurement in the stock G file, the relative positions of the equipment identifier in the new G file and the equipment measurement in the stock G file to be reserved are obtained;
and adding the device measurement information in the stock G file needing to be reserved into the new G file based on the relative positions of the device identification in the new G file and the device measurement in the stock G file needing to be reserved.
2. The method for reserving power distribution network equipment measurement when converting SVG into a G file according to claim 1, wherein: the graphic element G file is obtained by analyzing Symbol content in the SVG file, and the graphic element G file is obtained by analyzing equipment layer content in the SVG file.
3. The method for reserving power distribution network equipment measurement when converting SVG into a G file according to claim 1, wherein: and analyzing the new G file into a primitive G file and a graph G file.
4. The method for reserving power distribution network equipment measurement when converting SVG into a G file according to claim 1, wherein: and searching real-time operation stock power grid circuit diagram information in a distribution automation master station system database according to the feeder information to obtain a stock G file.
5. The method for reserving power distribution network equipment measurement when converting SVG into a G file according to claim 1, wherein: the device identification is obtained through conversion of RDF _ ID in SVG.
6. The method for reserving power distribution network equipment measurement when converting SVG into a G file according to claim 1, wherein: the device information in the graphics G file comprises the referenced primitives, the display attributes of the device, the device location information and the RDF _ ID of the device.
7. The method for reserving power distribution network equipment measurement when converting SVG into a G file according to claim 1, wherein: and adjusting the relative position of the measurement and the equipment according to the scaling of the new G file and the equipment size.
8. The method for reserving power distribution network equipment measurement when converting SVG into a G file according to claim 1, wherein: when the measurement information of the device is added to the new G file, the unit of measurement is added after the measurement.
CN202011432412.4A 2020-12-10 2020-12-10 Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file Active CN112598535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011432412.4A CN112598535B (en) 2020-12-10 2020-12-10 Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011432412.4A CN112598535B (en) 2020-12-10 2020-12-10 Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file

Publications (2)

Publication Number Publication Date
CN112598535A true CN112598535A (en) 2021-04-02
CN112598535B CN112598535B (en) 2024-03-08

Family

ID=75191516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011432412.4A Active CN112598535B (en) 2020-12-10 2020-12-10 Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file

Country Status (1)

Country Link
CN (1) CN112598535B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166942A (en) * 2014-07-02 2014-11-26 国家电网公司 Method and system for searching cross-regional power supply range based on CIM model
CN104201779A (en) * 2014-09-01 2014-12-10 深圳供电局有限公司 SVG-based automatic integrated monitoring method for online monitoring data
WO2016078474A1 (en) * 2014-11-17 2016-05-26 国家电网公司 Method for graphics interaction between grid production management system and scheduling automation system
CN111241349A (en) * 2019-12-31 2020-06-05 中国电力科学研究院有限公司 Wiring diagram data display method and system based on graph conversion

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166942A (en) * 2014-07-02 2014-11-26 国家电网公司 Method and system for searching cross-regional power supply range based on CIM model
US20160252890A1 (en) * 2014-07-02 2016-09-01 State Grid Corporation Of China Method for searching cross-regional power supply area based on cim model and system thereof
CN104201779A (en) * 2014-09-01 2014-12-10 深圳供电局有限公司 SVG-based automatic integrated monitoring method for online monitoring data
WO2016078474A1 (en) * 2014-11-17 2016-05-26 国家电网公司 Method for graphics interaction between grid production management system and scheduling automation system
CN111241349A (en) * 2019-12-31 2020-06-05 中国电力科学研究院有限公司 Wiring diagram data display method and system based on graph conversion

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李爽: "基于PMU/SCADA混合数据的电力***状态估计的研究", 中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑), pages 042 - 1236 *

Also Published As

Publication number Publication date
CN112598535B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
CN111176645A (en) Power grid big data application-oriented data integration management system and implementation method thereof
CN111161406B (en) GIM file visualization processing method, system, readable storage medium and computer
CN104778124A (en) Automatic testing method for software application
CN116796504A (en) Production line simulation method based on digital twin and related equipment thereof
CN113448988B (en) Training method and device of algorithm model, electronic equipment and storage medium
CN112306622B (en) Construction method and device of VNF template
CN112598535B (en) Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file
CN115344966A (en) CAD assembly body part replacement method and system
CN115311416A (en) Method for creating three-dimensional scene
CN111736967B (en) Multi-branch flow management and control device, flow template generation method and storage medium
CN111126961B (en) Full life cycle digital main line service system for complex products
CN113867714A (en) Automatic code generation method adaptive to multiple languages
CN113688603B (en) Model file processing method and device, storage medium and electronic equipment
CN110727457A (en) Component management method, device, storage medium and electronic equipment
CN109739884A (en) A kind of electric power monitoring system graphical cues information service design method
CN112582014B (en) Solid state disk batch production method, device, equipment and medium
CN112764396B (en) Configuration method and device
CN111695184B (en) Loss determination method and device of annotation information and computer storage medium
CN117634107B (en) Data interaction method based on symbolized power grid tidal current diagram and three-dimensional scene
CN117252559B (en) Business process processing method, device, computer equipment and storage medium
CN112000617B (en) Log preprocessing method, device, equipment and readable storage medium
CN115186957A (en) Light-weight man-machine cloud terminal interval light word board graph processing system and method
CN114386245A (en) Method for designing and modeling operation and maintenance platform based on field-driven design
CN115543737A (en) Distributed sampling method for historical data of power automation system
CN118092892A (en) Visual editing system, method and storage medium for scene file

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